maindavfs2 - Support: sr #109414, Cadaver/Owncloud client works yet...

 
 

sr #109414: Cadaver/Owncloud client works yet davfs2 doesn't

Submitter:  None
Submitted:  Mon 13 Nov 2017 10:52:30 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  _71007
Originator Email:  -email is unavailable- Open/Closed:  Closed
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 24 Jan 2018 06:26:54 PM UTC, comment #3: 

Sorry. I did not see that you already found the solution.

Werner

- <_71007>
Wed 24 Jan 2018 06:25:47 PM UTC, comment #2: 

Looking at the headers your server sends in response to an OPTIONS-request:
- DAV-header is missing
- HEAD-method is not allowed
- MOVE-method is not allowed
- PROPPATCH-methode is not allowed

If your server wants to support WebDAV then it should announce it properly. Shouldn't there be a header named "Allow"? (I am to lazy to read the HTTP-RFC, but the implementor of an HTTP-Server definitely should.)

Werner

- <_71007>
Tue 14 Nov 2017 10:46:45 AM UTC, comment #1: 

I found the solution, it was a problem with CORS settings.

Frederic <fbertran>
Mon 13 Nov 2017 10:52:30 PM UTC, original submission:  

Greetings,

I tested my webdav using cadaver and other clients (owncloud). It is fully functional. It worked with davfs2 but stopped working and I was unable to have it work again. Now I got this error
/sbin/mount.davfs: mounting failed; the server does not support WebDAV
and the log is
Nov 13 23:30:35 pred1 mount.davfs:   delay_upload: 10
Nov 13 23:30:35 pred1 mount.davfs:   gui_optimize: 0
Nov 13 23:30:35 pred1 mount.davfs:   minimize_mem: 0
Nov 13 23:30:35 pred1 mount.davfs:   debug: 0xf
Nov 13 23:30:35 pred1 mount.davfs:   neon_debug: 0x13
Nov 13 23:30:35 pred1 mount.davfs: mounts in: /proc/mounts
Nov 13 23:30:35 pred1 mount.davfs: Secrets:
Nov 13 23:30:35 pred1 mount.davfs:   username: zipzip
Nov 13 23:30:35 pred1 mount.davfs:   cl_username: (null)
Nov 13 23:30:35 pred1 mount.davfs:   password: zipzip
Nov 13 23:30:35 pred1 mount.davfs:   p_user: (null)
Nov 13 23:30:35 pred1 mount.davfs:   p_passwd: (null)
Nov 13 23:30:35 pred1 mount.davfs:   clicert_pw: (null)
Nov 13 23:30:35 pred1 mount.davfs: PID file: /var/run/mount.davfs/mnt-zipzip.pid
Nov 13 23:30:35 pred1 mount.davfs: changing persona: euid 111, gid 117
Nov 13 23:30:35 pred1 mount.davfs: Initializing webdav
Nov 13 23:30:35 pred1 mount.davfs: HTTP session to https://owncloud.livejourney.org:443 begins.
Nov 13 23:30:35 pred1 mount.davfs: Initializing cache
Nov 13 23:30:35 pred1 mount.davfs: Alignment of dav_node: 16
Nov 13 23:30:35 pred1 mount.davfs: Checking cache directory
Nov 13 23:30:35 pred1 mount.davfs:   /var/cache/davfs2/zipzip
Nov 13 23:30:35 pred1 mount.davfs: new node: (nil)->0x6ed6d0
Nov 13 23:30:35 pred1 mount.davfs: Reading stored cache data
Nov 13 23:30:35 pred1 mount.davfs: new node: 0x6ed6d0->0x6ed810
Nov 13 23:30:35 pred1 mount.davfs: Running pre_send hooks
Nov 13 23:30:35 pred1 mount.davfs: Sending request headers:#012OPTIONS /remote.php/webdav/ HTTP/1.1#015#012User-Agent: davfs2/1.5.2 neon/0.30.1#015#012Keep-Alive: #015#012Connection: TE, Keep-Alive#015#012TE: trailers#015#012Host: zipzip
Nov 13 23:30:35 pred1 mount.davfs: Sending request-line and headers:
Nov 13 23:30:35 pred1 mount.davfs: Doing DNS lookup on zipzip...
Nov 13 23:30:35 pred1 mount.davfs: req: Connecting to zipzip
Nov 13 23:30:35 pred1 mount.davfs: Request sent; retry is 0.
Nov 13 23:30:35 pred1 mount.davfs: [status-line] < HTTP/1.1 200 OK
Nov 13 23:30:35 pred1 mount.davfs: [hdr] Date: Mon, 13 Nov 2017 22:30:16 GMT
Nov 13 23:30:35 pred1 mount.davfs: Header Name: [date], Value: [Mon, 13 Nov 2017 22:30:16 GMT]
Nov 13 23:30:35 pred1 mount.davfs: [hdr] Server: Apache/2.4.7 (Ubuntu)
Nov 13 23:30:35 pred1 mount.davfs: Header Name: [server], Value: [Apache/2.4.7 (Ubuntu)]
Nov 13 23:30:35 pred1 mount.davfs: [hdr] Strict-Transport-Security: max-age=31536000; includeSubDomains
Nov 13 23:30:35 pred1 mount.davfs: Header Name: [strict-transport-security], Value: [max-age=31536000; includeSubDomains]
Nov 13 23:30:35 pred1 mount.davfs: [hdr] Access-Control-Allow-Headers: Authorization, DNT, User-Agent, Keep-Alive, Content-Type, accept, origin, X-Requested-With, authorization, client-security-token, Set-Cookie, Www-Authenticate
Nov 13 23:30:35 pred1 mount.davfs: Header Name: [access-control-allow-headers], Value: [Authorization, DNT, User-Agent, Keep-Alive, Content-Type, accept, origin, X-Requested-With, authorization, client-security-token, Set-Cookie, Www-Authenticate]
Nov 13 23:30:35 pred1 mount.davfs: [hdr] Access-Control-Allow-Methods: PUT, GET, POST, DELETE, OPTIONS, MKCOL, PROPFIND
Nov 13 23:30:35 pred1 mount.davfs: Header Name: [access-control-allow-methods], Value: [PUT, GET, POST, DELETE, OPTIONS, MKCOL, PROPFIND]
Nov 13 23:30:35 pred1 mount.davfs: [hdr] Access-Control-Allow-Credentials: true
Nov 13 23:30:35 pred1 mount.davfs: Header Name: [access-control-allow-credentials], Value: [true]
Nov 13 23:30:35 pred1 mount.davfs: [hdr] Content-Length: 590
Nov 13 23:30:35 pred1 mount.davfs: Header Name: [content-length], Value: [590]
Nov 13 23:30:35 pred1 mount.davfs: [hdr] Keep-Alive: timeout=5, max=100
Nov 13 23:30:35 pred1 mount.davfs: Header Name: [keep-alive], Value: [timeout=5, max=100]
Nov 13 23:30:35 pred1 mount.davfs: [hdr] Connection: Keep-Alive
Nov 13 23:30:35 pred1 mount.davfs: Header Name: [connection], Value: [Keep-Alive]
Nov 13 23:30:35 pred1 mount.davfs: [hdr] Content-Type: text/html; charset=iso-8859-1
Nov 13 23:30:35 pred1 mount.davfs: Header Name: [content-type], Value: [text/html; charset=iso-8859-1]
Nov 13 23:30:35 pred1 mount.davfs: [hdr]
Nov 13 23:30:35 pred1 mount.davfs: End of headers.
Nov 13 23:30:35 pred1 mount.davfs: Running post_headers hooks
Nov 13 23:30:35 pred1 mount.davfs: Reading 590 bytes of response body.
Nov 13 23:30:35 pred1 mount.davfs: Got 590 bytes.
Nov 13 23:30:35 pred1 mount.davfs: Running post_send hooks
Nov 13 23:30:35 pred1 mount.davfs: Request ends, status 200 class 2xx, error line:#012200 OK
Nov 13 23:30:35 pred1 mount.davfs: Running destroy hooks.
Nov 13 23:30:35 pred1 mount.davfs: Request ends.

I looked at the owncloud (9.0.2) logs and nothing looks suspicious...
Any clue ?
Best regards.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by _71007 (Posted a comment)
  • -email is unavailable- added by fbertran (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-01-24 _71007 Open/ClosedOpen Closed
    2018-01-24 _71007 StatusNone Done
        Assigned toNone _71007

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code