Project

Profile

Help

Issue #1042

closed

Exception raised when building error message on relative_url collision

Added by bcourt over 7 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
2.6.1
Platform Release:
2.6.5
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:

Description

If a repo is created using a relative_url

The line https://github.com/pulp/pulp_rpm/blob/pulp-rpm-2.6.1-1/plugins/pulp_rpm/plugins/distributors/yum/configuration.py#L469
is checking which will raise a KeyError if 'relative_url' has not been defined in the distributor config.

conflicting_relative_url = distributor['config']['relative_url'] or conflicting_repo_id

This should be replaced with something like

if 'relative_url' in distributor['config']:
    conflicting_relative_url = distributor['config']['relative_url'] or conflicting_repo_id
else:
    conflicting_relative_url = conflicting_repo_id
Actions #1

Updated by bcourt over 7 years ago

  • Severity changed from 2. Medium to 3. High

Raising severity to high as this prevents the user from seeing the reason an error is being raised.

Actions #2

Updated by mhrivnak over 7 years ago

  • Priority changed from Normal to High
  • Triaged changed from No to Yes
  • Tags Easy Fix added

Please add verification steps.

Actions #3

Updated by ipanova@redhat.com over 7 years ago

  • Status changed from NEW to ASSIGNED
Actions #4

Updated by ipanova@redhat.com over 7 years ago

  • Assignee set to ipanova@redhat.com
Actions #5

Updated by ipanova@redhat.com over 7 years ago

  • Status changed from ASSIGNED to POST

Added by ipanova@redhat.com over 7 years ago

Revision 1465d905

Exception raised when building error message on relative_url collision

closes #1042 https://pulp.plan.io/issues/1042

It turns out that pulp complains not only for relative_url collision of another relative_url repo, but also for relative_url collision with repo id of existing repo.

Due to this behaviour pulp renders incorrect and false message.

Actions #6

Updated by ipanova@redhat.com over 7 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #7

Updated by ipanova@redhat.com over 7 years ago

  • Platform Release set to 2.6.4
Actions #8

Updated by dkliban@redhat.com about 7 years ago

  • Platform Release changed from 2.6.4 to 2.6.5
Actions #9

Updated by dkliban@redhat.com about 7 years ago

  • Status changed from MODIFIED to 5
Actions #10

Updated by dkliban@redhat.com about 7 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #11

Updated by bmbouter over 3 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF