-
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
Move files app to use WebDAV instead of custom PHP endpoints #12353
Comments
Yes. We will see speed issues. But we can fix these, and each fix will also improve the clients. which in turn will improve the overall ownCloud experience. From my POV this is a good step towards a more unified development of all parts. About the specific batch problem you mentioned: I highly suggest that we add batch deletes and maybe other operations like move because that is a problem for the clients as well. |
@icewind1991 also raised a concern that IE8 might not support verbs like PROPFIND, etc. But we can have some tests about that. |
On a side-note I'd also love if ownCloud itself could get rid of internal ajax APIs and only rely on OCS public APIs (some kind of dogfooding). |
The public page can then use the "public.php/webdav" endpoint for public link file operations (#6635) |
Note that moving to WebDAV will also have the advantage to automatically use part files internally and solve concurrency issues like #13755 |
Changing the whole file UI is a big task, so this should rather be done step by step:
|
|
@DeepDiver1975 I'm not sure whether there's time for this in 8.1, but as said above we can split it in smaller pieces. |
|
Got some ideas: currently the JS code for the file list is still quite ugly and it would bring some advantages to move the file handling logic to a separate class/API anyway. It could be written to be based directly off WebDAV and can be injected and used by JS apps too to access files. This way we not only gain the advantage of having the files web UI based on WebDAV, but also any app that needs access/manipulate files from JS. So the first step would be to first design and write that new JS Files API class, which itself can use/wrap a WebDAV library. Then the files web UI can be ported progressively to use that JS Files API. |
Anoter challenge:
|
|
|
Discussed with @DeepDiver1975, moving to 9.0 |
|
@MTRichards I did set the milestone to 9.0 - okay? |
Yep, thank you. |
Not fully done, upload is still t obe done. |
also downloading as zip, etc. Keeping this ticket open. |
yeah!!! ☀️ |
but no upload or download as zip yet (not wanting to darken the mood) |
Awesome :-) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Currently we have at least two endpoints to manage files:
To reduce code duplication and endpoint duplication one idea would be to make the files app use the WebDAV endpoint instead, just like any other external client does (mobile, desktop, etc)
An existing JS library could be used (for example: https://github.com/sara-nl/js-webdav-client) by the files app.
We need to make sure that every custom property (ex: "icon", "isPreviewAvailabe", etc) is available on the WebDAV endpoint to keep the existing functionality working.
There might be other challenges like batch file deletion, where the JS code would need to send multiple "DELETE" calls, one for every selected file, instead of deleting a series of files in one call.
@DeepDiver1975 @icewind1991
The text was updated successfully, but these errors were encountered: