cancel
Showing results for 
Search instead for 
Did you mean: 

AddNode, Access is denied RM-2.1.a

sammasue
Champ in-the-making
Champ in-the-making
Hello,

I am facing a problem with Alfresco Community 4.2.e and Records Management 2.1.a this is why I am asking you for some help and to know if someone already faced it.

The use case is the following:
As admin I have uploaded a document in my RM site. Then I would like to add this record to another folder (on another site for example). It is clearer with a sample of code. 
<javascript>
var myrecord = search.findNode("workspace://SpacesStore/xxxxxxxxx");
var folder = search.findNode("workspace://SpacesStore/xxxxxxxxxxx");
folder.addNode(myrecord);
</javascript>

However I get this exception. Hereunder some lines from the stacktrace.

Caused by: net.sf.acegisecurity.providers.ProviderNotFoundException: No authentication provider for net.sf.acegisecurity.providers.UsernamePasswordAuthenticationToken
   at net.sf.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:169)
   at net.sf.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:49)
   at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:376)

I know the contrary is possible because when we "declare as record" a document from DM it is what it does (creates multiple paths). But I don't understand why I get this authentication exception for that case since I am connecting as admin and I have all the rigths.

If someone as a idea, it will be really great.

Thanks in advance.

Sam.
3 REPLIES 3

streetturtle
Confirmed Champ
Confirmed Champ
Hello Sam, I have the same problem. Did you find any solution?

Hello streetturtle,

Actually I still have this problem. I tried Alfresco workdesk because I thought it was a good compromise but I get almost the same error when I try to select a record on which I don't have the right. Indeed the select should return nothing if I don't have the permissions. In that case "SELECT * FROM cmis:document" throws a exception each time.


One solution is to create the multiple paths on documents before declaring as record. However once the document is in RM then it is impossible to add any additional paths. Another drawback of this solution is I have to upload my documents in a collaboration site first and then declare as record. I would prefer to work in directly RM and then decide which records I would like to show on which site and for which users.

I am still waiting for a answer or maybe RM is adapted to my use case.

Best regards.

Sam

sammasue
Champ in-the-making
Champ in-the-making
It works using the user "System".
Does anyone knows about this user?

Alfresco 5.0.a
RM 2.3.a