Status: Resolved (View Workflow)
When the build queue widget renders for an anonymous user, and default view includes some DISCOVER-able jobs, rendering fails with WARNING: Caught exception evaluating: it.queueItems. Reason: java.lang.reflect.InvocationTargetException
evaluating queueItems, ListView.getItems() iterates on job names and calls getItem(name). This one check for DISCOVER and throws an AccessDeniedException that isn't caught, resulting in some null value passed to jelly.
|Field||Original Value||New Value|
|Resolution||Fixed [ 1 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
Integrated in jenkins_main_trunk #2251
[FIXED JENKINS-16682] getItem(name) can throw an AccessDeniedException (Revision 629b42a309d04cdaea2808d2c1a56560aea062ff)
Result = UNSTABLE
Nicolas De Loof : 629b42a309d04cdaea2808d2c1a56560aea062ff
Another symptom: if a user has only Overall/Read and Job/Discover permissions (but not Job/Read), and directly navigates to a list view containing at least one job (or this view is made the default view), Jenkins shows an error message rather than just displaying the view as empty. Similarly when adding a list view to a nested view: the whole page rendering is broken.
|Workflow||JNJira [ 147506 ]||JNJira + In-Review [ 192450 ]|
Code changed in jenkins
User: Nicolas De Loof
[FIXED JENKINS-16682] getItem(name) can throw an AccessDeniedException
so iterate on itemGroup.getItems and filter by job names
You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
For more options, visit https://groups.google.com/groups/opt_out.