maindavfs2 - Support: sr #108988, mount.davfs: Mounting failed. |...

 
 

sr #108988: mount.davfs: Mounting failed. | XML parse error at line 1: undeclared namespace prefix

Submitter:  None
Submitted:  Tue 01 Mar 2016 07:43:35 AM 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
   

Tue 01 Mar 2016 10:18:06 AM UTC, comment #1: 

The culprit is this line:

<multistatus xmlns="DAV:" xmlns:_xmlns="xmlns" _xmlns:d="DAV:">

It looks pretty much like nonsense. If they want to declare the namespace prefix "d" to mean the same as "DAV" they should do it this way:

<multistatus xmlns="DAV:" xmlns:d="DAV:">

I have no idea why they want to replace the reserved XML-attribute "xmlns" with "_xmlns", but obviously it does not work.

You should report this as a bug to the vendor of your rebranded owncloud server.

Werner

P.S.: davfs2 does not parse XML on its own. It leaves this to the Neon library, which in turn uses your system's XML library. So neither davfs2 nor Neon could do anything about this. But instead of changing your system's XML library to accept invalid XML it is better to fix the bug in the server software.

- <_71007>
Tue 01 Mar 2016 07:43:35 AM UTC, original submission:  

Hi,
I'm getting the following error when trying to mount a rebranded owncloud server:
---
mount.davfs: Mounting failed.
XML parse error at line 1: undeclared namespace prefix
---

when i set the debug level to httpbody, these are the last 3 lines i get:
Mar  1 08:42:08 server mount.davfs: Body block (257 bytes):#012[<?xml version="1.0" encoding="utf-8"?>#012<propfind xmlns="DAV:"><prop>#012<resourcetype xmlns="DAV:"/>#012<getcontentlength xmlns="DAV:"/>#012<getetag xmlns="DAV:"/>#012<getlastmodified xmlns="DAV:"/>#012<executable xmlns="http://apache.org/dav/props/"/>#012</prop></propfind>#012]
Mar  1 08:42:08 server mount.davfs: Read block (567 bytes):#012[<?xml version="1.0" encoding="UTF-8"?><multistatus xmlns="DAV:" xmlns:_xmlns="xmlns" _xmlns:d="DAV:"><d:response><d:href>/remote.php/webdav/</d:href><d:propstat><d:prop><d:resourcetype><d:collection xmlns:d="DAV:"/></d:resourcetype></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontentlength></d:getcontentlength><d:getetag></d:getetag><d:getlastmodified></d:getlastmodified><executable xmlns="http://apache.org/dav/props/"></executable></d:prop><
Mar  1 08:42:08 server mount.davfs: d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response></multistatus>]

Can anyone point me in the right direction what to do next?
Thanks,
Remco

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 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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-26 _71007 Open/ClosedOpen Closed
    2016-05-18 _71007 StatusIn Progress Done
    2016-03-01 _71007 StatusNone In Progress
        Assigned toNone _71007

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code