MantisBT - TestLink
View Issue Details
0008881TestLinkRequirement Managementpublic2020-03-11 17:162020-03-30 11:20
atisne 
fman 
urgentmajoralways
feedbackopen 
1.9.20 
 
Postgresql 9.2
TBD
0008881: Requirements no more available - user WITH SPECIFIC Role on TestProject
As a project leader, I can see all requirement menus on the desktop but I cannot get the requirement management page. I stay on the Desktop.

On the top toolbar, I can see only two icons : Desktop and Test Specification.
1- Create a new project activating the requirements management. (TPRJ00)
2- Assign the leader role to a user U in test project TPRJ00
3- Connect to Testlink with the user U
4- Click on the menu 'Requirement specification'
-> We stay on the desktop
[>>][5e691592892a3831026323][DEFAULT][/lib/requirements/reqOverview.php][20/Mar/11 16:45:06]
        [20/Mar/11 16:45:06][AUDIT][ji9604b1eg17ab6ifggqiuegq1][GUI - Test Project ID : 1]
                User 'david' has insufficient rights for 'any' action on 'reqOverview.php'! Exit forced!

I check (in DB):
  - the role leader (9) has the right mgt_view_req (10).
  - the user U has the role leader on the project

Tested using the branch testlink_1_9_20_fixed
No tags attached.
related to 0008886feedback fman Unable to access Builds and cannot assign execution with Leader Role 
png Screenshot_2020-03-16 TestLink 1 9 20 [DEV].png (64,231) 2020-03-16 11:44
http://mantis.testlink.org/file_download.php?file_id=5317&type=bug
png

png Screenshot 2020-03-18 at 14.29.10.png (57,729) 2020-03-18 13:38
http://mantis.testlink.org/file_download.php?file_id=5318&type=bug
png

png Screenshot 2020-03-18 at 14.33.26.png (48,840) 2020-03-18 13:41
http://mantis.testlink.org/file_download.php?file_id=5319&type=bug
png
Issue History
2020-03-11 17:16atisneNew Issue
2020-03-11 19:19fmanQA Team - Task Workflow Status => TBD
2020-03-11 19:19fmanSummaryRequirements no more available => Requirements no more available - user WITH SPECIFIC Role on TestProject
2020-03-11 19:19fmanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6029#r6029
2020-03-12 09:43fmanNote Added: 0029536
2020-03-12 10:06fmanNote Added: 0029537
2020-03-12 10:07fmanAssigned To => fman
2020-03-12 10:07fmanStatusnew => feedback
2020-03-13 13:32atisneNote Added: 0029539
2020-03-13 13:32atisneStatusfeedback => assigned
2020-03-13 19:34fmanNote Added: 0029540
2020-03-13 19:34fmanStatusassigned => feedback
2020-03-16 09:57atisneNote Added: 0029543
2020-03-16 09:57atisneStatusfeedback => assigned
2020-03-16 10:46fmanNote Added: 0029544
2020-03-16 11:44atisneFile Added: Screenshot_2020-03-16 TestLink 1 9 20 [DEV].png
2020-03-16 11:44atisneNote Added: 0029545
2020-03-18 13:30fmanNote Added: 0029546
2020-03-18 13:33fmanNote Added: 0029547
2020-03-18 13:36fmanNote Edited: 0029547bug_revision_view_page.php?bugnote_id=29547#r6033
2020-03-18 13:36fmanNote Edited: 0029547bug_revision_view_page.php?bugnote_id=29547#r6034
2020-03-18 13:38fmanFile Added: Screenshot 2020-03-18 at 14.29.10.png
2020-03-18 13:38fmanNote Edited: 0029547bug_revision_view_page.php?bugnote_id=29547#r6035
2020-03-18 13:41fmanFile Added: Screenshot 2020-03-18 at 14.33.26.png
2020-03-18 13:42fmanNote Added: 0029548
2020-03-18 13:44fmanNote Edited: 0029548bug_revision_view_page.php?bugnote_id=29548#r6037
2020-03-18 13:56fmanStatusassigned => feedback
2020-03-21 18:01fmanRelationship addedrelated to 0008886
2020-03-30 11:20cyusteNote Added: 0029556

Notes
(0029536)
fman   
2020-03-12 09:43   
Hi
this is not a NEW issue.
Reason: checkRights() is done on SYSTEM WIDE role

Fixing will take time => use a WORKAROUND -> promote user with SYSTEM WIDE role
(0029537)
fman   
2020-03-12 10:06   
Well it was faster than expected
please test it
https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/71af9949d6d8d3d17deb1cdcdb73e1070f2003af [^]
(0029539)
atisne   
2020-03-13 13:32   
Hi Francisco,

It's better since I can access the requirements screens.
But, I still only see Desktop and Test Specification icons in the top toolbar.

I also noticed that, on a new project, as a test leader, after creating a TC and a TP, on the desktop, I don't see some menus : Milestones, Test cases assigned to me, Add/remove Platforms, Set urgent tests, ... Possibly due to the same issue.

I can see all of this when I connect as site admin.
(0029540)
fman   
2020-03-13 19:34   
Hi
please try this
https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/42791d8fdf9740eea1fc867ffaeaeedac5345747 [^]
(0029543)
atisne   
2020-03-16 09:57   
No improvement with this commit :-(

Still only two icons in the toolbar and missing menus on the desktop.
(0029544)
fman   
2020-03-16 10:46   
Please can you provide the image, and detailed steps
(0029545)
atisne   
2020-03-16 11:44   
I install Testlink from github@testlink_1_9_20_fixed. I use the Dockerfile, provided in sources, with minor adjustments. But I think it doesn't matter the way to install. I use mysql DB.
I create a local user atisne.
With the admin user, I create a new project (activating requirements) and grant role 'leader' to the user atisne on this project.
Then, I log in with the user atisne.
I can see only two buttons in the toolbar ('reports' come later).
I create a requirement and a test case.
I create a test plan.
Then, some menus naturally appear. But, as reported, some others are missing. The report button appears but the requirement one is still missing.
Please see the screenshot attached.
(0029546)
fman   
2020-03-18 13:30   
Please explain what does mean: minor adjustments
(0029547)
fman   
2020-03-18 13:33   
(edited on: 2020-03-18 13:38)
1 - create a local user atisne, role guest
2 - create Test project PUBLIC and ACTIVE, with req enabled
3 - grant role 'leader' to the user atisne on this project.
4 - log in with the user atisne.

(0029548)
fman   
2020-03-18 13:42   
(edited on: 2020-03-18 13:44)
The only issue I see and is IMHO less that minor, is that the menu bar where the icons are displayed do not display all icons.
But I can access the features using the 'desktop'

I'm using latest code present in testlink_1_9_20_fixed branch

(0029556)
cyuste   
2020-03-30 11:20   
Hello,
I was browsing tickets before reporting that the execute button in the icon top menu is not available if the user has not rights for it in the global role.
So, this is known and open yet, right? Is this ticket the correct one to track this bug?
Thanks!