Skip to content

Show more descriptive error message when failing to create team with few letters #2567

Description

@cristianscheid

How to use GitHub

  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Feature request

Which Nextcloud Version are you currently using: Nextcloud 35.0.0 dev

Is your feature request related to a problem? Please describe.
Yes. Currently, when attempting to create a team using a name with few letters (e.g. "ab"), the frontend only returns generics error messages, like below:
Image
Inspecting the network tab, the actual error can be seen:

// POST ocs/v2.php/apps/circles/circles
{
    "ocs": {
        "meta": {
            "status": "failure",
            "statuscode": 400,
            "message": "Circle name is too short"
        },
        "data": []
    }
}

Describe the solution you'd like

Would be nice to return a more descriptive message to the user on frontend, so he knows what exactly is going on and what has to be changed.

Additional context
lib/Controller/LocalController::create() is the method reached by POST ocs/v2.php/apps/circles/circles endpoint.

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions