Project

Profile

Help

Issue #4700

validation error for 'base_path' of Distribution is not clear

Added by dkliban@redhat.com 6 months ago. Updated 6 months ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

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

History

#1 Updated by daviddavis 6 months ago

  • Tags Easy Fix added

#2 Updated by dkliban@redhat.com 6 months 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

#3 Updated by daviddavis 6 months ago

  • Tags deleted (Easy Fix)

#4 Updated by amacdona@redhat.com 6 months ago

  • Triaged changed from No to Yes
  • Tags Pulp 3 added

#5 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF