-
Notifications
You must be signed in to change notification settings - Fork 15
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
Failure to push datastreams when object has XACML policy #84
Comments
@bondjimbond does the object in question have "Enable XACML Restrictions on DSIDs and MIME types" enabled? |
No, just viewing. |
To confirm, it's the MODS datastream you are pushing up, correct? |
Yep! |
I can't replicate this behavior. Here's my object's policy: And here is the output when I push a MODS ds with CRUD:
Can you see anything I am missing in order to replicate the problem? |
I'll add some non-admin users/roles and try again. |
I added a non-admin user to the allowed list, pushed, success. I then removed the non-admin user and pushed, also success. I also pushed MODS datastream for other objects in same run of CRUD, also success. If you can think of any other permutations I can try, let me know. Out of curiosity, if you push a new (i.e. non-existent) datastream up to the objects that have policies, what happens? Also, the response code that Fedora (I think it's Fedora) is returning is |
Scrap that last question, I tried it and got a different error:
|
I noticed that the XACML policies do not include user "islandora" in the list of who can view. "islandora" is the Apache user, I believe. Do you think it's possible that this is why it's failing? Except I'm running the drush command as user 1, but perhaps some part of the code is trying to execute as apache? |
Not that I know of, and if it did, wouldn't it fail for me too? |
I'm working on a vagrant box. Can you try to replicate it on one too? If you can, I am not testing the right way. |
I'm trying to push a large batch of datastreams. CRUD fails whenever it hits an object with XACML "view" restrictions - even if I include
-u 1
in my Drush command, and user 1 has explicit permissions for the object.Full error text:
Not only does the datastream fail to get pushed, but the entire batch is stopped - the command stalls out, and subsequent datastreams in the list are not pushed.
The text was updated successfully, but these errors were encountered: