-
Notifications
You must be signed in to change notification settings - Fork 113
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
API tests fail when setting actual resource owner when creating share #1053
Comments
https://cloud.drone.io/cs3org/reva/2133/4/6
That is failing in the |
@phil-davis thanks for the help! The issue is that owncloud fs returns the prefix of the path as the owner when statting a file, which currently is the username, instead of the opaque ID. This is then passed to the share, which results in something like This wouldn't raise any problems when creating the shares, but since we list the shares also on the basis of the owner rather than the creator, share retrieval fails. This should be fixed by #1052, but ideally, we should be able to filter shares both by creator as well as owner, so I've made that change in my PR #1051, and this ensures that all the tests pass. |
When creating a share, we assume the current user to be the owner of the resource, which won't always be the case, for example, when sharing an already shared resource. The owner should be derived from the ResourceInfo passed (
md.Owner
).I tried to change this in #1051, but the API tests didn't pass. So is this expected or should we correct the tests?
@labkode @butonic @individual-it @phil-davis
The text was updated successfully, but these errors were encountered: