nextcloud / documentation

📘 Nextcloud documentation
https://docs.nextcloud.com
Other
484 stars 1.67k forks source link

[Bug]: Accessing public shares over WebDAV not working on Windows 10 #9536

Open DegrangeM opened 2 years ago

DegrangeM commented 2 years ago

⚠️ This issue respects the following points: ⚠️

Bug description

You should be able to access to a directory shared with a link in webdav according to this page: https://docs.nextcloud.com/server/latest/user_manual/en/files/access_webdav.html#accessing-public-shares-over-webdav

However, when trying to do so on windows 10, windows refuse the URL witht the message "The folder you entered does not appear to be valid. Please choose another".

Please note that:

Steps to reproduce

  1. Create a folder and add some file in it
  2. Share this folder with a sharing link and get the share token
  3. On windows 10, open file explorer and right click on "This PC" then choose "Add a network location".
  4. Paste this url : https://NEXTCLOUD_URL/public.php/webdav
  5. Press the next button

Expected behavior

Windows should ask you for creditential to connect to the webdav url (and it should then work by using the share token as user and no password).

Installation method

No response

Operating system

No response

PHP engine version

No response

Web server

No response

Database engine version

No response

Is this bug present after an update or on a fresh install?

No response

Are you using the Nextcloud Server Encryption module?

No response

What user-backends are you using?

Configuration report

No response

List of activated Apps

I don't have access to the server, I am a user.

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

"Settings → Administration → Sharing → Allow users on this server to send shares to other servers" is enabled

szaimen commented 2 years ago

Which NC version?

DegrangeM commented 2 years ago

Which NC version?

22.2.3

szaimen commented 1 year ago

Hi, please update to at least 23.0.12 and report back if it fixes the issue. Thank you!

nextcloud-command commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

Germain-n commented 1 year ago

Hello, I encountered exactly the same issue. I have nextcloud 25.0.2 and webdav for shared links is activated. In the nextcloud logs there is this error : Doctrine\DBAL\Exception\DeadlockException: An exception occurred while executing a query: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction which seems to have happened to other users.

Luckily, I found a workaround on Windows 10 (which is the only thing having this problem) : instead of adding a network connection as said on nextcloud docs (in "Computer") your just have to add a network drive (right clic on "network") and use the same URL and instructions as said in the docs (and check connect with different credentials or something)

I don't know what is the real cause of this issue since only windows seems impacted, so maybe the issue can be closed, but an update of the windows part of the documentation explaining this would be helpful I think (because it's different from other problems mentionned)

I wish you a nice day

szaimen commented 1 year ago

Luckily, I found a workaround on Windows 10 (which is the only thing having this problem) : instead of adding a network connection as said on nextcloud docs (in "Computer") your just have to add a network drive (right clic on "network") and use the same URL and instructions as said in the docs (and check connect with different credentials or something)

Interesting find! Do you mind creating a PR with an update to the documentation here: https://github.com/nextcloud/documentation/edit/master/user_manual/files/access_webdav.rst? Thanks a lot!

Moving to the documentation repo until then :)