-
Notifications
You must be signed in to change notification settings - Fork 9
ignore exception on empty session #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PVince81
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 if it works as a quick fix until we find a better solution
|
strange that litmus fails: was that there before ? |
|
@ArtificialOwl can you investigate the failure or check if related at all with your change ? |
julien-nc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, works fine.
|
from what I see on master CI was green recently: https://github.com/nextcloud/files_lock/actions/runs/2532691131 so it's likely that this PR breaks something but it's not obvious |
|
@ArtificialOwl please investigate the failure or find help |
Signed-off-by: Maxence Lange <[email protected]>
936a3b2 to
69d8fc5
Compare
Were not able myself to locally reproduce the issue with litmus, |
So, in case of no user session, this will throw an
Exceptioninstead ofThrowable, which is then ignored bygetLocks()I am not a huge fan of ignoring locks, but it seems to happens only when upload a new file. Also, this works because we only allow
lockon Files and not on Folder (parent).It seems to not affect the good functioning of the app in the case of creating a new file on a public folder.
This is the logs when someone tries to upload a new file on a public folder over a locked existing file (same name, locked by internal user)