Project

Profile

Help

Issue #695

Location in the http header is wrong

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:
1. Low
Version:
2.6 Beta
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Description of problem:
In some parts of API the location path is wrong. For example:

$ curl -i -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X POST -k -u admin:admin -d '{"role_id":"role2"}' 'https://localhost/pulp/api/v2/roles/'
HTTP/1.1 201 Created
Date: Fri, 30 Jan 2015 10:37:00 GMT
Server: Apache/2.4.10 (Fedora) OpenSSL/1.0.1e-fips mod_wsgi/3.5 Python/2.7.5
Location: role2
Content-Length: 179
Content-Type: application/json

{"display_name": "role2", "description": null, "_ns": "roles", "_href": "/pulp/api/v2/roles/role2/", "_id": {"$oid": "54cb5ecc45ef482660d215f2"}, "id": "role2", "permissions": {}}

location is 'Location: role2' instead of 'Location: https://localhost/pulp/api/v2/roles/role2/'

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 #1191972 +

History

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

  • Severity set to 1. Low
  • Platform Release set to 2.7.0

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

  • Status changed from MODIFIED to 5

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

  • Status changed from 5 to 6

Verified

[root@qe-blade-10 ~]# rpm -qa pulp-server
pulp-server-2.7.0-0.3.beta.el6.noarch
[root@qe-blade-10 ~]# 

<\pre>

<pre>
[root@qe-blade-10 ~]# curl -i -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X POST -k -u admin:admin -d '{"role_id":"role2"}' 'https://localhost/pulp/api/v2/roles/'
HTTP/1.1 201 CREATED
Date: Thu, 02 Jul 2015 18:48:44 GMT
Server: Apache/2.2.15 (Red Hat)
Content-Length: 179
Location: https://localhost/pulp/api/v2/roles/role2/
Connection: close
Content-Type: application/json

{"display_name": "role2", "description": null, "_ns": "roles", "_href": "/pulp/api/v2/roles/role2/", "_id": {"$oid": "5595878c1f290f182e21963d"}, "id": "role2", "permissions": {}}[root@qe-blade-10 ~]# 

<\pre>

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

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#7 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

#8 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