Project

Profile

Help

Issue #3476

closed

Base path validation on distributions doesn't work depending on your hostname

Added by daviddavis over 6 years ago. Updated almost 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:
Sprint:
Sprint 34
Quarter:

Description

Ichimonji10 discovered that perfectly valid hostnames weren't being accepted after this PR got merged:

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

We're using django's URLValidator which apparently looks for a dot in the hostname:

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

That is except if you are using localhost:

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

Actions #1

Updated by daviddavis over 6 years ago

  • Status changed from NEW to POST
  • Assignee set to daviddavis
Actions #2

Updated by daviddavis over 6 years ago

  • Tags Pulp 3, Pulp 3 MVP added
Actions #3

Updated by dalley over 6 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 34

Added by daviddavis over 6 years ago

Revision 855d2025 | View on GitHub

Fixing problems with bad hostnames

Looks like django requires certain features of hostnames like a "." so using get_host() was not a good idea. Using a known valid hostname instead.

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

Added by daviddavis over 6 years ago

Revision 855d2025 | View on GitHub

Fixing problems with bad hostnames

Looks like django requires certain features of hostnames like a "." so using get_host() was not a good idea. Using a known valid hostname instead.

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

Actions #4

Updated by daviddavis over 6 years ago

  • Status changed from POST to MODIFIED
Actions #5

Updated by dkliban@redhat.com over 6 years ago

  • Sprint/Milestone set to 3.0.0
Actions #6

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3, Pulp 3 MVP)
Actions #7

Updated by bmbouter almost 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF