Skip to content

The WebDAV feature does not support PUT with Ranges (not implemented). #1051

Closed

Description

PUT with Ranges has been supported for ages by Apache mod_dav, and it is compliant with RFC2616 (HTTP 1.1) on which RFC 2518 (WebDAV) relies.

In fact, you don't rely on mod_dav, but rather on an implementation that presents itself as sabredav.

Here is a log showing this feature lack:

$ curl -X PUT http://localhost/owncloud/remote.php/webdav/foo.txt -d 'This is a test' -u Myself:MyPassword -v -H 'Content-Range: 22-'

* About to connect() to localhost port 80 (#0)
*   Trying 127.0.0.1... connected
* Server auth using Basic with user 'Myself'
> PUT /owncloud/remote.php/webdav/foo.txt HTTP/1.1
> Authorization: Basic TXlzZWxmOk15UGFzc3dvcmQ=
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost
> Accept: */*
> Content-Range: 22-
> Content-Length: 14
> Content-Type: application/x-www-form-urlencoded
> 
* upload completely sent off: 14out of 14 bytes
< HTTP/1.1 501 Not Implemented
< Date: Sun, 30 Dec 2012 23:33:12 GMT
< Server: Apache/2.2.22 (Ubuntu)
< X-Powered-By: PHP/5.3.10-1ubuntu3.4
< Set-Cookie: 50e08d98c16de=7umcvu0s7utm17eaph4c2of227; path=/; HttpOnly
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
< Pragma: no-cache
< Set-Cookie: 50e08d98c16de=9ftp82svq5nhkqs7bv4qai21f4; path=/; HttpOnly
< Content-Length: 285
< Connection: close
< Content-Type: application/xml; charset=utf-8
< 
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre_DAV_Exception_NotImplemented</s:exception>
  <s:message>PUT with Content-Range is not allowed.</s:message>
  <s:sabredav-version>1.6.4</s:sabredav-version>
</d:error>
* Closing connection #0

It does clearly state the this feature is NOT implemented and return HTTP error 501... which, I must admit, is still compliant with RFC2616 as it says under the PUT paragraph an implementation should return 501 when the Content-* headers are ignored.

This is still a lack of feature, considering mod_dav has it!

[EDIT] ... but maybe the implementation of the feature should be pushed 'upstream' to the sabredav guy? I just checked they have a Google Code account

[EDIT2] As the log above says, you use version 1.6.4 of sabredav, and they are now at version 1.8
So, before reporting to them, I'll try their version 1.8 to see if the feature has been implemented.

Activity

  1. DeepDiver1975 commented on Dec 31, 2012

    @DeepDiver1975
    Contributor

    @evert can you please comment on this? Thx
    Anyhow from owncloud point of view I close this.

  2. DeepDiver1975 commented on Dec 31, 2012

    @DeepDiver1975
    Contributor

    Mod_dav will not work with owncloud. We require sabredav.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions