owncloud / owncloud/android

[BUG] Bad error message while setting incorrect permissions in resharing

Open
#4,041 2 comments 0 reactions 0 assignees View on GitHub

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

  1. User1 shares a folder with User2 without edit permission
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.