Closed nickvergessen closed 2 years ago
works fine for me on 24.0.2 RC1 with a newly created link
@szaimen pointed out to me that it might be related to the new locking app
I've tried locally now with stable24 and the "files_lock" app enabled and it fails also.
@juliushaertl @eneiluj can you have a look ?
It is caused by the files_lock
app trying to get the current user in a public page context.
This bug affects any action that creates a file in a publicly shared directory, not only drop but upload and creation with the + button.
@ArtificialOwl Any idea why this happens? How are locks supposed to be checked in a public context? Are they even supposed to be checked when creating a file for the created file itself?
The stack trace shows that the dav server asks its locking plugin to get the locks on the uploaded file. This leads to a call to files_lock/lib/Service/FileService.php::getFileFromUri($uri)
which assumes the user is logged in.
I checked and the $uri
is just the file name in this case. Could there be something wrong there? The only alternative in this service is getFileFromAbsoluteUri()
which gets a user ID by parsing the uri.
This looks good: https://github.com/nextcloud/files_lock/pull/75
fix was merged, closing
I guess only needs a release then 👍
Released as 24.0.1
c.nc.c today (so 24.0.1)