Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on save Configure specific access rights #85

Open
bbuerger opened this issue Mar 3, 2021 · 3 comments
Open

Exception on save Configure specific access rights #85

bbuerger opened this issue Mar 3, 2021 · 3 comments

Comments

@bbuerger
Copy link

bbuerger commented Mar 3, 2021

Jenkins (2.281) + Ownership Plugin (0.13) on Windows Server 2016
Role based authentication is used
Click Configure specific access rights -> Use item-specific security -> Save
The attached exception occurs:
Caught unhandled exception.txt

Caught unhandled exception with ID 6744eb32-e605-4309-ab36-94154f732cf5
java.io.IOException: Ownership is not configured for hudson.model.FreeStyleProject@630b125f[Restricted/SBHasp]
	at com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerHelper.setProjectSpecificSecurity(JobOwnerHelper.java:172)
	at com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerJobAction.doProjectSpecificSecuritySubmit(JobOwnerJobAction.java:146)
	at java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)
	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
	at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:536)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898)
	at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:457)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898)
	at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:281)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898)
	at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:281)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:694)
	at org.kohsuke.stapler.Stapler.service(Stapler.java:240)
@oleg-nenashev
Copy link
Member

Looks like you submit the project-based security settings before setting up ownership for the item

@bbuerger
Copy link
Author

bbuerger commented Mar 3, 2021

You are right: The ownership was definied by the folder (Ownership is defined by: FolderRestricted)
After setting the ownership manually for the item it worked.
Thanks for the quick response (but IMHO setting the ownership via the folder should work as well)

@bbuerger
Copy link
Author

bbuerger commented Mar 3, 2021

Saving worked, but when I set the inheritance strategy to:
Do not inherit permission grants from other ACLs
and login as a user, which is not an owner, I am allowed to do anything as before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants