-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Handle error 423 (locked file) #4285
Conversation
@JuancaG05 hey could you give it a quick look :-) |
b1777aa
to
389796c
Compare
I'll take a look ASAP. In this case @Aitorbp will take a look as well so that he gets familiar with how errors flow from network responses to UI 🙂 |
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.
The development seems correct to me. Follow the logic of the other cases. I only saw a small formatting correction. 👍
owncloudDomain/src/main/java/com/owncloud/android/domain/exceptions/ResourceLockedException.kt
Show resolved
Hide resolved
389796c
to
838eeec
Compare
I updated with requested changes 👍 |
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.
Approved from my side! Good job @parneet-guraya! 🚀
Testing the PR i notice a side-effect (not regressive):
snackbar is not displayed Locking a file can be easily done in oC10 servers. Log in an admin account > Settings (top right menu) > General (left menu, admin side) > tick Once enabled, every file (not folder) in the list will have an option This could be fixed here or moved to another PR. All the places in which i tested and the message appears are correct. Tested with different kind of files and previews (pictures, txt, video), performing operations: Move, Remove, Move, Rename (operations not allowed for a locked file). All of them fine. |
@jesmrec Will check and push the hotfix here if it's simple enough otherwise we can solve it by raising another issue |
Hi @jesmrec, I have been using |
|
@jesmrec Hi, the case you said, I was able to reproduce at first attempt. After investigating, the error was getting thrown correctly but at UI level the throwable turns out to be null (couldn't get the chance to see further) that's why it was showing the generic unknown error message. But, now I can't reproduce it anymore. Let me know if you still see this otherwise we may push this one and later on create separate issue and pickup from there if it ever starts coming again. Record_2024-01-25-16-41-02.mp4 |
838eeec
to
6f845e3
Compare
i don't see the Let's move this forward and i will create another issue since it seems that reproducing is not so straightforward. |
Need a rebase here if you don't mind @parneet-guraya 😄. BTW, to automatize changelog, we are using a tool called Calens since some time ago. What we need to do is adding in each PR a plain text file in a certain folder with certain features for it to be recognised. Do you feel like adding them from now on? You can find more info here, and one example here (but you can check all of our PR to see more examples 😉). Just if you want, otherwise we can take care of it, thanks! 👍 |
Sure, I can do it :-) |
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
9efee5f
to
a65868d
Compare
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
a65868d
to
8f2067f
Compare
I did add the changelog file in unreleased dir as the doc says. Do I also need to add into Changelog.md file? |
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.
Thanks a lot @parneet-guraya! It's perfect like that! CHANGELOG.md
will be modified automatically when merged this into master or when creating a new branch, that's the magic of Calens! 😄
Handle error 423 (locked file)
Fixes: #4282
What this PR includes?
Record_2024-01-17-01-46-07.mp4
@jesmrec The reason I believe this exception occurs is when file is being accessed, like in this case when the video is being fetched and we try to remove the file then it throws the exception.