Project

Profile

Help

Issue #4700

closed

validation error for 'base_path' of Distribution is not clear

Added by dkliban@redhat.com about 5 years ago. Updated over 3 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

When creating a Distribution with a 'base_path' that is not a relative path, the user receives the following error:

{
    "non_field_errors": [
        "Relative path cannot begin or end with slashes."
    ]
}

The error message should contain the field name that failed validation like this:

{
    "base_path": [
        "Relative path cannot begin or end with slashes."
    ]
}

Also available in: Atom PDF