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."
    ]
}
Actions #1

Updated by daviddavis about 5 years ago

  • Tags Easy Fix added
Actions #2

Updated by dkliban@redhat.com about 5 years ago

I tried fixing, but my fix didn't seem correct based on the unit test failures I saw. It seems like the field is getting set, but not being exposed.

https://github.com/pulp/pulpcore/pull/89

Actions #3

Updated by daviddavis about 5 years ago

  • Tags deleted (Easy Fix)
Actions #4

Updated by amacdona@redhat.com about 5 years ago

  • Triaged changed from No to Yes
  • Tags Pulp 3 added
Actions #5

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)
Actions #6

Updated by dkliban@redhat.com over 3 years ago

  • Status changed from NEW to CLOSED - WONTFIX

Also available in: Atom PDF