-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Allow querying custom properties #238
Comments
I like this idea. I would happily entertain contributions regarding both the namespace support and custom properties. I haven't yet seen a great example of where namespacing is useful or even present (multiple namespaces). |
Hey, it used to be possible on 3.x.x https://github.com/nextcloud/viewer/blob/0208dd519d0f266b309d765a73c0221a9d2dd8ee/src/services/FileInfo.js#L33-L61 But with latest 4.x.x it doesn't work anymore @perry-mitchell. Any insights? |
Ah, it's becaused you removed the data parameter forward in webdav-client/source/request.js Lines 62 to 64 in 6880382
webdav-client/source/request.ts Line 19 in edee122
That is a crazy breaking change,this breaks almost all of our Nextcloud uses of this webdav library :) |
@skjnldsv I wasn't aware anyone was using the library like that - else I would have avoided such a change. That is kind of why the customRequest method exists - or at least so I thought :). In the linked example you're passing a fair amount of custom data to the stat call - If these were common use-cases I'm surprised someone hasn't contributed them to this library as a core method or feature. I'll reintroduce this functionality now. |
@skjnldsv Sorry for the inconvenience.. I'll document this better now so it won't mysteriously disappear again. I've added it back in v4.2.1. You can see it documented in the method options in the readme. It's available under the |
Awesome @perry-mitchell! Thank you very much! 🤗 |
I'm very sorry, I did a few issues and prs here, but I'm also quite overwhelmed, I would love to spend a fair amount of time trying to push a bit more here :) |
No worries! It's all good, things happens 😉 |
Nextcloud for example has additional properties (like checksum, tags, comments, etc) that can be queried with PROPFIND optionally and are not part of the default response.
The methods
stat
andgetDirectoryContents
should allow modifying the properties list to be queried.Requires namespace support: #210
This will likely have an impact on the current parsing and would need a decision about how to return namespaces (ex: using clark notation).
The text was updated successfully, but these errors were encountered: