Project

Profile

Help

Issue #790

_href is unecessarily nested in a dict in the response body of consumer registration

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

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

Description

$ curl -i -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X POST -k -u admin:admin -d '{"id":"c2"}' "https://localhost/pulp/api/v2/consumers/"
HTTP/1.1 201 Created
Date: Wed, 18 Mar 2015 11:57:52 GMT
Server: Apache/2.4.10 (Fedora) OpenSSL/1.0.1e-fips mod_wsgi/3.5 Python/2.7.5
Location: /pulp/api/v2/consumers/c2/
Content-Length: 2043
Content-Type: application/json

{"consumer": {"display_name": "c2", "description": null, "_ns": "consumers", "notes": {}, "rsa_pub": null, "capabilities": {}, "_id": {"$oid": "5509684045ef485ffe14dfae"}, "id": "c2", "_href": {"_href": "/pulp/api/v2/consumers/c2/"}}, "certificate": "-----BEGIN RSA PRIVATE KEY-----\nMIICXQIBAAKBgQC+BYPuGTtdFDIkOj8mIUJTU1pG4ezkQwxxFF/9+7+tIheHWCeO-----END RSA PRIVATE KEY-----\n-----BEGIN CERTIFICATE-----\nMIICWDCCAUACAgDgMA0GCSqGSIb3DQEBBQUAMDAxHzAdBgNVBAMMFmluYS51c2Vy\nc3lzLnJlZGhhk/PGi+3w4dimAHkLQXved5SU//tJOumYp/tzOjlskgCCzmyozyHqBOepTW96\nx1SLCqi2jU+b7NMcJ4qaR3ZHMknWoR9j8wsXyg==\n-----END CERTIFICATE-----"}

History

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

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

#2 Updated by bmbouter over 6 years ago

  • Severity changed from Low to 1. Low

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

  • Status changed from POST to MODIFIED

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

  • Platform Release set to 2.7.0

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

  • Status changed from MODIFIED to 5

#6 Updated by pthomas@redhat.com over 6 years ago

  • Status changed from 5 to 6

verified

{  
   "consumer":{  
      "display_name":"c2",
      "description":null,
      "_ns":"consumers",
      "notes":{  

      },
      "rsa_pub":null,
      "capabilities":{  

      },
      "_id":{  
         "$oid":"559c1c24fefb7a1bc12ac524"
      },
      "id":"c2",
      "_href":"/pulp/api/v2/consumers/c2/"
   },
   "certificate":""
}

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

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#9 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF