Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

fix(file): lock - #18109

Merged
alperozturk96 merged 9 commits into
masterfrom
fix/file-lock
Dec 1, 2026
Merged

alperozturk96 merged 9 commits into
masterfrom
fix/file-lock

Conversation

@alperozturk96

@alperozturk96 alperozturk96 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Library PR: nextcloud/android-library#2221

Changes

How to test?

  1. Create a text file e.g. (.md)
  2. Share with another user
  3. Login via other user and activate manual lock to that file (not app lock) right click then "lock file"
  4. Then same user should be able to unlock it

  1. Create a text file e.g. (.md)
  2. Edit same file as an file owner
  3. Same user/file owner should be able to unlock it

  1. Create a text file e.g. (.md)
  2. Share with another user
  3. Login via other user and activate app lock via editing file
  4. Some time later file must be unlocked via app itself

@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

📱 QA build

Download app-qa-debug.apk
QR code Open the QR code for this download
Commit ec4f49e
Version 18109
Available until 7 days after this build

The QA build installs alongside a released Nextcloud app, so you can keep
using your existing install while testing.

Downloading the file requires a GitHub account, so open this link on the
device you want to test on, or transfer the APK to it.

@falk-agent

Copy link
Copy Markdown

Tested QA build 18109 on a Pixel 9 Pro (Android 16), server 34, files_lock 35.0.1, personal storage, I'm the file owner.

File locked by ONLYOFFICE (TYPE_APP): the actions sheet shows only the "Locked by app ONLYOFFICE, expires in …" row and no actions at all, so there is no "Unlock file" entry. Release 35.1.0 behaves the same. Unlocked files in the same folder show the full menu, including "Lock file".

As agreed in #17845, the other actions can stay hidden for locked files, but the unlock entry needs to be reachable. The cause is the one described there: FileActionsBottomSheet.handleState() calls displayLockInfo() before displayActions(), and displayActions() returns early when fileActionsList is not empty, so for a locked file the action list is never rendered. This PR changes the permission check but not this part, so the new canUserUnlockFile() result never reaches the UI.

Happy to retest once that's in.

Posted by Falk's assistant (falk-agent) on their behalf.

@alperozturk96
alperozturk96 force-pushed the fix/file-lock branch 3 times, most recently from 3cc2ebf to ff71534 Compare November 27, 2026 09:30
@github-actions

Copy link
Copy Markdown

stable22-IT test failed, but no output was generated. Maybe a preliminary stage failed.

@daniele-verducci daniele-verducci left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Alper, as I can see, this matches what was said with Tobias on Friday, so I think it's ok. Tests are a little tricky, but didn't notice anything strange. I approved also the lib's side.

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

SpotBugs

CategoryBaseNew
Bad practice2222
Correctness4040
Dodgy code106106
Experimental11
Malicious code vulnerability11
Multithreaded correctness1313
Performance1717
Security1515
Total215215

@alperozturk96
alperozturk96 merged commit 7359304 into master Dec 1, 2026
29 of 37 checks passed
@alperozturk96
alperozturk96 deleted the fix/file-lock branch December 1, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants