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 Mar 1 07:43:35 2016  
 
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: Done
Privacy: PublicAssigned to: Werner Baumann <wbaumann>
Originator Email: -unavailable-Open/Closed: Open
Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Tue Mar 1 10:18:06 2016, 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 Mar 1 07:43:35 2016, 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by wbaumann (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed May 18 18:18:51 2016wbaumannStatusIn Progress=>Done
    Tue Mar 1 10:18:06 2016wbaumannStatusNone=>In Progress
      Assigned toNone=>wbaumann

    Back to the top


    Powered by Savane 3.1-cleanup1