-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Upload to Nextcloud 21 does not work #6
Comments
Would be nice to see the actual call you made to get this error ( just change the url to In
To your alpine bash location (eg.)
You can find it with
or
Then also try to run from Bash (instead of Busybox/Ash). Since I don't have much info, I am just guessing some stuff. Cheers |
Just something I noticed, NC21 changed the webdav routes. They are not remote.php/webdav/... but remote.php/dav/files/[username] |
This is a bit confusing. From the documentation, they seem to use
The Apache / Nginx / Other proxy configuration can also cause problems. The proxy config could also solve the problem by redirecting/rewriting /dav/ to /webdav/ or vice-versa. The NC21 documentation still lists the correct folder as
They may have changed the code and not updated the docs though. I don't have a NC21 to test at this point. One issue is that if the wrong one is used, there is no error. No error from curl and no response error as well. If I try to open the correct one without the token/password, I would get a XML with an error as response. The wrong one returns nothing. So, I guess I could try one, see if I get the error response and then try the other one if I get nothing. This would require an extra curl call, some parsing, etc. Example response
Example blank
But then I noticed that the one that does not work actually returns a I still dislike the overhead of an extra curl call, but I can't see other way of automagically checking this. Only other option is to have a parameter that would change it or turn checking on. I will probably try it without authentication and check for the 401 status code (the one that works). Then if it gets anything else, change webdav to dav and check again. If failed again, exit program. I like the idea of at least having a way to make multiple calls not check every time. @teriansilva I will let you know when I implement this so you can test in NC21. Cheers! |
Example calls to get URL status 401
404
|
I will wait for some confirmation that the public.php URL actually changed from The remote.php URL has been changed to |
I never got to try this in NC21. But I tested it in NC20 and NC22 and they both worked without problems. Since the original poster never bothered to reply with more info and this problem was never confirmed, I will close this. |
I am currently trying to upload files to a drop link to Nextcloud version 21.
I am using this example command to upload:
./cloudsend.sh './myfile.txt' 'https://cloud.mydomain.net/s/fLDzToZF4MLvG28'
The upload is done from a alpine 3.13 image with follwing installed:
apk add python3 bash build-base gcc jq coreutils curl
But I am getting this error:
Do you have a clue why?
The text was updated successfully, but these errors were encountered: