user_saml icon indicating copy to clipboard operation
user_saml copied to clipboard

Can't see configuration page, all is in blank

Open javiyepez opened this issue 3 years ago • 4 comments

We are having a problem with the SSO & SAML authentication app. It does not load any type of configuration panel when you click it from the "Settings" menu

Steps to reproduce

  1. Install SSO & SAML authentication app
  2. Go Settings
  3. Click in the app

Expected behaviour

You should see the app configuration to be able to work with it

Actual behaviour

Any type of configuration appears, only the title (name of the app) is seen at the top and everything else is blank.

SSO & SAML authentication app version 5.0.2 and 5.0.3 (we try both), download from the app store

Web server: nginx/1.22.0

PHP version: PHP 8.0.23 (cli) (built: Sep 1 2022 22:32:41) ( NTS )

Nextcloud version: 24.0.5

NextCloud Logs: Every time we access the app, we get the following 3 errors in the log:

Error PHP Error: Trying to access array offset on value of type null at /var/www/html/custom_apps/user_saml/templates/admin.php#202

Error PHP Error: Undefined array key 0 at /var/www/html/custom_apps/user_saml/templates/admin.php#202

Error PHP Error: foreach() argument must be of type array|object, null given at /var/www/html/custom_apps/user_saml/lib/SAMLSettings.php#116

Captura de pantalla 2022-09-16 a las 12 30 44 Captura de pantalla 2022-09-16 a las 12 30 05

javiyepez avatar Sep 16 '22 10:09 javiyepez

I saw today also an Exception that's quite similar and probably the same to the third error reported here:

{
  "reqId": "KxxbkiLuhjVN9Wdig1XR",
  "level": 3,
  "time": "2022-12-02T21:13:49+00:00",
  "remoteAddr": "",
  "user": "--",
  "app": "PHP",
  "method": "",
  "url": "--",
  "message": "foreach() argument must be of type array|object, null given at /var/www/html/apps/user_saml/lib/SAMLSettings.php#118",
  "userAgent": "--",
  "version": "25.0.2.1",
  "exception": {
    "Exception": "Error",
    "Message": "foreach() argument must be of type array|object, null given at /var/www/html/apps/user_saml/lib/SAMLSettings.php#118",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/apps/user_saml/lib/SAMLSettings.php",
        "line": 118,
        "function": "onError",
        "class": "OC\\Log\\ErrorHandler",
        "type": "::"
      },
      {
        "file": "/var/www/html/apps/user_saml/appinfo/app.php",
        "line": 158,
        "function": "getListOfIdps",
        "class": "OCA\\User_SAML\\SAMLSettings",
        "type": "->"
      },
      {
        "file": "/var/www/html/lib/private/legacy/OC_App.php",
        "line": 306,
        "args": [
          "/var/www/html/apps/user_saml/appinfo/app.php"
        ],
        "function": "require_once"
      },
      {
        "file": "/var/www/html/lib/private/legacy/OC_App.php",
        "line": 187,
        "function": "requireAppFile",
        "class": "OC_App",
        "type": "::"
      },
      {
        "file": "/var/www/html/lib/private/legacy/OC_App.php",
        "line": 141,
        "function": "loadApp",
        "class": "OC_App",
        "type": "::"
      },
      {
        "file": "/var/www/html/lib/private/Console/Application.php",
        "line": 120,
        "function": "loadApps",
        "class": "OC_App",
        "type": "::"
      },
      {
        "file": "/var/www/html/console.php",
        "line": 99,
        "function": "loadCommands",
        "class": "OC\\Console\\Application",
        "type": "->"
      },
      {
        "file": "/var/www/html/occ",
        "line": 11,
        "args": [
          "/var/www/html/console.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/html/lib/private/Log/ErrorHandler.php",
    "Line": 92,
    "CustomMessage": "--"
  }
}

blizzz avatar Dec 02 '22 22:12 blizzz

Same here with NC 24.0.5 & user_saml 5.1.0

bmalynovytch avatar Dec 13 '22 09:12 bmalynovytch

Although module was configured using CLI (php occ config:app:set user_saml ...), php occ saml:config:get gives empty response. I think there's a regression in config management.

bmalynovytch avatar Dec 13 '22 09:12 bmalynovytch

Applying configuration through php saml:config:create and php saml:config:set did the trick but I still believe there's a regression in config management (or at least a BIG FAT WARNING missing to indicate the way the module handles configuration has changed recently)

bmalynovytch avatar Dec 13 '22 10:12 bmalynovytch