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

 
 

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

Submitted by:  None
Submitted on:  Tue 01 Mar 2016 07:43:35 AM UTC  
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  Werner Baumann <wbaumann>
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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.

Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
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 wbaumann (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-05-18 wbaumann StatusIn Progress => Done
    2016-03-01 wbaumann StatusNone => In Progress
        Assigned toNone => wbaumann

    Back to the top


    Powered by Savane 3.3