-
Notifications
You must be signed in to change notification settings - Fork 51
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
"Principal name not found" error on downloading a file #68
Comments
For the short term fix, please use the previous version 11.5.1 |
I got it working with version 11.5.1, but found other problems. New code:
The need for the setting of the empty subpathPrefix is that in buildWebdavPath the leading "/" is missing if the subpathPrefix is null. |
double checked the code in my previous comment with version 11.6.0: it works now with the line having the comment "required workaround". The buildWebdavPath function is the culprit. However, the rest of the code does not work either. |
Are you using some kind of ldap user backend in nextcloud? (Or other user provisioning?) |
Can you test with the 11.7.0-SNAPSHOT release? |
Could you please test with 11.7.0-SNAPSHOT release? |
I am trying to download a file from Nextcloud (self-hosted, version is 20.0.8.1). The top level view in Nextcloud has a file "Nextcloud.mp4". I have verified that the username and password is correct (got a 401 error when I used the wrong password). I have also tried other methods without success (see the commented lines).
Here is my code:
And here is the log file output:
The url "https://nextcloud.example.com/remote.php/dav/files/[email protected]/Nextcloud.mp4/" results in fact in a 404 error when pasted into the browser. However, when I replace the user name part with the uuid that is listed in the Nextcloud administrator user listing near my full name ("https://nextcloud.example.com/remote.php/dav/files/BA00370B-3FFZ-4295-8D76-C232DA9B3565/Nextcloud.mp4/"), I can successfully download the file via the browser.
So this shows that the path to the file in the nc.downloadFile call seems to be correct. I also tried replacing my user name by the uuid in the code, but then the login fails.
Please advise what to do to successfully download the file by a Java program.
The text was updated successfully, but these errors were encountered: