MantisBT - CDash
View Issue Details
0007861CDashpublic2008-10-27 13:472009-02-01 17:22
The HighHat 
Julien Jomier 
normalmajoralways
closedfixed 
1.2.2 
1.4 
0007861: Upgrade from 1.0.2 to 1.2.1 breaks Groups
Successfully using CDash 1.0.2 to store test results submitted via shell scripts (not CMake) for several months. CDash on RHEL 5.x, apache, w/mysql.

Upgraded to 1.2.1 via svn checkout. Manually edited config.php. Copied /backup/ folder contents.

Visited CDash URL. Logged in as admin. Updated db.

Summary page shows the correct project names, number of submissions, and db size.

Selected a project.

The default groups, Nightly Continuous & Experimental, and all custom groups are missing. From the main project page.

Using admin panel, tried to Manage Groups. No groups names appear.

Tried to recreate group Nightly. No error, but the "new" group does not appear.

Minor panic.

---

Pointed browser to old CDash 1.0.2 page. Again, shows the correct project summaries. Selected a project and see that all the data is there. The group names are correct.

---

Secondary issue: It is possible to create a new group that has the same name as a default group. Due to steps above, I now have 2 groups named "Nightly". Only one has data. The other Nightly cannot be deleted from the Manage Groups page.

It can probably be deleted from db manually, I know.

---

Questions:

1. Why are the default group names missing on the project page?
2. How to delete a custom group with the same name as default group?

No tags attached.
Issue History
2008-10-27 13:47The HighHatNew Issue
2008-10-27 13:51Julien JomierStatusnew => assigned
2008-10-27 13:51Julien JomierAssigned To => Julien Jomier
2008-10-27 13:56Julien JomierNote Added: 0013942
2008-10-27 15:06The HighHatNote Added: 0013945
2008-10-27 15:07The HighHatNote Added: 0013946
2008-10-27 15:54Julien JomierNote Added: 0013949
2009-02-01 17:22Julien JomierNote Added: 0014749
2009-02-01 17:22Julien JomierStatusassigned => closed
2009-02-01 17:22Julien JomierResolutionopen => fixed
2009-02-01 17:22Julien JomierFixed in Version => 1.4

Notes
(0013942)
Julien Jomier   
2008-10-27 13:56   
This is strange. We have changed the default date/time for groups.

Could you try to run the script:

  http://mycdashurl/backwardCompatibilityTools.php?upgrade-1-2=1 [^]

Otherwise if you have access to the database (phpmyadmin or something similar), change the starttime and endtime of the group to '1980-01-01 00:00:00' and same for the groupposition table.

let me know if that works.
(0013945)
The HighHat   
2008-10-27 15:06   
Excellent.

Yes, the script appears to have fixed the problem.

Thank you for the quick response.
(0013946)
The HighHat   
2008-10-27 15:07   
However, the duplicate group name issue persists. I am still unable to delete. But this probably should be a separate bug report.
(0013949)
Julien Jomier   
2008-10-27 15:54   
I think we should put a fix to avoid creating a group with a name "Nightly" "Experimental" and "Continuous". The only way to fix your duplicates is to remove the duplicate groups in the database directly (tables group and groupposition).
(0014749)
Julien Jomier   
2009-02-01 17:22   
The duplicates of group is fixed. Now you cannot add a group named "Nightly", "Experimental" or "Continuous". Thanks for the report!