Replies: 1 comment
-
Try using pre-emptive auth, it will work as long as Basic auth is used. See comments in #103 for more info. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the Sardine library in Java to upload files to a WebDAV server. When attempting to upload files to the root directory (.../remote.php/dav/files/p529/), I encounter the following error:
java.lang.RuntimeException: org.apache.http.client.ClientProtocolException ... org.apache.http.client.NonRepeatableRequestException: Cannot retry request with a non-repeatable request entity.
The issue arises only when trying to upload to the root directory; creating folders in the root directory and uploading to subdirectories works fine.
Steps to reproduce in the application im running (ServerBackup Minecraft Mod):
Expected behavior:
I expect to be able to upload files to the root directory using the Sardine library without encountering the NonRepeatableRequestException.
Additional information:
This is the Code Snippet where I encounter the issue:
GitHub Gist of usage
This is the Log I receive in my application, I've tried to achieve more verbose logging but was not able to.
ErrorLog.txt
I've also tried to use sardine.put() in combination with a ByteArray and that worked, however I have to deal with rather large files and relatively little ram so its not an option.
Maybe this information also helps, im using nextCloud and their WebDav functionality and checked with WinScp if I am able to upload files directly to the root directory which also works.
Best regards P529
Beta Was this translation helpful? Give feedback.
All reactions