Folder link share demands login

Nextcloud version (eg, 18.0.2):
PHP: 7.4.9
Fresh install

The issue you are facing:

When I create a sharing link for a folder (public) – no matter what permissions I apply – accessing the link always demands a login. When giving the permissions to edit and upload, a browser login dialog pops up immediately, when opening the link. When giving only the permission to upload, one can select a file to upload, but when the progress bar is finished, a login dialog pops up.
(Providing shared folders for specific users works like a charm. They can upload and edit without problems. Only general links for non-registered users demand login.)

The general link is meant for non-registered users to simply download or upload files to a folder. The current problem makes this core feature impossible…
What should I do?
Thank you!

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Create folder
  2. Create a non-specific share link for the folder (no matter what permissions)
  3. Try to access the shared folder.

The output of your Nextcloud log in Admin > Logging:


The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'instanceid' => '*****',
  'passwordsalt' => '*****',
  'secret' => '****',
  'trusted_domains' => 
  array (
    0 => '',
  'datadirectory' => '/customers/a/1/9/*********.eu/httpd.www/server/data',
  'dbtype' => 'sqlite3',
  'version' => '',
  'overwrite.cli.url' => '*********',
  'installed' => true,
  'app_install_overwrite' => 
  array (
    0 => 'timetracker',

Updated to NextCloud 19. Bug is gone, sharing works.