AnsweredAssumed Answered

Add group (Authority) throwing error

Question asked by mangar on Feb 28, 2014
Latest reply on Mar 3, 2014 by mangar
I am using the AccessControllService to add a group like this:


       NewAuthority cpGrpAuth = new NewAuthority("GROUP", groupName);
       NewAuthority[] newAuthorities = {cpGrpAuth};
        session.getAccessControlService().createAuthorities(null, newAuthorities);


everything works fine when I initialize the session with the admin user.  However,  when I use a user that does not a permission to create a group, I get a massive amount of axis [DEBUG] statements the most alarming is this:


[DEBUG] org.apache.ws.security.util.Loader.loadClass: org.bouncycastle.jce.provider.BouncyCastleProvider
java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider


I have spent a very frustrating evening figuring out what went wrong, namely, I thought I had a jar conflict or something.

Shouldn't I just have gotten a NotAuthorized Exception or something more helpful.

Is this a bug?  What should I do, is this something I should put in JIRA, or just accept as my own dumb fault.  (Which I am more than willing to accept) :)

Outcomes