Project

Profile

Help

Issue #1452

closed

_href missing from iso distributors

Added by Ichimonji10 about 8 years ago. Updated almost 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
2.7.0
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

It's possible to get information about the distributors associated with a repository by issuing either of the following:

GET https://pulp.example.com/pulp/api/v2/repositories/…/?distributors=true
GET https://pulp.example.com/pulp/api/v2/repositories/…/?details=true

The response body will have a "distributors" attribute, where the attribute is a list of dicts. Unfortunately, the distributors are all missing their `_href` attribute. For example:

>>> import requests
>>> response = requests.get(
...     'https://pulp.example.com/pulp/api/v2/repositories/…/distributors=true',
...     '…'
... )
>>> response.raise_for_status()
>>> response.json()['distributors']

[
    {
        u'_id': {u'$oid': u'56786442e779894f7829a5b0'},
        u'_ns': u'repo_distributors',
        u'auto_publish': True,
        u'config': {},
        u'distributor_type_id': u'iso_distributor',
        u'id': u'iso_distributor',
        u'last_publish': None,
        u'repo_id': u'2c2770dd-3f5a-4bc5-9fae-c37ef873e30f',
        u'scheduled_publishes': []
    }
]

This issue applies to ISO distributors on Pulp 2.7.

Actions #1

Updated by Ichimonji10 about 8 years ago

According to Jenkins, this issue also affects the master branch. According to my own test systems (spun up using Vagrant), this issue only affects 2.7.

Actions #2

Updated by rbarlow about 8 years ago

  • Project changed from Pulp to RPM Support
  • Category deleted (14)
Actions #3

Updated by mhrivnak about 8 years ago

  • Severity changed from 2. Medium to 1. Low
  • Triaged changed from No to Yes
Actions #4

Updated by bmbouter almost 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #5

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF