Skip to content

[Bug]: Login always needed when you open a NC url (e.g. Files / Talk) via browser bookmark #49968

Not planned

Description

@Speed7811

⚠️ This issue respects the following points: ⚠️

Bug description

In our company many people access NC via browser Bookmark, e.g. Files or Talk rooms. Now it happens every time that a login dialog occur from NC when a user click on the bookmark - regardless of whether you have already logged or not. This happens only if you access NC via browser bookmark. If you paste the url in the browser it doesn't happen.

Steps to reproduce

  1. Login via URL on your nextcloud instance e.g. https://cloud.mycompany.com/
  2. Save a URL as a bookmark of a room/call e.g. https://cloud.mycompany.com/index.php/call/znq3okmr or Files e.g. https://cloud.mycompany.com/index.php/apps/files/files
  3. Close the browser completely (all tabs etc.)
  4. Open the browser and the the url of your login instance e.g. https://cloud.mycompany.com/ => Now your are logged in => That's ok! This step is only to check that you are logged in.
  5. Close the browser completely again (all tabs etc.)
  6. Open the browser and click on the bookmark you saved in step 2. (yes it sounds crazy but it must be a bookmark - paste the URl will work) - repeat this step if necessary. Sometime it happens directly - sometime I need two or three tries.

Expected behavior

The NC url should be opened and the user is still logged in without any dialog. The user can use NC directly without doing any login.

Nextcloud Server version

30

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

MariaDB

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

Upgraded to a MAJOR version (ex. 28 to 29)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.mycompany.de"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "30.0.4.1",
        "overwrite.cli.url": "https:\/\/cloud.mycompany.de",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0
        },
        "default_language": "de",
        "default_phone_region": "DE",
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "tls",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "enable_previews": true,
        "preview_max_x": "1024",
        "preview_max_y": "1024",
        "preview_max_scale_factor": "1",
        "jpeg_quality": "60",
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\Movie",
            "OC\\Preview\\PDF",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown"
        ],
        "maintenance": false,
        "theme": "",
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "loglevel": 0,
        "logtimezone": "Europe\/Berlin",
        "log_rotate_size": 104857600,
        "app_install_overwrite": [
            "previewgenerator",
            "files_rightclick",
            "unsplash"
        ],
        "updater.release.channel": "stable",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [],
        "maintenance_window_start": 1
    }
}

List of activated Apps

Enabled:
  - activity: 3.0.0
  - app_api: 4.0.3
  - bruteforcesettings: 3.0.0
  - circles: 30.0.0
  - cloud_federation_api: 1.13.0
  - comments: 1.20.1
  - contacts: 6.1.1
  - contactsinteraction: 1.11.0
  - dav: 1.31.1
  - federatedfilesharing: 1.20.0
  - federation: 1.20.0
  - files: 2.2.0
  - files_downloadlimit: 3.0.0
  - files_external: 1.22.0
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - firstrunwizard: 3.0.0
  - keeweb: 0.6.20
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - mail: 4.1.0
  - nextcloud_announcements: 2.0.0
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - photos: 3.0.2
  - previewgenerator: 5.7.0
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - related_resources: 1.5.0
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - spreed: 20.1.1
  - support: 2.0.0
  - survey_client: 2.0.0
  - systemtags: 1.20.0
  - text: 4.1.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - twofactor_totp: 12.0.0-dev
  - unsplash: 3.0.3
  - updatenotification: 1.20.0
  - viewer: 3.0.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - admin_audit: 1.20.0
  - dashboard: 7.10.0 (installed 7.0.0)
  - encryption: 2.18.0
  - files_versions: 1.23.0 (installed 1.20.0)
  - recommendations: 3.0.0 (installed 1.2.0)
  - suspicious_login: 8.0.0
  - twofactor_nextcloud_notification: 4.0.0
  - user_ldap: 1.21.0
  - user_status: 1.10.0 (installed 1.8.1)
  - weather_status: 1.10.0 (installed 1.0.0)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

I will add it if really necessary. Please let me know.

Additional info

Info 1: We just updated last week from 28 one instance to 29 and another instance to 30 (Latest patch level). In <=28 it works many years without any problem.

Info 2: This doesn't happens if you are logged in, let the browser open and then click on the bookmark

Info 3: I can share a video if necessary.

Info 4: First I thought it was a Spreed thing but (See: nextcloud/spreed#14045) it looks like to be a server thing.

Activity

  1. added
    0. Needs triage
    on Dec 24, 2024
  2. joshtrichards commented on Dec 28, 2024

    @joshtrichards
    Member

    Sometime it happens directly - sometime I need two or three tries.

    Do you have a reverse proxy?

    What is indicated in the browser inspector under the Network tab (and maybe Console) when reproducing the problem?

  3. Speed7811 commented on Dec 28, 2024

    @Speed7811
    Author

    Hey @joshtrichards,

    no I don't have a reverse proxy.

    I tried it with the network tab but whenever it is opened it works as expected. I tried it around 10 times with Chrome. If the developer console is closed the issue occur directly - and this is not a joke!

    Best regards

    Rainer

  4. changed the title [-][Bug]: Login always needed when you enter a NC url (e.g. Files / Talk) via browser bookmark[/-] [+][Bug]: Login always needed when you open a NC url (e.g. Files / Talk) via browser bookmark[/+] on Dec 28, 2024
  5. salmart-dev commented on Aug 27, 2025

    @salmart-dev
    Contributor

    Hi @Speed7811,

    Trying this on version 31 and the development version doesn't seem to trigger a login screen any longer. Could you confirm?

  6. added theissue type on Feb 6, 2026
  7. susnux commented on Dec 2, 2026

    @susnux
    Contributor

    Thanks for the report. The remember-me login and session handling were reworked several times since 30 (e.g. #64908, #65959), and we couldn't reproduce this on current versions. As there was no feedback on the retest request, I'm closing this for now. If it still happens on a supported version (32 or later), please reopen with the server log at debug level around the failed bookmark load; lines like "Tried to log in but could not verify token" or "Could not find the session token to renew" would help a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triage30-feedbackbugfeature: authentication

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions