rcdevs / nextcloud_openotp_auth

OpenOTP plugin enables Multi-Factor Authentication to login to Nextcloud Admin/User Pane
GNU Affero General Public License v3.0
6 stars 1 forks source link

Unsupported operand types: string * int #6

Closed solracsf closed 2 years ago

solracsf commented 2 years ago
{
  "reqId": "Zax8nCRJvG9xxDCkwVEv",
  "level": 3,
  "app": "index",
  "method": "POST",
  "url": "/apps/openotp_sign/check_server_url",
  "message": "Unsupported operand types: string * int",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36 Edg/97.0.1072.76",
  "version": "22.2.4.3",
  "exception": {
    "Exception": "TypeError",
    "Message": "Unsupported operand types: string * int",
    "Code": 0,
    "Trace": [
      {
        "function": "__construct",
        "class": "OCA\\OpenOTPSign\\Service\\SignService",
        "type": "->",
        "args": [
          {
            "__class__": "OC\\Files\\Node\\LazyRoot"
          },
          {
            "__class__": "OC\\AllConfig"
          },
          {
            "__class__": "OC\\User\\Manager"
          },
          {
            "__class__": "OC\\Accounts\\AccountManager"
          },
          {
            "__class__": "OCA\\OpenOTPSign\\Db\\SignSessionMapper"
          }
        ]
      },
      {
        "file": "/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 106,
        "function": "newInstanceArgs",
        "class": "ReflectionClass",
        "type": "->",
        "args": [
          [
            {
              "__class__": "OC\\Files\\Node\\LazyRoot"
            },
            {
              "__class__": "OC\\AllConfig"
            },
            {
              "__class__": "OC\\User\\Manager"
            },
            {
              "__class__": "OC\\Accounts\\AccountManager"
            },
            {
              "__class__": "OCA\\OpenOTPSign\\Db\\SignSessionMapper"
            }
          ]
        ]
      },
      {
        "file": "/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 114,
        "function": "buildClass",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->",
        "args": [
          {
            "name": "OCA\\OpenOTPSign\\Service\\SignService",
            "__class__": "ReflectionClass"
          }
        ]
      },
      {
        "file": "/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 131,
        "function": "resolve",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->",
        "args": [
          "OCA\\OpenOTPSign\\Service\\SignService"
        ]
      },
      {
        "file": "/lib/private/AppFramework/DependencyInjection/DIContainer.php",
        "line": 460,
        "function": "query",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->",
        "args": [
          "OCA\\OpenOTPSign\\Service\\SignService"
        ]
      },
      {
        "file": "/lib/private/AppFramework/DependencyInjection/DIContainer.php",
        "line": 432,
        "function": "queryNoFallback",
        "class": "OC\\AppFramework\\DependencyInjection\\DIContainer",
        "type": "->",
        "args": [
          "OCA\\OpenOTPSign\\Service\\SignService"
        ]
      },
      {
        "file": "/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 87,
        "function": "query",
        "class": "OC\\AppFramework\\DependencyInjection\\DIContainer",
        "type": "->",
        "args": [
          "OCA\\OpenOTPSign\\Service\\SignService",
          true
        ]
      },
      {
        "function": "OC\\AppFramework\\Utility\\{closure}",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 106,
        "function": "array_map",
        "args": [
          {
            "__class__": "Closure"
          },
          [
            {
              "name": "AppName",
              "__class__": "ReflectionParameter"
            },
            {
              "name": "request",
              "__class__": "ReflectionParameter"
            },
            {
              "name": "config",
              "__class__": "ReflectionParameter"
            },
            "*** sensitive parameter replaced ***"
          ]
        ]
      },
      {
        "file": "/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 114,
        "function": "buildClass",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->",
        "args": [
          {
            "name": "OCA\\OpenOTPSign\\Controller\\SettingsController",
            "__class__": "ReflectionClass"
          }
        ]
      },
      {
        "file": "/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 131,
        "function": "resolve",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->",
        "args": [
          "OCA\\OpenOTPSign\\Controller\\SettingsController"
        ]
      },
      {
        "file": "/lib/private/AppFramework/DependencyInjection/DIContainer.php",
        "line": 460,
        "function": "query",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->",
        "args": [
          "OCA\\OpenOTPSign\\Controller\\SettingsController"
        ]
      },
      {
        "file": "/lib/private/AppFramework/DependencyInjection/DIContainer.php",
        "line": 432,
        "function": "queryNoFallback",
        "class": "OC\\AppFramework\\DependencyInjection\\DIContainer",
        "type": "->",
        "args": [
          "OCA\\OpenOTPSign\\Controller\\SettingsController"
        ]
      },
      {
        "file": "/lib/private/AppFramework/App.php",
        "line": 143,
        "function": "query",
        "class": "OC\\AppFramework\\DependencyInjection\\DIContainer",
        "type": "->",
        "args": [
          "OCA\\OpenOTPSign\\Controller\\SettingsController"
        ]
      },
      {
        "file": "/lib/private/Route/Router.php",
        "line": 302,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::",
        "args": [
          "OCA\\OpenOTPSign\\Controller\\SettingsController",
          "checkServerUrl",
          {
            "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
          },
          {
            "_route": "openotp_sign.settings.checkServerUrl"
          }
        ]
      },
      {
        "file": "/lib/base.php",
        "line": 1006,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/apps/openotp_sign/check_server_url"
        ]
      },
      {
        "file": "index.php",
        "line": 36,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "openotp_sign/lib/Service/SignService.php",
    "Line": 62,
    "CustomMessage": "--"
  }
}
rcdevs commented 2 years ago

Hello,

Thanks for the bug report. The issue is not about our MFA application but about our e-signature application. We released OpenOTP Sign v1.1.2 that fixes the issue

solracsf commented 2 years ago

Thanks, is there a repo for it?

solracsf commented 2 years ago

Nevermind, I found it: https://github.com/rcdevs/nextcloud_openotp_sign