[BUG] Bad error message while setting incorrect permissions in resharing
Open
Nobody has claimed this yet.
Share with users
Type:bug
UI / UX
- Dominant language
- Kotlin
- Stars
- 4.2k
- Forks
- 3.1k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 7
Description
Steps to reproduce
in oC10 server
- User1 shares a folder with User2 without edit permission
- User2 shares with User3, granting edit permission
Actual behaviour
Error: It was not posible to update this file or folder because it was not found
Expected behaviour
a more accurate error. This is the server response:
{
"ocs": {
"data": [],
"meta": {
"itemsperpage": "",
"message": "Cannot set the requested share permissions for A",
"status": "failure",
"statuscode": 404,
"totalitems": ""
}
}
}
Reproducible in 3.0.4 and 4.0-beta.4
Pixel2, Android 11
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the resharing flow on the Android app using the listed permission steps, then trace where the server response is converted into the displayed error. The work is done when this permission failure shows a more accurate message than the current file-not-found text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100