Summary: | Dolphin does not accept PROPFIND response with capitalization in tags | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | robin |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | dolphin-bugs-null, nicolas.fella |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
robin
2025-02-03 09:58:05 UTC
Any chance you could show me the full XML response, or just the line with "multistatus"? Sure. Here is a working example: <?xml version="1.0" encoding="utf-8" ?><d:multistatus xmlns:d="DAV:"><d:response><d:href>/dav/DK/</d:href><d:propstat><d:status>HTTP/1.1 200 OK</d:status><d:prop><d:getlastmodified>Mon, 03 Feb 2025 18:32:00 +0000</d:getlastmodified><d:resourcetype><d:collection /></d:resourcetype></d:prop></d:propstat></d:response><d:response><d:href>/dav/DK/test/</d:href><d:propstat><d:status>HTTP/1.1 200 OK</d:status><d:prop><d:getlastmodified>Fri, 12 Jan 2024 08:41:21 +0000</d:getlastmodified><d:resourcetype><d:collection /></d:resourcetype></d:prop></d:propstat></d:response></d:multistatus> and an example that results in the error (only difference is D:multistatus): <?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:d="DAV:"><d:response><d:href>/dav/DK/</d:href><d:propstat><d:status>HTTP/1.1 200 OK</d:status><d:prop><d:getlastmodified>Mon, 03 Feb 2025 18:32:00 +0000</d:getlastmodified><d:resourcetype><d:collection /></d:resourcetype></d:prop></d:propstat></d:response><d:response><d:href>/dav/DK/test/</d:href><d:propstat><d:status>HTTP/1.1 200 OK</d:status><d:prop><d:getlastmodified>Fri, 12 Jan 2024 08:41:21 +0000</d:getlastmodified><d:resourcetype><d:collection /></d:resourcetype></d:prop></d:propstat></d:response></D:multistatus> thanks for your time! Thanks, that seems to confirms what I suspected. As far as I can tell the d being uppercase or lowercase doesn't matter as long as it matches the captitalization in xmlns:d="DAV:", i.e. <D:multistatus> is handled fine if and only if xmlns:D="DAV:" is used. I don't know what the XML specification says on this, but it is how https://doc.qt.io/qt-6/qdomdocument.html behaves, which is used for the XML parsing here Ah, that makes sense, thanks for the clarification. Then it's probably not a bug, just me not knowing what XML namespaces meant and blindly copying an example from the RFC.. |