Skip to content
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

[BUG] Can't sync app data to nginx webdav #307

Open
1 task done
hulzer opened this issue Oct 7, 2024 · 4 comments
Open
1 task done

[BUG] Can't sync app data to nginx webdav #307

hulzer opened this issue Oct 7, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@hulzer
Copy link

hulzer commented Oct 7, 2024

Version

1.11.3 Build 99

What platform are you using?

Android

OS Version

Android 14

What happened?

I try to setup a webdav sync to a nginx server with webdav enabled.

I get the following error on server side:
[error] 11#11: *42 MKCOL can create a collection only, client: x.x.x.x, server: , request: "MKCOL /App/1728242679067 HTTP/1.1", host: "x.x.x.x"

It seems that there is a slash missing at the end of the collection path:
https://tools.ietf.org/html/rfc4918#section-9.3

Thanks for your effords!

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@hulzer hulzer added the bug Something isn't working label Oct 7, 2024
@farfromrefug
Copy link
Collaborator

@hulzer thanks for thé report. I can't reproduce here as I my server does not fail on this request.
Could you by any chance try to trigger thé request with the missing / and see if it works ?
If you confirm I can add the missing /

@hulzer
Copy link
Author

hulzer commented Oct 8, 2024

Hi,

here's my simple test on bash:

Request

curl -X MKCOL -o /dev/null -s -w "%{http_code}\n" http://192.168.0.1:81/test -u webdav:1234

Response

409

Request

curl -X MKCOL -o /dev/null -s -w "%{http_code}\n" http://192.168.0.1:81/test/ -u webdav:1234

Response

201

As mentioned in many other projects, it seems that nginx handles the request very strict.

@farfromrefug
Copy link
Collaborator

@hulzer thanks a lot will fix it for you then!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@farfromrefug @hulzer and others