-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Can't set a data object private by the share button #2009
Comments
It turns out the knb theme works but the default theme doesn't. |
I can't reproduce on develop with either the default or arctic themes so far. I'm going to coordinate with @taojing2002 via Slack to try to find a reproduction. |
Thanks @amoeba! |
I was able to reproduce it and can partly explain why this works on the knb theme and not the default. Here's a more specific set of steps to reproduce: (Using the default theme, tip of
Why this works on the knb theme and not the default theme has to do with whatever the actual bug here is: If, when you toggle the file from public to private, the public-read rule was the last rule in the AccessPolicy, the rule appears to get removed from the AccessPolicy collection but the change isn't reflected when the sysmeta is updated. When the public-read rule is not the last rule (as is the case for the KNB because we always add the knb-data-admins group), the sysmeta does get updated. The fix is probably a small change but I don't have time to figure it out at the moment. @robyngit can I kick this back over to you to look into in the future? |
Thanks for the summary and for figuring out how to reproduce it, @amoeba! I'll look into it further. |
- Ensure the accessPolicy node is removed from the system metadata xml when the access policy collection is empty Fixes #2009
This behaviour stemmed from a problem in the serialization of the system metadata. The old |
Describe the bug
I tried to use the Share button in the metadata editor to make a data object private in a package. However, the data object is public readable after the package was created.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The data object should be private. However, the metadata shows it is public readable.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: