Bug 1480281 - [RFE] href not returned when ordering service from the service_templates subcollection
[RFE] href not returned when ordering service from the service_templates subc...
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: API (Show other bugs)
Unspecified Unspecified
high Severity medium
: GA
: 5.9.0
Assigned To: Jillian Tullo
Martin Kourim
: FutureFeature, RFE
Depends On:
  Show dependency treegraph
Reported: 2017-08-10 11:10 EDT by Martin Kourim
Modified: 2018-03-01 08:15 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2018-03-01 08:15:53 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Martin Kourim 2017-08-10 11:10:34 EDT
Description of problem:
When service is ordered from service catalog using the request on the service_templates subcollection, the data returned in response corresponds to the service_requests collection. However since no "href" is returned, it's hard to figure out that the response doesn't correspond to the originating subcollection (i.e. service_templates).

When the request is made on a resource under the service_templates subcollection, the correct "href" is returned.

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

How reproducible:

Steps to Reproduce:
Order catalog item from the service_templates subcollection:

POST /api/service_catalogs/62/service_templates
  "action": "order",
  "resources": [{
    "href": "https://<address>/api/service_catalogs/:catalog_id/service_templates/:template_id"

    "results": [
            "id": 27,
            "description": "Provisioning Service [item_4D2Nq] from [item_4D2Nq]",
<= no "href" is present - it should point to "https://<address>/api/service_requests/27", otherwise it's difficult to find out what resource does the id belongs to.

Compared to:
POST /api/service_catalogs/62/service_templates/:template_id
{ "action": "order" }

    "href": "https://<address>/api/service_requests/28",
    "id": 28,
    "description": "Provisioning Service [item_4D2Nq] from [item_4D2Nq]",
<= here the "href" is present
Comment 2 Jillian Tullo 2017-10-04 15:16:46 EDT
Comment 3 Martin Kourim 2017-10-19 10:20:40 EDT
Verified that href is returned when ordering service from the service_templates subcollection.
Comment 6 errata-xmlrpc 2018-03-01 08:15:53 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.