dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
852 stars 467 forks source link

User Resource improvement on bad request #28313

Open bryanboza opened 5 months ago

bryanboza commented 5 months ago

Problem Statement

When sending a bad request to the user resource in dotCMS, the API is returning the same error message twice in the response, leading to redundant error handling and potential confusion for users.

API :http://localhost:8080/api/v1/users

Body:

{
    "active":true,
    "firstName" : "lala",
    "middleName":"MaxtLengtOnName-aBC1dEF2gHI3jKL4mNO5pQR6sTU7vWX8yZA9bCD0eFGhIJkLMnOPqRsTtUVwXYzABCDEFGHIJKLMNOQRSTUVWXYZ123",
    "lastName":"Spanish",

    "password":["1","2","3","4","5","6","7","8"]
}

image

Steps to Reproduce

Acceptance Criteria

dotCMS Version

Tested on master // Postman

Proposed Objective

Quality Assurance

Proposed Priority

Priority 4 - Trivial

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.