Error When Sharing: "The password field cannot be empty" (Nextcloud 31.0.8)

Hello everyone,

I’m experiencing a frustrating issue when trying to create a password-protected share link. Although I enter a password, the system gives me a misleading error message.

Problem Description

When I generate a share link and set a password, a pop-up error appears saying “The password field cannot be empty.” Despite this message, the share link is created successfully, and the password I entered works perfectly fine. The error seems to be a visual bug, as the functionality is not affected.

Steps to Reproduce

  1. Open any file or folder to share.
  2. Click the share icon.
  3. Select “Share link”.
  4. The password is automatically generated because the “Force password protection” setting is enabled.
  5. Click the “Save share” button.
  6. A pop-up error message flashes on the screen before disappearing.
    Expected vs. Actual Behavior

Expected Behavior: The share link is created without any error message, as the system has already generated a valid password.
Actual Behavior: The share link is created successfully, but a pop-up error message appears and then disappears, while the email is sent.

Server Environment:

Nextcloud Version:Nextcloud Hub 10 (31.0.8)
Operating System: Linux 6.1.40-28-generic x86_64 (running on Ubuntu 24)
Web Server:Apache (behind Nginx Proxy Manager)
PHP Version: 8.3.24
Database Type: mysql
Database Version:10.11.14

Client Environment:

  • Web Browser: Google Chrome, Firefox, Microsoft Edge
  • Operating System:Windows 11, Linux

Troubleshooting Steps Attempted

  • Cleared browser cache and cookies.
  • Tried using an incognito window.
  • Tried a different web browser.



But that is not what your screenshots show.

What you calls “pop-up” is in fact a “toast message”

Toast messages have different colored borders. The toast messages in your screenshots have a green border, which means they are success messages.

The messages in your screenshots are:

“Password created successfully”

and

“Share saved.”

This means everything worked as expected.

h.t.h.


ernolf

Thanks for the clarification. Just to specify: what I’m seeing is not a toast message, but rather an inline validation error displayed directly under the password input field.

The behavior is:

  1. I enter a password.
  2. I click Save share.
  3. The system still shows the error message “The password field cannot be empty”, even though the field is not empty.
  4. Despite this, the share is saved successfully and everything works fine afterwards.

So it doesn’t block functionality, but the misleading error message is confusing and looks like a validation bug.


I’m also having this same exact issue.