Project

Profile

Help

Issue #706

closed

When adding a distributor to a repo_groups returned _href field is UID

Added by amacdona@redhat.com about 9 years ago. Updated almost 4 years ago.

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

Description

Description of problem:

The _href should point to an actual endpoint, not a UID.

Steps to Reproduce:
1. Add a distributor to a repo_group

curl -s -H Accept: application/json -H "WebFrameworkSwitch: webpy" -X POST -d '{"distributor_type_id": "group_export_distributor", "distributor_config": {"http": true, "https": false}}' -k -u admin:admin https://localhost/pulp/api/v2/repo_groups/test/distributors/

Actual results:

[
{
"_href": "a68bca8a-7cbb-4ec2-9bb6-8386447b55dd",
"_id": {
"$oid": "54e630a3e138231230a80605"
},
"_ns": "repo_group_distributors",
"config": {
"http": true,
"https": false
},
"distributor_type_id": "group_export_distributor",
"id": "a68bca8a-7cbb-4ec2-9bb6-8386447b55dd",
"last_publish": null,
"repo_group_id": "test",
"scratchpad": null
}
]

Expected results:

[
{
"_id": {
"$oid": "54e630a3e138231230a80605"
},
"_ns": "repo_group_distributors",
"config": {
"http": true,
"https": false
},
"distributor_type_id": "group_export_distributor",
"href": "/pulp/api/v2/repo_groups/test/distributors/a68bca8a-7cbb-4ec2-9bb6-8386447b55dd/",
"id": "a68bca8a-7cbb-4ec2-9bb6-8386447b55dd",
"last_publish": null,
"repo_group_id": "test",
"scratchpad": null
}
]

+ This bug was cloned from Bugzilla Bug #1194421 +

Actions #1

Updated by amacdona@redhat.com about 9 years ago

Correction, the bug is with GET all distributors, not with creating a new one.

+ This comment was cloned from Bugzilla #1194421 comment 1 +

Actions #3

Updated by amacdona@redhat.com about 9 years ago

  • Status changed from POST to MODIFIED
Actions #4

Updated by bmbouter about 9 years ago

  • Triaged changed from No to Yes
  • Severity set to Low
Actions #5

Updated by bmbouter almost 9 years ago

  • Severity changed from Low to 1. Low
Actions #6

Updated by dkliban@redhat.com almost 9 years ago

  • Platform Release set to 2.7.0
Actions #7

Updated by dkliban@redhat.com almost 9 years ago

  • Status changed from MODIFIED to 5
Actions #8

Updated by pthomas@redhat.com over 8 years ago

  • Status changed from 5 to 6

Verified

[root@mgmt4 ~]# rpm -qa pulp-server
pulp-server-2.7.0-0.4.beta.el6.noarch
[root@mgmt4 ~]# 
{  
   "scratchpad":null,
   "repo_group_id":"repo-grp1",
   "_ns":"repo_group_distributors",
   "last_publish":null,
   "distributor_type_id":"group_export_distributor",
   "_id":{  
      "$oid":"559fc32efefb7a1b27bb532c"
   },
   "config":{  
      "http":true,
      "https":false
   },
   "id":"61c4d17e-d20a-4baf-b184-8fffb5432fa2",
   "_href":"/pulp/api/v2/repo_groups/repo-grp1/distributors/61c4d17e-d20a-4baf-b184-8fffb5432fa2/"
}
Actions #9

Updated by amacdona@redhat.com over 8 years ago

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

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added
Actions #12

Updated by bmbouter almost 4 years ago

  • Category deleted (14)

We are removing the 'API' category per open floor discussion June 16, 2020.

Also available in: Atom PDF