-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Expose share owner id and display name via files webdav #20188
Conversation
I realized that this PR already returns the current user "root" when doing a PROPFIND on a non-shared item. If we really want this only for shares, then the property would need to be adjusted. I think I'm more in favor of having a more generic "owner-id" and "owner-display-name" attribute. |
|
I agree with moving to |
Might be good to add |
72d318a
to
a1baeac
Compare
@icewind1991 I added getOwner to the FileInfo interface and also Node API, please check my implementation: f563648 And I renamed the properties to "owner-id" and "owner-display-name". Please review |
Regarding getOwner on the interface: I checked that the |
Since we also want the display name it makes more sense imo to return a user object. See #20224 |
a1baeac
to
607e7fe
Compare
I'll fix it to use the "new" API, as we're now getting a user object. |
607e7fe
to
d62f410
Compare
I have updated the API usage and the unit tests to reflect the fact that Please review @icewind1991 @rullzer @DeepDiver1975 @blizzz @schiesbn |
👍 looks good |
👍 |
Expose share owner id and display name via files webdav
To test:
curl -X PROPFIND -H "Content-Type: text/xml" --data-binary "@propfind.txt" http://root:admin@localhost/owncloud/remote.php/webdav/test | xmllint --format -
This PR will output two additional properties, when requested as above:
Edit: now renamed to "owner-id" and "owner-display-name"
Open questions:
getOwner()
for better performance ? The code path looks like it goes up to the SharedStorage which has the share cachedLet's discuss @DeepDiver1975 @icewind1991 @schiesbn @rullzer @nickvergessen