Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 369716

Summary: Role-based Authorization Strategy doesn't work with Hudson3
Product: [Technology] Hudson Reporter: Henrik Lynggaard Hansen <henrik>
Component: CoreAssignee: Winston Prakash <winston.prakash>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: bobfoster, guillaume.helle, vladimir.lysyy
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: regression

Description Henrik Lynggaard Hansen CLA 2012-01-25 13:05:01 EST
Steps to reproduce
1. Install plugin (Role-based Authorization Strategy)
2. Enable security and select Role based strategy
3. Submit changes


Result:
Changes cannot be saved and the following exception is displayed:

java.lang.NoClassDefFoundError: org/acegisecurity/acls/sid/PrincipalSid
	at com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy$DescriptorImpl.getCurrentUser(RoleBasedAuthorizationStrategy.java:476)
	at com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy$DescriptorImpl.newInstance(RoleBasedAuthorizationStrategy.java:452)
	at com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy$DescriptorImpl.newInstance(RoleBasedAuthorizationStrategy.java:314)
	at hudson.DescriptorExtensionList.newInstanceFromRadioList(DescriptorExtensionList.java:112)
	at hudson.DescriptorExtensionList.newInstanceFromRadioList(DescriptorExtensionList.java:116)
	at hudson.model.Hudson.doConfigSubmit(Hudson.java:2535)
Comment 1 Winston Prakash CLA 2012-04-11 21:15:51 EDT
Henrik, which version of Hudson this issue is happening? If it is 3.x then role-strategy plugin need to be fixed, since we longer support acegisecurity
Comment 2 Henrik Lynggaard Hansen CLA 2012-04-14 05:23:39 EDT
it is 3.0.0-M0 or 3.0.0-M0.1
Comment 3 Henrik Lynggaard Hansen CLA 2012-04-14 05:24:25 EDT
forgot to ask, is the needed plugin changes documented somewhere?
Comment 4 Winston Prakash CLA 2012-04-16 18:06:51 EDT
(In reply to comment #3)
Good question. Have not done that. I'll do that
Comment 5 Guillaume Helle CLA 2013-02-12 11:55:47 EST
Hello,

i have the same problem with the last version 3.0.0 upload today...
Perhaps it is a plugin problem and we must report the bug on the
Comment 6 Bob Foster CLA 2013-04-03 18:17:52 EDT
This should have been closed? See Bug 404794. Hudson 3.x version of plugin is role-strategy-1.1.3-h-2.
Comment 7 Winston Prakash CLA 2013-04-03 20:26:12 EDT
fixed already