nextcloud / files_lock

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

Trashbin not working if app is enabled #17

Closed juliusknorr closed 4 years ago

juliusknorr commented 4 years ago

Steps to reproduce:

{
  "reqId": "ZeKcW5vljRHXqo2JlTVx",
  "level": 3,
  "time": "2019-12-18T16:49:56+00:00",
  "remoteAddr": "192.168.21.7",
  "user": "admin",
  "app": "remote",
  "method": "PROPFIND",
  "url": "/remote.php/dav/trashbin/admin/trash",
  "message": {
    "Exception": "Error",
    "Message": "Call to undefined method OCA\\Files_Trashbin\\Sabre\\TrashRoot::getId()",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/apps-extra/files_lock/lib/Service/LockService.php",
        "line": 126,
        "function": "getLockForNode",
        "class": "OCA\\FilesLock\\Service\\LockService",
        "type": "->",
        "args": [
          {
            "__class__": "OCA\\Files_Trashbin\\Sabre\\TrashRoot"
          }
        ]
      },
      {
        "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/PropFind.php",
        "line": 98,
        "function": "OCA\\FilesLock\\Service\\{closure}",
        "class": "OCA\\FilesLock\\Service\\LockService",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/html/apps-extra/files_lock/lib/Service/LockService.php",
        "line": 133,
        "function": "handle",
        "class": "Sabre\\DAV\\PropFind",
        "type": "->",
        "args": [
          "{http://nextcloud.org/ns}lock",
          {
            "__class__": "Closure"
          }
        ]
      },
      {
        "function": "propFind",
        "class": "OCA\\FilesLock\\Service\\LockService",
        "type": "->",
        "args": [
          {
            "__class__": "Sabre\\DAV\\PropFind"
          },
          {
            "__class__": "OCA\\Files_Trashbin\\Sabre\\TrashRoot"
          }
        ]
      },
      {
        "file": "/var/www/html/3rdparty/sabre/event/lib/EventEmitterTrait.php",
        "line": 105,
        "function": "call_user_func_array",
        "args": [
          [
            {
              "__class__": "OCA\\FilesLock\\Service\\LockService"
            },
            "propFind"
          ],
          [
            {
              "__class__": "Sabre\\DAV\\PropFind"
            },
            {
              "__class__": "OCA\\Files_Trashbin\\Sabre\\TrashRoot"
            }
          ]
        ]
      },
      {
        "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1059,
        "function": "emit",
        "class": "Sabre\\Event\\EventEmitter",
        "type": "->",
        "args": [
          "propFind",
          [
            {
              "__class__": "Sabre\\DAV\\PropFind"
            },
            {
              "__class__": "OCA\\Files_Trashbin\\Sabre\\TrashRoot"
            }
          ]
        ]
      },
      {
        "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 981,
        "function": "getPropertiesByNode",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          {
            "__class__": "Sabre\\DAV\\PropFind"
          },
          {
            "__class__": "OCA\\Files_Trashbin\\Sabre\\TrashRoot"
          }
        ]
      },
      {
        "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1666,
        "function": "getPropertiesIteratorForPath",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          "trashbin/admin/trash",
          [
            "{http://nextcloud.org/ns}trashbin-filename",
            "{http://nextcloud.org/ns}trashbin-deletion-time",
            "{http://nextcloud.org/ns}trashbin-original-location",
            "{http://nextcloud.org/ns}trashbin-title",
            "{DAV:}getlastmodified",
            "{DAV:}getetag",
            "{DAV:}getcontenttype",
            "{DAV:}resourcetype",
            "{http://owncloud.org/ns}fileid",
            "{http://owncloud.org/ns}permissions",
            "{http://owncloud.org/ns}size",
            "{DAV:}getcontentlength",
            "{http://nextcloud.org/ns}has-preview",
            "{http://nextcloud.org/ns}mount-type",
            "{http://nextcloud.org/ns}is-encrypted",
            "{http://open-collaboration-services.org/ns}share-permissions",
            "{http://nextcloud.org/ns}lock",
            "{http://nextcloud.org/ns}lock-owner",
            "{http://nextcloud.org/ns}lock-owner-displayname",
            "{http://nextcloud.org/ns}lock-time"
          ],
          1
        ]
      },
      {
        "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
        "line": 355,
        "function": "generateMultiStatus",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          {
            "__class__": "Generator"
          },
          false
        ]
      },
      {
        "function": "httpPropFind",
        "class": "Sabre\\DAV\\CorePlugin",
        "type": "->",
        "args": [
          {
            "absoluteUrl": "http://nextcloud.local.dev.bitgrid.net/remote.php/dav/trashbin/admin/trash",
            "__class__": "Sabre\\HTTP\\Request"
          },
          {
            "__class__": "Sabre\\HTTP\\Response"
          }
        ]
      },
      {
        "file": "/var/www/html/3rdparty/sabre/event/lib/EventEmitterTrait.php",
        "line": 105,
        "function": "call_user_func_array",
        "args": [
          [
            {
              "__class__": "Sabre\\DAV\\CorePlugin"
            },
            "httpPropFind"
          ],
          [
            {
              "absoluteUrl": "http://nextcloud.local.dev.bitgrid.net/remote.php/dav/trashbin/admin/trash",
              "__class__": "Sabre\\HTTP\\Request"
            },
            {
              "__class__": "Sabre\\HTTP\\Response"
            }
          ]
        ]
      },
      {
        "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 479,
        "function": "emit",
        "class": "Sabre\\Event\\EventEmitter",
        "type": "->",
        "args": [
          "method:PROPFIND",
          [
            {
              "absoluteUrl": "http://nextcloud.local.dev.bitgrid.net/remote.php/dav/trashbin/admin/trash",
              "__class__": "Sabre\\HTTP\\Request"
            },
            {
              "__class__": "Sabre\\HTTP\\Response"
            }
          ]
        ]
      },
      {
        "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 254,
        "function": "invokeMethod",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          {
            "absoluteUrl": "http://nextcloud.local.dev.bitgrid.net/remote.php/dav/trashbin/admin/trash",
            "__class__": "Sabre\\HTTP\\Request"
          },
          {
            "__class__": "Sabre\\HTTP\\Response"
          }
        ]
      },
      {
        "file": "/var/www/html/apps/dav/lib/Server.php",
        "line": 319,
        "function": "exec",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/apps/dav/appinfo/v2/remote.php",
        "line": 35,
        "function": "exec",
        "class": "OCA\\DAV\\Server",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/remote.php",
        "line": 165,
        "args": [
          "/var/www/html/apps/dav/appinfo/v2/remote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/html/apps-extra/files_lock/lib/Service/LockService.php",
    "Line": 105,
    "CustomMessage": "--"
  },
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36",
  "version": "18.0.0.4"
}

@daita