Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NC 22] URL gets redirected to a version without slash and thus making it invalid #28098

Closed
szotsaki opened this issue Jul 21, 2021 · 1 comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@szotsaki
Copy link

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

Download a fresh nextcloud instance and start the installation to the location nextcloud.local into a fresh database and with fresh configs.

Expected behaviour

  • Recommended apps page appears after setup
  • Dashboard page appears

Actual behaviour

The following URLs are trying to be loaded in these two cases which are invalid

Apache relevant log:

[Wed Jul 21 20:03:50.945412 2021] [core:info] [pid 21620] [client 127.0.0.1:49344] AH00128: File does not exist: /srv/www/htdocs/nextcloud/http:/index.php/core/apps/recommended

When I try to open https://nextcloud.local I see the following queries next to each other (which is the same during setup):

Request:

Response:

Request:

Response:

Request:

Response:

  • net::ERR_NAME_NOT_RESOLVED

Server configuration

Operating system:
openSUSE Tumbleweed 20210716

Web server:
apache2 2.4.48

Database:
mariadb 10.5.10

PHP version:
php 7.4.21

Nextcloud version: (see Nextcloud admin page)
22.0.0.11

Updated from an older Nextcloud/ownCloud or fresh install:
Fresh install

Where did you install Nextcloud from:
https://nextcloud.com/install/#instructions-server

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
Enabled:
  - accessibility: 1.7.0
  - activity: 2.15.0
  - bruteforcesettings: 2.2.0
  - circles: 22.0.0
  - cloud_federation_api: 1.4.0
  - comments: 1.11.0
  - contactsinteraction: 1.2.0
  - dashboard: 7.1.0
  - dav: 1.18.0
  - federatedfilesharing: 1.11.0
  - federation: 1.11.0
  - files: 1.16.0
  - files_pdfviewer: 2.3.0
  - files_rightclick: 1.1.0
  - files_sharing: 1.13.2
  - files_trashbin: 1.11.0
  - files_versions: 1.14.0
  - files_videoplayer: 1.11.0
  - firstrunwizard: 2.11.0
  - logreader: 2.7.0
  - lookup_server_connector: 1.9.0
  - nextcloud_announcements: 1.11.0
  - notifications: 2.10.1
  - oauth2: 1.9.0
  - password_policy: 1.12.0
  - photos: 1.4.0
  - privacy: 1.6.0
  - provisioning_api: 1.11.0
  - recommendations: 1.1.0
  - serverinfo: 1.12.0
  - settings: 1.3.0
  - sharebymail: 1.11.0
  - support: 1.5.0
  - survey_client: 1.10.0
  - systemtags: 1.11.0
  - text: 3.3.0
  - theming: 1.12.0
  - twofactor_backupcodes: 1.10.1
  - updatenotification: 1.11.0
  - user_status: 1.1.1
  - viewer: 1.6.0
  - weather_status: 1.1.0
  - workflowengine: 2.3.0
Disabled:
  - admin_audit
  - calendar
  - contacts
  - encryption
  - files_external
  - mail
  - richdocuments
  - spreed
  - user_ldap

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nextcloud.local"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "22.0.0.11",
        "overwrite.cli.url": "http:\/\/nextcloud.local",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true
    }
}

Are you using external storage, if yes which one: local

Are you using encryption: HTTPS

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Browser agnostic

Operating system: Linux

Logs

Web server error log

Web server error log
No relevant logs apart from the one up

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"JTCZxOot8ZcdlefXbXez","level":2,"time":"2021-07-21T18:00:43+00:00","remoteAddr":"127.0.0.1","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.166 Safari/537.36","version":""}
{"reqId":"JTCZxOot8ZcdlefXbXez","level":2,"time":"2021-07-21T18:00:43+00:00","remoteAddr":"127.0.0.1","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.166 Safari/537.36","version":""}
{"reqId":"OEvEpkkfmMCxsDfUlQ4b","level":2,"time":"2021-07-21T18:00:44+00:00","remoteAddr":"127.0.0.1","user":"--","app":"no app in context","method":"GET","url":"/core/vendor/zxcvbn/dist/zxcvbn.js.map","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.166 Safari/537.36","version":""}
{"reqId":"OEvEpkkfmMCxsDfUlQ4b","level":2,"time":"2021-07-21T18:00:44+00:00","remoteAddr":"127.0.0.1","user":"--","app":"no app in context","method":"GET","url":"/core/vendor/zxcvbn/dist/zxcvbn.js.map","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.166 Safari/537.36","version":""}
{"reqId":"OIZIubO4Orpf4kECFi4G","level":2,"time":"2021-07-21T18:00:51+00:00","remoteAddr":"127.0.0.1","user":"--","app":"no app in context","method":"GET","url":"/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.166 Safari/537.36","version":""}
{"reqId":"OIZIubO4Orpf4kECFi4G","level":2,"time":"2021-07-21T18:00:51+00:00","remoteAddr":"127.0.0.1","user":"--","app":"no app in context","method":"GET","url":"/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.166 Safari/537.36","version":""}
{"reqId":"HZ1QPwyNRmmFfXQfax9f","level":2,"time":"2021-07-21T18:01:51+00:00","remoteAddr":"127.0.0.1","user":"--","app":"no app in context","method":"GET","url":"/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.166 Safari/537.36","version":""}
{"reqId":"HZ1QPwyNRmmFfXQfax9f","level":2,"time":"2021-07-21T18:01:51+00:00","remoteAddr":"127.0.0.1","user":"--","app":"no app in context","method":"GET","url":"/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.166 Safari/537.36","version":""}
{"reqId":"I6T4zetNe3jIgkyI3d1g","level":2,"time":"2021-07-21T18:02:51+00:00","remoteAddr":"127.0.0.1","user":"--","app":"no app in context","method":"GET","url":"/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.166 Safari/537.36","version":""}
{"reqId":"I6T4zetNe3jIgkyI3d1g","level":2,"time":"2021-07-21T18:02:51+00:00","remoteAddr":"127.0.0.1","user":"--","app":"no app in context","method":"GET","url":"/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.166 Safari/537.36","version":""}
{"reqId":"buFunGHvFDBPHcfdX8dX","level":2,"time":"2021-07-21T18:03:16+00:00","remoteAddr":"127.0.0.1","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.166 Safari/537.36","version":""}
{"reqId":"buFunGHvFDBPHcfdX8dX","level":2,"time":"2021-07-21T18:03:16+00:00","remoteAddr":"127.0.0.1","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.166 Safari/537.36","version":""}
{"reqId":"NqJ3eNE9riyoMr9xzPPB","level":2,"time":"2021-07-21T18:03:44+00:00","remoteAddr":"127.0.0.1","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.166 Safari/537.36","version":""}
{"reqId":"NqJ3eNE9riyoMr9xzPPB","level":2,"time":"2021-07-21T18:03:44+00:00","remoteAddr":"127.0.0.1","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.166 Safari/537.36","version":""}

Browser log

Browser log
See above
@szotsaki szotsaki added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jul 21, 2021
@kesselb
Copy link
Contributor

kesselb commented Jul 21, 2021

Thanks 👍 Closing in favor of #27575

@kesselb kesselb closed this as completed Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

No branches or pull requests

2 participants