-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Bugfix change shares database USER_ID type to String #12753
Conversation
Signed-off-by: Jonas Mayer <[email protected]>
Signed-off-by: Jonas Mayer <[email protected]>
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/12753.apk |
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.
Works and fixes the issue.
blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed. |
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.
Tested on Android 14 emulator. Didn't crash.
/backport to stable-3.28 |
The database type for the owners userid for shares was int instead of String (which was assumed everywhere, like "getString" etc.). It seemd to have worked well for short userids but for large userids the data will not be correctly saved. Ids like "12320078498127907419284723" would be converted to "1.23200e24" which leads to following misbehavior for example:
Screen_recording_20240327_220052.webm
Now database type is String. To test this fix / to experience the issue, you need to be logged in as a user with a really long userid (=username / loginname) and share a file or folder with another person on the instance.
Screen_recording_20240327_220139.webm