Project

Profile

Help

Issue #466

Wrong _href in the response body of consumer profile creation

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

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

Description

Description of problem:
https://pulp-dev-guide.readthedocs.org/en/latest/integration/rest-api/consumer/profile.html#create-a-profile
Wrong _href in the response body of consumer profile creation

Update example with "_href": "/pulp/api/v2/consumers/<consumer_id>/profiles/<content_type>"

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results:

Expected results:

Additional info:

+ This bug was cloned from Bugzilla Bug #1115487 +


Related issues

Has duplicate Pulp - Issue #322: _href is wrong in consumer profile response bodyCLOSED - DUPLICATE<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Has duplicate Pulp - Issue #465: Wrong _href in the response body of consumer profile creationCLOSED - DUPLICATE<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by dkliban@redhat.com over 6 years ago

This is not a documentation bug. This is an API bug. The response in the documentation is exactly what is returned currently. However, the HREF returned is not valid. It should look the way it's described in the original bug report.

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

#2 Updated by ipanova@redhat.com over 6 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ipanova@redhat.com

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

  • Status changed from ASSIGNED to POST

#4 Updated by bmbouter over 6 years ago

  • Has duplicate Issue #322: _href is wrong in consumer profile response body added

#5 Updated by bmbouter over 6 years ago

  • Has duplicate Issue #465: Wrong _href in the response body of consumer profile creation added

#6 Updated by bmbouter over 6 years ago

  • Severity changed from Medium to 2. Medium

#7 Updated by ipanova@redhat.com over 6 years ago

  • Status changed from POST to MODIFIED

#9 Updated by dkliban@redhat.com over 6 years ago

  • Platform Release set to 2.7.0

#10 Updated by dkliban@redhat.com over 6 years ago

  • Status changed from MODIFIED to 5

#12 Updated by igulina@redhat.com over 6 years ago

  • Status changed from 5 to 6
>> rpm -qa pulp-server
pulp-server-2.7.0-0.4.beta.el7.noarch

>> curl -i -H "Accept: application/json" -X POST -k -u admin:admin -d '{ "content_type": "rpm", "profile": [{"arch": "i686", "epoch": 0, "name": "glib2", "release": "2.fc17", "vendor": "Fedora Project", "version": "2.32.4"}, {"arch": "x86_64", "epoch": 0, "name": "rpm-libs", "release": "8.fc17",            "vendor": "Fedora Project", "version": "4.9.1.3"}]}' 'https://localhost/pulp/api/v2/consumers/marfusha/profiles/'
HTTP/1.1 201 CREATED
Date: Fri, 10 Jul 2015 13:28:48 GMT
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5
Content-Length: 557
Location: https://localhost/pulp/api/v2/consumers/marfusha/profiles/rpm/
Content-Type: application/json

{"profile": [{"vendor": "Fedora Project", "name": "glib2", "epoch": 0, "version": "2.32.4", "release": "2.fc17", "arch": "i686"}, {"vendor": "Fedora Project", "name": "rpm-libs", "epoch": 0, "version": "4.9.1.3", "release": "8.fc17", "arch": "x86_64"}], "_href": "/pulp/api/v2/consumers/marfusha/profiles/rpm/", "_ns": "consumer_unit_profiles", "profile_hash": "15df1c6105edacd6b167d2e9dd87311b069f50cebb2f7968ef185c1d6eae5197", "consumer_id": "marfusha", "content_type": "rpm", "_id": {"$oid": "559fc4cd77b2945c16256ec1"}, "id": "559fc4cd77b2945c16256ec1"}

#13 Updated by amacdona@redhat.com almost 6 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#15 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

#16 Updated by bmbouter over 1 year ago

  • Category deleted (14)

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

Please register to edit this issue

Also available in: Atom PDF