Project

Profile

Help

Issue #1108

_http is missing in the all/specific distributors retrieval response body

Added by ipanova@redhat.com over 5 years ago. Updated over 1 year ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - OSTree:
master
Platform Release:
Target Release - OSTree:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

$ curl -H "Accept: application/json" -H "WebFrameworkSwitch: django" -X GET -k -u admin:admin  'https://localhost/pulp/api/v2/repositories/test1/distributors/'|python -m json.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   305  100   290  100    15    928     48 --:--:-- --:--:-- --:--:--   929
[
    {
        "_id": {
            "$oid": "5596914945ef484fc437e6bb"
        },
        "_ns": "repo_distributors",
        "auto_publish": true,
        "config": {},
        "distributor_type_id": "ostree_web_distributor",
        "id": "ostree_web_distributor_name_cli",
        "last_publish": null,
        "repo_id": "test1",
        "scheduled_publishes": [],
        "scratchpad": null
    }
]
$ curl -H "Accept: application/json" -H "WebFrameworkSwitch: django" -X GET -k -u admin:admin 'https://localhost/pulp/api/v2/repositories/test1/distributors/ostree_web_distributor_name_cli/'|python -m json.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   303  100   288  100    15    856     44 --:--:-- --:--:-- --:--:--   854
{
    "_id": {
        "$oid": "5596914945ef484fc437e6bb"
    },
    "_ns": "repo_distributors",
    "auto_publish": true,
    "config": {},
    "distributor_type_id": "ostree_web_distributor",
    "id": "ostree_web_distributor_name_cli",
    "last_publish": null,
    "repo_id": "test1",
    "scheduled_publishes": [],
    "scratchpad": null
}

History

#1 Updated by ipanova@redhat.com over 5 years ago

  • Description updated (diff)
  • Version - OSTree set to master

#2 Updated by bmbouter over 5 years ago

  • Triaged changed from No to Yes

@ipanova, can you confirm that you expect the _http to be a link to another resource?

#3 Updated by ipanova@redhat.com over 5 years ago

I checked other content types, they also don't have the _http in the response body.
So seems like it is a desired behaviour. Ans docs also reflect the current status, so i am closing this as notabug.

#4 Updated by ipanova@redhat.com over 5 years ago

  • Status changed from NEW to CLOSED - NOTABUG

#5 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF