Project

Profile

Help

Issue #3475

closed

Invalid base path error could be more helpful

Added by daviddavis almost 7 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
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:
Easy Fix
Sprint:
Sprint 36
Quarter:

Description

Create a distributor with a space in its base path and you'll get an error message saying ""Enter a valid URL." We're using django's URLValidator which produces this message:

https://github.com/django/django/blob/master/django/core/validators.py#L102

We ought to raise a more informative message about what constitutes a valid url path.

Relevant PR:

https://github.com/pulp/pulp/pull/3371

Actions #1

Updated by amacdona@redhat.com almost 7 years ago

  • Project changed from File Support to Pulp
Actions #2

Updated by dalley almost 7 years ago

  • Triaged changed from No to Yes
  • Tags Easy Fix added
Actions #3

Updated by amacdona@redhat.com over 6 years ago

  • Tags deleted (Pulp 3 MVP)
Actions #4

Updated by CodeHeeler over 6 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to CodeHeeler
Actions #5

Updated by CodeHeeler over 6 years ago

  • Sprint set to Sprint 35
Actions #6

Updated by CodeHeeler over 6 years ago

  • Status changed from ASSIGNED to POST
Actions #7

Updated by rchan over 6 years ago

  • Sprint changed from Sprint 35 to Sprint 36

Added by CodeHeeler over 6 years ago

Revision 9a9e9c93 | View on GitHub

Provide more informative invalid base path error

Default message provided by Django's URLValidator is simply: "Enter a valid URL" Check for spaces in path before this call and raise ValidationError if found.

fixes #3475 https://pulp.plan.io/issues/3475

Added by CodeHeeler over 6 years ago

Revision 9a9e9c93 | View on GitHub

Provide more informative invalid base path error

Default message provided by Django's URLValidator is simply: "Enter a valid URL" Check for spaces in path before this call and raise ValidationError if found.

fixes #3475 https://pulp.plan.io/issues/3475

Actions #8

Updated by CodeHeeler over 6 years ago

  • Status changed from POST to MODIFIED
Actions #9

Updated by daviddavis over 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #10

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3)
Actions #11

Updated by bmbouter about 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF