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

[oC10] loading oC Web fails when OIDC app is enabled #5670

Closed
wkloucek opened this issue Aug 13, 2021 · 1 comment
Closed

[oC10] loading oC Web fails when OIDC app is enabled #5670

wkloucek opened this issue Aug 13, 2021 · 1 comment
Labels
Category:Defect Existing functionality is not working as expected Platform:oC10 Platform:Web Topic:Docker Issues related to our official Docker containers Type:Bug Something isn't working

Comments

@wkloucek
Copy link
Contributor

Steps to reproduce

  1. use Web on oC10 with oAuth app, set Web as default app
  2. enable OpenID Connect App
  3. go to your ownCloud instance
  4. see an error image
  5. disable OpenID Connect App
  6. see a login screen or oC Web

Expected behaviour

See a login screen or oC Web in either way

Actual behaviour

See an Internal Server Error screen if OpenID Connect App is enabled

Server configuration

Operating system: Linux

Web server: owncloud/server docker image

Database: mariadb:10.6.4

PHP version: owncloud/server docker image

ownCloud version: 10.8.0.4

Updated from an older ownCloud or fresh install: updated

Where did you install ownCloud from: docker

The content of config/config.php:

{
    "basic": {
        "license key": "***REMOVED SENSITIVE VALUE***",
        "date": "Fri, 13 Aug 2021 08:53:09 +0000",
        "ownCloud version": "10.8.0.4",
        "ownCloud version string": "10.8.0",
        "ownCloud edition": "Community",
        "server OS": "Linux",
        "server OS version": "Linux 8b0e150ba8fa 3.10.0-1160.31.1.el7.x86_64 #1 SMP Thu Jun 10 13:32:12 UTC 2021 x86_64",
        "server SAPI": "cli",
        "webserver version": null,
        "hostname": null,
        "logged-in user": false
    },
    "config": {
        "apps_paths": [
            {
                "path": "\/var\/www\/owncloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/owncloud\/custom",
                "url": "\/custom",
                "writable": true
            }
        ],
        "trusted_domains": [
            "localhost"
        ],
        "datadirectory": "\/mnt\/data\/files",
        "dbtype": "mysql",
        "dbhost": "db",
        "dbname": "owncloud",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "log_type": "owncloud",
        "supportedDatabases": [
            "sqlite",
            "mysql",
            "pgsql"
        ],
        "upgrade.disable-web": true,
        "default_language": "en",
        "overwrite.cli.url": "http:\/\/cloud.kloucek.io\/",
        "htaccess.RewriteBase": "\/",
        "logfile": "\/dev\/stdout",
        "loglevel": 2,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "mysql.utf8mb4": true,
        "filelocking.enabled": true,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "redis",
            "port": "6379"
        },
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "version": "10.8.0.4",
        "logtimezone": "UTC",
        "installed": true,
        "instanceid": "oc7cdzql69z1",
        "files_external_allow_create_new_local": true,
        "maintenance": false,
        "web.baseUrl": "https:\/\/cloud.kloucek.io\/index.php\/apps\/web",
        "overwritehost": "cloud.kloucek.io",
        "overwriteprotocol": "https",
        "trusted_proxies": [
            "cloud.kloucek.io"
        ],
        "web.rewriteLinks": true,
        "ldapIgnoreNamingRules": false,
        "defaultapp": "web"
    },
    "integritychecker": {
        "passing": true,
        "enabled": true,
        "result": []
    },
    "core": {
        "backgroundjobs_mode": "cron",
        "enable_external_storage": "yes",
        "first_install_version": "10.7.0.4",
        "grace_period": "1619619343",
        "installedat": "1619687895.1594",
        "lastcron": "1628844782",
        "lastupdateResult": "[]",
        "lastupdatedat": "1628843368",
        "public_files": "files_sharing\/public.php",
        "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
        "remote_nonshib-webdav": "user_shibboleth\/appinfo\/remote.php",
        "shareapi_allow_group_sharing": "yes",
        "shareapi_allow_links": "yes",
        "shareapi_allow_public_notification": "no",
        "shareapi_allow_public_upload": "yes",
        "shareapi_allow_share_dialog_user_enumeration": "yes",
        "shareapi_allow_social_share": "no",
        "shareapi_auto_accept_share": "yes",
        "shareapi_enforce_links_password_read_only": "***REMOVED SENSITIVE VALUE***",
        "shareapi_only_share_with_group_members": "no",
        "shareapi_share_dialog_user_enumeration_group_members": "no",
        "umgmt_set_password": "***REMOVED SENSITIVE VALUE***",
        "umgmt_show_backend": "true",
        "umgmt_show_email": "true",
        "umgmt_show_is_enabled": "true",
        "umgmt_show_last_login": "true",
        "umgmt_show_storage_location": "true",
        "user_additional_info_field": "email",
        "vendor": "owncloud"
    },
    "apps": [
....

The content of config/config.json:

{
  "server": "https://cloud.kloucek.io",
  "theme": "owncloud",
  "auth": {
    "clientId": "....",
    "url": "https://cloud.kloucek.io/index.php/apps/oauth2/api/v1/token",
    "authUrl": "https://cloud.kloucek.io/index.php/apps/oauth2/authorize"
  },
  "apps": ["files", "media-viewer"],
  "applications": [
    {
      "icon": "switch_ui",
      "target": "_self",
      "title": {
        "en": "Classic Design",
        "de": "Dateien",
        "fr": "Fichiers",
        "zh_CN": "文件"
      },
      "url": "https://cloud.kloucek.io/index.php/apps/files"
    },
    {
      "icon": "application",
      "menu": "user",
      "target": "_self",
      "title": {
        "de": "Einstellungen",
        "en": "Settings"
      },
      "url": "https://cloud.kloucek.io/index.php/settings/personal"
    }
  ]
}

List of activated apps:

Enabled:
  - activity:
    - Version: 2.6.1
    - Path: /var/www/owncloud/apps/activity
  - checksum:
    - Version: 0.3.5
    - Path: /var/www/owncloud/custom/checksum
  - configreport:
    - Version: 0.2.0
    - Path: /var/www/owncloud/apps/configreport
  - dav:
    - Version: 0.6.0
    - Path: /var/www/owncloud/apps/dav
  - drawio:
    - Version: 0.0.9
    - Path: /var/www/owncloud/custom/drawio
  - extract:
    - Version: 1.2.4
    - Path: /var/www/owncloud/custom/extract
  - federatedfilesharing:
    - Version: 0.5.0
    - Path: /var/www/owncloud/apps/federatedfilesharing
  - files:
    - Version: 1.5.2
    - Path: /var/www/owncloud/apps/files
  - files_external:
    - Version: 0.8.0
    - Path: /var/www/owncloud/apps/files_external
  - files_mediaviewer:
    - Version: 1.0.4
    - Path: /var/www/owncloud/apps/files_mediaviewer
  - files_pdfviewer:
    - Version: 0.12.2
    - Path: /var/www/owncloud/apps/files_pdfviewer
  - files_sharing:
    - Version: 0.14.0
    - Path: /var/www/owncloud/apps/files_sharing
  - files_texteditor:
    - Version: 2.3.1
    - Path: /var/www/owncloud/apps/files_texteditor
  - files_trashbin:
    - Version: 0.9.1
    - Path: /var/www/owncloud/apps/files_trashbin
  - files_versions:
    - Version: 1.3.0
    - Path: /var/www/owncloud/apps/files_versions
  - gallery:
    - Version: 16.1.1
    - Path: /var/www/owncloud/custom/gallery
  - market:
    - Version: 0.6.1
    - Path: /var/www/owncloud/apps/market
  - notifications:
    - Version: 0.5.4
    - Path: /var/www/owncloud/apps/notifications
  - oauth2:
    - Version: 0.4.4
    - Path: /var/www/owncloud/apps/oauth2
  - openidconnect:
    - Version: 2.0.0
    - Path: /var/www/owncloud/apps/openidconnect
  - provisioning_api:
    - Version: 0.5.0
    - Path: /var/www/owncloud/apps/provisioning_api
  - richdocuments:
    - Version: 2.6.0
    - Path: /var/www/owncloud/custom/richdocuments
  - updatenotification:
    - Version: 0.2.1
    - Path: /var/www/owncloud/apps/updatenotification
  - web:
    - Version: 4.0.0
    - Path: /var/www/owncloud/custom/web
Disabled:
  - admin_audit:
    - Path: /var/www/owncloud/apps/admin_audit
  - announcementcenter:
    - Path: /var/www/owncloud/apps/announcementcenter
  - comments:
    - Path: /var/www/owncloud/apps/comments
  - customgroups:
    - Path: /var/www/owncloud/apps/customgroups
  - encryption:
    - Path: /var/www/owncloud/apps/encryption
  - enterprise_key:
    - Path: /var/www/owncloud/apps/enterprise_key
  - external:
    - Path: /var/www/owncloud/apps/external
  - federation:
    - Path: /var/www/owncloud/apps/federation
  - files_antivirus:
    - Path: /var/www/owncloud/apps/files_antivirus
  - files_classifier:
    - Path: /var/www/owncloud/apps/files_classifier
  - files_external_dropbox:
    - Path: /var/www/owncloud/apps/files_external_dropbox
  - files_external_ftp:
    - Path: /var/www/owncloud/apps/files_external_ftp
  - files_ldap_home:
    - Path: /var/www/owncloud/apps/files_ldap_home
  - files_lifecycle:
    - Path: /var/www/owncloud/apps/files_lifecycle
  - firewall:
    - Path: /var/www/owncloud/apps/firewall
  - firstrunwizard:
    - Path: /var/www/owncloud/apps/firstrunwizard
  - graphapi:
    - Path: /var/www/owncloud/apps/graphapi
  - guests:
    - Path: /var/www/owncloud/apps/guests
  - metrics:
    - Path: /var/www/owncloud/apps/metrics
  - password_policy:
    - Path: /var/www/owncloud/apps/password_policy
  - ransomware_protection:
    - Path: /var/www/owncloud/apps/ransomware_protection
  - sharepoint:
    - Path: /var/www/owncloud/apps/sharepoint
  - systemtags:
    - Path: /var/www/owncloud/apps/systemtags
  - systemtags_management:
    - Path: /var/www/owncloud/apps/systemtags_management
  - templateeditor:
    - Path: /var/www/owncloud/apps/templateeditor
  - theme-enterprise:
    - Path: /var/www/owncloud/apps/theme-enterprise
  - user_external:
    - Path: /var/www/owncloud/apps/user_external
  - user_ldap:
    - Path: /var/www/owncloud/apps/user_ldap
  - user_shibboleth:
    - Path: /var/www/owncloud/apps/user_shibboleth
  - windows_network_drive:
    - Path: /var/www/owncloud/apps/windows_network_drive
  - wopi:
    - Path: /var/www/owncloud/apps/wopi
  - workflow:
    - Path: /var/www/owncloud/apps/workflow

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

Are you using encryption: no

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

Client configuration

Browser: Chromium

Operating system: Linux

Logs

owncloud_1   | 95.222.118.52 - - [13/Aug/2021:08:32:15 +0000] "GET /apps/web/ HTTP/1.1" 303 695 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36"
owncloud_1   | [Fri Aug 13 08:32:15.166984 2021] [php7:notice] [pid 25406] [client 95.222.118.52:0] {"reqId":"KdZUJ2wNQLkTTkMbB6xk","level":3,"time":"2021-08-13T08:32:15+00:00","remoteAddr":"95.222.118.52","user":"wkloucek","app":"index","method":"GET","url":"\\/index.php\\/apps\\/web\\/index.html","message":"Exception: {\\"Exception\\":\\"Jumbojett\\\\\\\\OpenIDConnectClientException\\",\\"Message\\":\\"The provider URL has not been set\\",\\"Code\\":0,\\"Trace\\":\\"#0 \\\\\\/mnt\\\\\\/data\\\\\\/apps\\\\\\/web\\\\\\/lib\\\\\\/Controller\\\\\\/FilesController.php(163): Jumbojett\\\\\\\\OpenIDConnectClient->getProviderURL()\\\\n#1 \\\\\\/mnt\\\\\\/data\\\\\\/apps\\\\\\/web\\\\\\/lib\\\\\\/Controller\\\\\\/FilesController.php(141): OCA\\\\\\\\Web\\\\\\\\Controller\\\\\\\\FilesController->getOpenIDConnectServerUrl()\\\\n#2 \\\\\\/mnt\\\\\\/data\\\\\\/apps\\\\\\/web\\\\\\/lib\\\\\\/Controller\\\\\\/FilesController.php(123): OCA\\\\\\\\Web\\\\\\\\Controller\\\\\\\\FilesController->applyCSPOpenIDConnect()\\\\n#3 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/AppFramework\\\\\\/Http\\\\\\/Dispatcher.php(170): OCA\\\\\\\\Web\\\\\\\\Controller\\\\\\\\FilesController->getFile()\\\\n#4 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/AppFramework\\\\\\/Http\\\\\\/Dispatcher.php(89): OC\\\\\\\\AppFramework\\\\\\\\Http\\\\\\\\Dispatcher->executeController()\\\\n#5 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/AppFramework\\\\\\/App.php(100): OC\\\\\\\\AppFramework\\\\\\\\Http\\\\\\\\Dispatcher->dispatch()\\\\n#6 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/AppFramework\\\\\\/Routing\\\\\\/RouteActionHandler.php(47): OC\\\\\\\\AppFramework\\\\\\\\App::main()\\\\n#7 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/Route\\\\\\/Router.php(343): OC\\\\\\\\AppFramework\\\\\\\\Routing\\\\\\\\RouteActionHandler->__invoke()\\\\n#8 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/lib\\\\\\/base.php(927): OC\\\\\\\\Route\\\\\\\\Router->match()\\\\n#9 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/index.php(54): OC::handleRequest()\\\\n#10 {main}\\",\\"File\\":\\"\\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/apps\\\\\\/openidconnect\\\\\\/vendor\\\\\\/jumbojett\\\\\\/openid-connect-php\\\\\\/src\\\\\\/OpenIDConnectClient.php\\",\\"Line\\":1245}"}
@wkloucek wkloucek added Platform:oC10 Type:Bug Something isn't working Topic:Docker Issues related to our official Docker containers Category:Defect Existing functionality is not working as expected Platform:Web labels Aug 13, 2021
@wkloucek
Copy link
Contributor Author

wkloucek commented Sep 1, 2021

Doesn't happen with oC Web 4.1.0

@wkloucek wkloucek closed this as completed Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category:Defect Existing functionality is not working as expected Platform:oC10 Platform:Web Topic:Docker Issues related to our official Docker containers Type:Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant