- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 4.6k
Add uid to delete temp token query #17194
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
Add uid to delete temp token query #17194
Conversation
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
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.
Oh. Yeah. 🙈
| 
 OTOH where do we even use temporary tokens except for the login flow? Browser sessions get a remembered token by default. | 
| /backport to stable17 | 
| /backport to stable16 | 
| /backport to stable15 | 
| backport to stable17 in #17196 | 
| backport to stable16 in #17197 | 
| backport to stable15 in #17198 | 
| 
 server/lib/private/User/Session.php Line 682 in 0a874c5 
 I'm not sure. I guess from the above code that all session tokens are temporary. The  | 
| 
 @ChristophWurst  I am not sure, what you mean by that?! If temporary tokens only are used for the login flow, why are all the other users logged out?? Are there more bugs in the session handling? Test it for yourself on a fresh install without this patch! | 
| @kesselb This problem is not easy to spot on small instances (how many password changes do occur per day?). On our big instance in a school environment the problem peaked with all the new user accounts and password changes with the beginning of a new school year... Our Nextcloud was almost unusable - but it took us weeks and months to isolate the cause. | 
| I think there's been a misunderstanding 😟 I'm sorry if you had the impression that someone criticized your report. @rullzer, @ChristophWurst and I agree that this is broken right now and needs to be fixed. That's the reason why this pull request is already merged and backported to nextcloud 17, 16 and 15. We had two reports for this kind of issue in the last 48 hours. If something like this happens its good to check if there could be another reason (like another code change). 
 Thanks for the additional context. I guess that's an issue for many instances but also hard to reproduce (drawing the line between someone changes his password and some people are logged out). That could explain why there are no more reports. 
 Probably like in every software. There are tests to ensure that code changes does not break existing features but this cannot prevent new bugs. | 
| @kesselb No, no there is no misunderstanding - I did not feel criticized at all. | 
| Yep, I confused the temporary property with the remembered one. It's indeed a problem for all browser sessions. Fixes will be releases soon. In the meantime you can apply https://patch-diff.githubusercontent.com/raw/nextcloud/server/pull/17194.patch manually | 
| Yes - we applied the patch first thing yesterday morning 👍 - Thanks! | 
Fix #17166
Fix #17035
After a password change all temporary tokens (for every user) except the current token are deleted. Not sure why this popups now because the code is there for a long time 😕