-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Handle Nginx DAV PROPFIND responses correctly #554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Parse the d:status field for d:propstat sections within a d:multistatus response to a DAV PROPFIND because Nginx returns 404 statuses wrapped in an overall 207
The WebDAV XML is often quite messy and changes from one server to the next, so I think this line might cause problem if something is not defined or defined differently:
Is there any way to get it working with |
Sure, here's a rewrite taking it that direction. |
Could you confirm it indeed works with your Nginx server (as I can't test myself)? Also this line |
I can definitely confirm that it works with Nginx for me; I've been using a local build and ignoring updates since I posted this PR, and I've had no issues. On the split concern, I'd done a quick check ( I am not a Javascript native, this is a bit of a drive-by, and I'll be back to Python, C, and assembly as soon as I solve this itch), which caused me to think this was likely okay: Bradleys-MacBook-Pro:joplin brad$ node
If that's not good, I'm happy with any other interpretation that works. I don't think the 404 can be anywhere else since that's a standard regulated string. |
I thought accessing an array out of bonds would throw an error, but it seems it indeed doesn't. Just to be completely safe though I would prefer something like I agree there's a standard but many implementations do their own thing so it's better to be safe, since that class is used to access many different services. |
Continues to work fine with that change. |
That's great, thank for the update. |
Parse the d:status field for d:propstat sections within a d:multistatus response to a DAV PROPFIND because Nginx returns 404 statuses wrapped in an overall 207
Proposed fix for #523