nextcloud / files_lock

GNU Affero General Public License v3.0
24 stars 8 forks source link

Undefined array key 2 at files_lock/lib/Service/FileService.php#126 #92

Closed solracsf closed 1 month ago

solracsf commented 2 years ago

Nextcloud v23.0.9 / files_lock v20.1.0

{
  "reqId": "XEQ59edbHm6krSYl5nPU",
  "level": 3,
  "app": "PHP",
  "method": "PROPFIND",
  "url": "/remote.php/dav/files/jmvd/",
  "message": "Undefined array key 2 at /apps/files_lock/lib/Service/FileService.php#126",
  "userAgent": "Cyberduck/8.4.3.38269 (Mac OS X/12.5.1) (aarch64)",
  "version": "23.0.9.1",
  "exception": {
    "Exception": "Error",
    "Message": "Undefined array key 2 at /apps/files_lock/lib/Service/FileService.php#126",
    "Code": 0,
    "Trace": [
      {
        "file": "/apps/files_lock/lib/Service/FileService.php",
        "line": 126,
        "function": "onError",
        "class": "OC\\Log\\ErrorHandler",
        "type": "::",
        "args": [
          2,
          "Undefined array key 2",
          "/apps/files_lock/lib/Service/FileService.php",
          126
        ]
      },
      {
        "file": "/apps/files_lock/lib/Plugins/FilesLockPlugin.php",
        "line": 89,
        "function": "getFileFromAbsoluteUri",
        "class": "OCA\\FilesLock\\Service\\FileService",
        "type": "->",
        "args": [
          "files/jmvd"
        ]
      },
      {
        "file": "/3rdparty/sabre/dav/lib/DAV/Locks/Plugin.php",
        "line": 141,
        "function": "getLocks",
        "class": "OCA\\FilesLock\\Plugins\\FilesLockPlugin",
        "type": "->",
        "args": [
          "files/jmvd",
          false
        ]
      },
      {
        "file": "/3rdparty/sabre/dav/lib/DAV/Locks/Plugin.php",
        "line": 91,
        "function": "getLocks",
        "class": "Sabre\\DAV\\Locks\\Plugin",
        "type": "->",
        "args": [
          "files/jmvd"
        ]
      },
      {
        "file": "/3rdparty/sabre/dav/lib/DAV/PropFind.php",
        "line": 95,
        "function": "Sabre\\DAV\\Locks\\{closure}",
        "class": "Sabre\\DAV\\Locks\\Plugin",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/3rdparty/sabre/dav/lib/DAV/Locks/Plugin.php",
        "line": 93,
        "function": "handle",
        "class": "Sabre\\DAV\\PropFind",
        "type": "->",
        "args": [
          "{DAV:}lockdiscovery",
          {
            "__class__": "Closure"
          }
        ]
      },
      {
        "file": "/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "propFind",
        "class": "Sabre\\DAV\\Locks\\Plugin",
        "type": "->",
        "args": [
          {
            "__class__": "Sabre\\DAV\\PropFind"
          },
          {
            "__class__": "OCA\\DAV\\Files\\FilesHome"
          }
        ]
      },
      {
        "file": "/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1052,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          "propFind",
          [
            {
              "__class__": "Sabre\\DAV\\PropFind"
            },
            {
              "__class__": "OCA\\DAV\\Files\\FilesHome"
            }
          ]
        ]
      },
      {
        "file": "/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 984,
        "function": "getPropertiesByNode",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          {
            "__class__": "Sabre\\DAV\\PropFind"
          },
          {
            "__class__": "OCA\\DAV\\Files\\FilesHome"
          }
        ]
      },
      {
        "file": "/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1661,
        "function": "getPropertiesIteratorForPath",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          "files/jmvd",
          [
            "{DAV:}creationdate",
            "{DAV:}displayname",
            "{DAV:}getcontentlength",
            "{DAV:}getcontenttype",
            "{DAV:}getetag",
            "And 5 more entries, set log level to debug to see all entries"
          ],
          0
        ]
      },
      {
        "file": "/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1646,
        "function": "writeMultiStatus",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          {
            "__class__": "Sabre\\Xml\\Writer",
            "elementMap": [],
            "contextUri": "/remote.php/dav/",
            "namespaceMap": {
              "DAV:": "d",
              "http://sabredav.org/ns": "s",
              "http://owncloud.org/ns": "oc",
              "http://nextcloud.org/ns": "nc"
            },
            "classMap": []
          },
          {
            "__class__": "Generator"
          },
          false
        ]
      },
      {
        "file": "/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
        "line": 346,
        "function": "generateMultiStatus",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          {
            "__class__": "Generator"
          },
          false
        ]
      },
      {
        "file": "/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "httpPropFind",
        "class": "Sabre\\DAV\\CorePlugin",
        "type": "->",
        "args": [
          {
            "__class__": "Sabre\\HTTP\\Request"
          },
          {
            "__class__": "Sabre\\HTTP\\Response"
          }
        ]
      },
      {
        "file": "/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 472,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          "method:PROPFIND",
          [
            {
              "__class__": "Sabre\\HTTP\\Request"
            },
            {
              "__class__": "Sabre\\HTTP\\Response"
            }
          ]
        ]
      },
      {
        "file": "/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 253,
        "function": "invokeMethod",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          {
            "__class__": "Sabre\\HTTP\\Request"
          },
          {
            "__class__": "Sabre\\HTTP\\Response"
          }
        ]
      },
      {
        "file": "/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 321,
        "function": "start",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": []
      },
      {
        "file": "/apps/dav/lib/Server.php",
        "line": 339,
        "function": "exec",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": []
      },
      {
        "file": "/apps/dav/appinfo/v2/remote.php",
        "line": 35,
        "function": "exec",
        "class": "OCA\\DAV\\Server",
        "type": "->",
        "args": []
      },
      {
        "file": "/remote.php",
        "line": 166,
        "args": [
          "/apps/dav/appinfo/v2/remote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/lib/private/Log/ErrorHandler.php",
    "Line": 92,
    "CustomMessage": "--"
  },
  "id": "631f1da679671"
}
susnux commented 1 month ago

The app was refactored a lot since Nextcloud 23, please reopen if you still encounter this with Nextcloud 28 or later.