MantisBT - TestLink
View Issue Details
0005746TestLinkUsers and Rightspublic2013-05-28 10:152014-03-13 21:27
twelve 
fman 
normalminoralways
closedfixed 
1.9.7 (2013 Q2 - bug fixing) 
1.9.8 (2013 Q3 - bug fixing) 
MySQL
READY FOR TESTING
0005746: Cannot set new rights after upgrade
After upgrading to Testlink 1.9.7 and performing the database upgrade I cannot set the following role rights:
Unlink Executed Test Cases
Delete Executed Test Cases
Edit Executed Test Cases
Edit Execution Notes
Delete Execution

Also the admin role does not have any of these rights and it is impossible to enable them through the GUI, because they are all greyed out.

The same problem appears when using Testlink 1.9 HEAD (from http://gitorious.org/testlink-ga/testlink-code/archive-tarball/testlink_1_9 [^])
1. Upgrade an earlier version to Testlink 1.9.7
2. Log in as an admin
3. Click User management > View roles
4. Open a role
5. Enable "Unlink Executed Test Cases"
6. Click Save
7. Open the same role again
=> "Unlink Executed Test Cases" is unchecked
The new rights of 0005311 should be added to the database upgrade scripts.

Something like:
INSERT INTO /*prefix*/rights (id,description) VALUES (35,'exec_edit_notes');
INSERT INTO /*prefix*/role_rights (role_id,right_id) VALUES (8,35);
INSERT INTO /*prefix*/rights (id,description) VALUES (36,'exec_delete');
INSERT INTO /*prefix*/role_rights (role_id,right_id) VALUES (8,36);
...
No tags attached.
related to 0006250closed fman Cannot set new rights after upgrade to 1.9.8 
child of 0005731closed fman Availables hot-fixes for 1.9.7 & How To get full fixed package from gitorious 
Issue History
2013-05-28 10:15twelveNew Issue
2013-05-28 20:04fmanNote Added: 0019051
2013-08-06 18:42jason.helmNote Added: 0019366
2013-08-06 18:43jason.helmNote Edited: 0019366bug_revision_view_page.php?bugnote_id=19366#r2911
2013-08-06 19:54fmanNote Added: 0019367
2013-08-06 20:16fmanQA Team - Task Workflow StatusTBD => READY FOR TESTING
2013-08-06 20:16fmanFixed in Version => 1.9.8 (2013 Q3 - bug fixing)
2013-08-06 20:16fmanRelationship addedchild of 0005731
2013-08-08 21:41fmanStatusnew => resolved
2013-08-08 21:41fmanResolutionopen => fixed
2013-08-08 21:41fmanAssigned To => fman
2013-09-08 17:53fmanNote Added: 0019533
2013-09-08 17:53fmanStatusresolved => closed
2014-03-13 21:27fmanRelationship addedrelated to 0006250

Notes
(0019051)
fman   
2013-05-28 20:04   
yes you are right without this records you can not add the rights.
I'm sorry for missing info.
(0019366)
jason.helm   
2013-08-06 18:42   
(edited on: 2013-08-06 18:43)
Because the config file setting for this is no longer honored in favor of the new UI, and because the UI cannot be changed, these features have effectively been lost. Of particular concern to our organization is the ability to Delete Executed Test Cases. Due to complete feature loss, I would like to see the priority set to something a big higher than "minor". In the meantime, could you attach a DB script that will fix this (if it is, indeed, simply a DB issue)? Thank you!

(0019367)
fman   
2013-08-06 19:54   
all the info you need have been kindly provided by original reporter.
that's why this issue has priority minor.
(0019533)
fman   
2013-09-08 17:53   
1.9.8 released