Incorrect host in Location header when creating resources via ReST

Description

In the following request/response to the ReST API:

The host in the returned Location header is set to localhost:8980, which differs from the host in the request 127.0.0.1:8980.

As originally reported in NMS-7845 this can cause authentication errors, since existing session cookies attached to the 127.0.0.1:8980 host will no longer be used when following the redirect to localhost:8980.

Acceptance / Success Criteria

None

Attachments

2

Lucidchart Diagrams

Activity

Show:

Jesse White February 12, 2016 at 7:55 AM

Fixed in foundation-2016 with 5f9010b91284aceb968f241f025044e7b82c3eb4.

Jesse White February 11, 2016 at 9:43 AM

CXF 3.1.5 was released, I'll work up updating it in foundation-2016.

Alejandro Galue January 29, 2016 at 12:56 PM
Edited

I think is right. On a CentOS VM, the Location header for the last foundation-2016 RPMs is correct (check the new screenshot).

Alejandro Galue January 29, 2016 at 12:14 PM
Edited

Clearly, you can see that a request against demo.opennms.org, returns localhost on the Location header of the 303 response, which is incorrect by definition.

Benjamin Reed January 29, 2016 at 12:14 PM

Demo is reverse-proxied with apache in front of it, so maybe something related to that is messing things up?

Fixed

Details

Assignee

Reporter

Components

Sprint

Fix versions

Affects versions

Priority

PagerDuty

Created September 10, 2015 at 10:29 AM
Updated February 17, 2016 at 3:57 PM
Resolved February 12, 2016 at 7:56 AM