Skip to content

unlocking of files with own lock in groupfolders fails in web interface #245

Closed as duplicate of#168
@bbx-github

Description

@bbx-github

I think this may be related to office-files and usage of desktop-client (3.12.0): Often a file gets locked and unlocking via web interface is not possible:
nextcloud server: 28.0.3.2
files_lock: 28.0.2
(annoying work around: get file id and unlock via php occ files:lock -u <id>)

{
  "reqId": "XXXXXXXX",
  "level": 1,
  "time": "2024-03-06T19:33:45+00:00",
  "remoteAddr": "XXXXXXXX",
  "user": "XXXXXXXX",
  "app": "files_lock",
  "method": "DELETE",
  "url": "/ocs/v2.php/apps/files_lock/lock/677572",
  "message": "[notice] unlocking file -- {\"fileLock\":{}}",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0",
  "version": "28.0.3.2",
  "data": {
    "app": "files_lock"
  }
}
{
  "reqId": "XXXXXXXX",
  "level": 3,
  "time": "2024-03-06TXXXXXXXX",
  "remoteAddr": "XXXXXXXX",
  "user": "XXXXXXXX",
  "app": "no app in context",
  "method": "DELETE",
  "url": "/ocs/v2.php/apps/files_lock/lock/XXXXXXXX",
  "message": "Exception thrown: Exception",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0",
  "version": "28.0.3.2",
  "exception": {
    "Exception": "Exception",
    "Message": "Call to a member function getOwner() on array in file 'XXXXXXXX/apps/files_lock/lib/Controller/LockController.php' line 150",
    "Code": 0,
    "Trace": [
      {
        "file": "XXXXXXXX/lib/private/AppFramework/App.php",
        "line": 184,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "XXXXXXXX/lib/private/Route/Router.php",
        "line": 315,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "XXXXXXXX/ocs/v1.php",
        "line": 65,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "XXXXXXXX/ocs/v2.php",
        "line": 23,
        "args": [
          "XXXXXXXX/ocs/v1.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "XXXXXXXX/lib/private/AppFramework/Http/Dispatcher.php",
    "Line": 169,
    "Previous": {
      "Exception": "Error",
      "Message": "Call to a member function getOwner() on array",
      "Code": 0,
      "Trace": [
        {
          "file": "XXXXXXXX/apps/files_lock/lib/Controller/LockController.php",
          "line": 76,
          "function": "buildOCSResponse",
          "class": "OCA\\FilesLock\\Controller\\LockController",
          "type": "->"
        },
        {
          "file": "XXXXXXXX/lib/public/AppFramework/Controller.php",
          "line": 157,
          "function": "OCA\\FilesLock\\Controller\\{closure}",
          "class": "OCA\\FilesLock\\Controller\\LockController",
          "type": "->",
          "args": [
            "*** sensitive parameters replaced ***"
          ]
        },
        {
          "file": "XXXXXXXX/lib/public/AppFramework/OCSController.php",
          "line": 96,
          "function": "buildResponse",
          "class": "OCP\\AppFramework\\Controller",
          "type": "->"
        },
        {
          "file": "XXXXXXXX/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 245,
          "function": "buildResponse",
          "class": "OCP\\AppFramework\\OCSController",
          "type": "->"
        },
        {
          "file": "XXXXXXXX/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 137,
          "function": "executeController",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "XXXXXXXX/lib/private/AppFramework/App.php",
          "line": 184,
          "function": "dispatch",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "XXXXXXXX/lib/private/Route/Router.php",
          "line": 315,
          "function": "main",
          "class": "OC\\AppFramework\\App",
          "type": "::"
        },
        {
          "file": "XXXXXXXX/ocs/v1.php",
          "line": 65,
          "function": "match",
          "class": "OC\\Route\\Router",
          "type": "->"
        },
        {
          "file": "XXXXXXXX/ocs/v2.php",
          "line": 23,
          "args": [
            "XXXXXXXX/ocs/v1.php"
          ],
          "function": "require_once"
        }
      ],
      "File": "XXXXXXXX/apps/files_lock/lib/Controller/LockController.php",
      "Line": 150
    },
    "CustomMessage": "Exception thrown: Exception"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions