Repository navigation
fix(session): close null user - #9385
Conversation
01f5d73 to
fb439fc
Compare
|
Thanks a lot for your PR. I have to admit I don't quite understand the situation yet. I'm trying to figure out, why text would respond with a 423. I assume you tested this and it fixes the issue you were seeing, right? |
|
My first assumption would be that the controller would respond with a 403 (forbidden) - see https://github.com/nextcloud/text/blob/main/lib/Middleware/SessionMiddleware.php#L176 . Locked 423 sounds much more like caused by Ahh... now I get it. The original problem was the session not being closed so the file was still locked. Solving this by clicking the close button triggered a request that failed (403 most likely) which meant the lock continued to exist and 423 response remained. |
Signed-off-by: Max <max@nextcloud.com>
fb439fc to
599abe6
Compare
|
/backport to stable35 |
|
@alperozturk96 we reworked the session handling in 35 quite a bit. Are you also seeing this problem in previous versions? |
Not sure about previous versions but it still should be the case because,
Why this should only fail here since old versions also using same approach, no? |
📝 Summary
Pressing back from Android Files client calls
closefunction however user was null this was causing 423 LOCKED on text file thus Notes app fail to sync. As fallback we can get user viadocumentId, sessionId, sessionTokenAndroid Files PR: nextcloud/android#17822
🏁 Checklist
npm run lint/npm run stylelint/composer run cs:check)🤖 AI (if applicable)