server icon indicating copy to clipboard operation
server copied to clipboard

[Bug]: Wrong redirection with the button Continue with this unsupported browser

Open aaaaadrien opened this issue 1 year ago • 7 comments

⚠️ This issue respects the following points: ⚠️

Bug description

I try to access to Nextcloud 28.0.1 from an unsupported browser (Firefox ESR 102 on Windows). I redirected on the page : https://HOST/index.php/unsupported If a acknowledge with the button "Continue with this unsupported browser" i have a 404 error because the URI is in double. I redirected to https://HOST/index.php/index.php/apps/dashboard/

Steps to reproduce

  1. Install Nextcloud 28.0.1 from archive
  2. Login with unsupported browser
  3. See the issue

Expected behavior

Redirect to https://HOST/index.php/apps/dashboard/ instead of https://HOST/index.php/index.php/apps/dashboard/

Installation method

Community Manual installation with Archive

Nextcloud Server version

28

Operating system

RHEL/CentOS

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MySQL

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

Upgraded to a MAJOR version (ex. 22 to 23)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

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

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

aaaaadrien avatar Jan 26 '24 10:01 aaaaadrien

I'm having difficulty reproducing this.

Does this same environment work fine with a supported browser?

Also, was your installation in/accessible via a subfolder URL by chance (i.e https://domain.com/nextcloud versus https://nextcloud.domain.com)? That can make a difference.

Since you you didn't provide one in your report, I have to ask: is your config modified in any way or - better yet - can you provide it?

joshtrichards avatar Jan 26 '24 12:01 joshtrichards

Does this same environment work fine with a supported browser? => YES

lso, was your installation in/accessible via a subfolder URL by chance (i.e https://domain.com/nextcloud versus https://nextcloud.domain.com)? That can make a difference. => I have 2 Nextcloud installation with same issue. => Install number 1 is redirected to https://domain.fr/nextcloud/index.php/nextcloud/index.php/apps/dashboard/ (because nextcloud access from subfolder => Install number 2 is redirected to https://domain.fr/index.php/index.php/apps/dashboard/ => So with subfolder or root install it's the same.

is your config modified in any way or - better yet - can you provide it? => Default configuration. But one upgrade from an 23 install and the other is upgrades from a lot of years, first install was Owncloud 6. But all upgrade are only Major to Major+1.

aaaaadrien avatar Jan 26 '24 20:01 aaaaadrien

Please provide the configs, as requested in the bug report template. Particularly since we can't reproduce this so far.

joshtrichards avatar Jan 26 '24 20:01 joshtrichards

Yes, the config :

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***.fr",
            "***REMOVED SENSITIVE VALUE***.fr"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "28.0.1.1",
        "overwrite.cli.url": "https:\/\/***REMOVED SENSITIVE VALUE***.fr",
        "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.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "skeletondirectory": "",
        "auth.bruteforce.protection.enabled": true,
        "maintenance": false,
        "loglevel": 2
    }
}

aaaaadrien avatar Jan 29 '24 08:01 aaaaadrien

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.

nextcloud-command avatar Feb 29 '24 00:02 nextcloud-command

Are you sure mod_rewrite is enabled in your environment and AllowOverride All is on for the Nextcloud installation directory?

joshtrichards avatar Feb 29 '24 13:02 joshtrichards

Yes mod_rewite enabled.

Option used in the virtualhost are : Options Indexes FollowSymLinks AllowOverride All

aaaaadrien avatar Mar 01 '24 14:03 aaaaadrien