Skip to content
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

WebDAV Issue Collection #268

Closed
4 tasks
voroyam opened this issue Jul 12, 2018 · 0 comments
Closed
4 tasks

WebDAV Issue Collection #268

voroyam opened this issue Jul 12, 2018 · 0 comments
Labels
Milestone

Comments

@voroyam
Copy link
Contributor

voroyam commented Jul 12, 2018

WebDAV Issue Collection

  • Document required HTTP/WebDAV methods (in FAQ?)

@michaelstingl

owncloud-archive/documentation#2753

Today, a user asked me about the HTTP/WebDAV methods ownCloud uses. Could we document it somewhere?

This are the answers I've got from my colleagues:

@davivel

mobile clients use PROPFIND, MKCOL, COPY & MOVE from that list

@guruz

same for desktop.. normal webdav clients are supposed to use OPTIONS too

@davivel

besides of HTTP: GET, PUT, POST, DELETE ; we also use HEAD sometimes
New Messages

@PVince81

also REPORT
DELETE, PUT, POST

00006724

if ($request_method !~ ^(DELETE|PROPFIND|PUT|GET|HEAD|POST|OPTIONS|REPORT|MKCOL|MOVE|PROPPATCH|COPY|PATCH)$ ) {
return 405;
}

https://github.com/cernbox/smashbox/blob/master/protocol/protocol.md

Any suggestions on where best to put this documentation?

Developer docs, but not sure where. Maybe a new section about HTTP APIs ?

could be something similar / close to the OCS Share API page


  • Document new DAV endpoint and sub-endpoints

@PVince81

owncloud-archive/documentation#2224

@DeepDiver1975

One way to discover the available endpoints is by doing a PROPFIND on "remote.php/dav" or using cadaver on that URL.

@PVince81 Something for #2074 ?

Probably should also include #2120 so the older issue could be closed?

Yeah, should include #2120 and any others


  • Describe cryptic error message during failed uploads

@ghost

owncloud-archive/documentation#2145

Another cryptic error message was introduced with owncloud/core#20927 (Stable8.1+):

Error while copying file to target location (copied bytes: xxx, expected filesize: yyy)

This could show up during uploads in addition to the existing dreaded:

Sabre_DAV_Exception_BadRequest: expected filesize xxx got yyy

Both are not described anywhere and a lot of people are struggling with those message and their meaning. For the second message i've collected some reasons in owncloud/core#9832 (comment). No idea if one of those are now replaced by the new message.

For the new error:

streamCopy here is used at the moment where the data is read from the PHP Input and copied into a part file on the target storage. If the target storage is not local (ex: FTP) and that storage is slow / not available / broken, it is likely that streamCopy will fail either at the beginning, or in the middle of the copy.

In this case, the issue is most likely due to the target storage and not the client<->server connection.

from owncloud/core#20927 (comment)

From @PVince81:

There is one valid case where streamCopy would not return all bytes, that's when the quota is reached. But the it will also return false.

Other failures could be when writing to external storage but the connection took too long to respond, or the network connection to the ext storage is flaky.


@PVince81

owncloud-archive/documentation#2120

See owncloud/core#20786 (comment)

@DeepDiver1975 @SergioBertolinSG

@settermjd settermjd transferred this issue from owncloud-archive/documentation Nov 19, 2018
@micbar micbar added this to the backlog milestone Sep 26, 2019
@settermjd settermjd added the p4-low Low priority label Mar 6, 2020
@voroyam voroyam closed this as completed Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants