Public shares: Manually set password is not saved

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.8
  • Operating system and version (e.g., Ubuntu 24.04):
    • 22.04
  • PHP version (e.g, 8.3):
    • 8.2
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes

When I create a public link for a file, a generated password (example: 1234$) is displayed first. If I replace this password with my own (e.g., test123) and click on the arrow (to the right of it) or on “Create share,”

Then open the link and enter test123, I get an error message saying that the link has expired or the password is incorrect. The automatically generated password works.
It only works when I edit the share in Nextcloud (customize link), re-enter the password, and click on Update share.

Is there a solution to this problem? Is this problem known?

This works well on my NC31 31.0.8.1 (docker :apache tag). If you leterally use test123 this password might have failed password policy and was not applied - please try with long complex password

see duplicate german topic Link erstellen, manuelle Passwortvergabe ohne Funktion

edit: You are right. User defined passwords aren’t working. No matter, how secure they are. This is bad!

I will create an issue on GitHub.


I realised the same just now. This happens, if the password doesn’t meet the complexitiy criteria.

There is a small error message beneath the sharing window which can be easily overseen. And the share is created, even if the password is bad.

This is very weird behaviour.

1 Like

Sorry, User wwe already had the right clue with the link to the german topic.

Here is a GitHub issue: [Bug]: public share links ignoring manually set passwords · Issue #55187 · nextcloud/server · GitHub
Will be solved with 31.0.10