href in response of version api is incorrect

Bug #1854119 reported by licanwei
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Fix Released
Undecided
licanwei

Bug Description

"default_version": {"status": "CURRENT", "min_version": "1.0", "max_version": "1.2", "id": "v1", "links": [{"href": "http://192.168.22.56/v1/", "rel": "self"}]}, "versions": [{"status": "CURRENT", "min_version": "1.0", "max_version": "1.2", "id": "v1", "links": [{"href": "http://192.168.22.56/v1/", "rel": "self"}]}],

href should be "http://192.168.22.56/infra-optim/v1/"

licanwei (li-canwei2)
Changed in watcher:
assignee: nobody → licanwei (li-canwei2)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to watcher (master)

Fix proposed to branch: master
Review: https://review.opendev.org/696233

Changed in watcher:
status: New → In Progress
Revision history for this message
chenker (chenker) wrote :

Where can I see this situation? I had use --debug by client, But I didn't see this situation.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to watcher (master)

Reviewed: https://review.opendev.org/696233
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=0032ed92370eeeb1e71d8fb47930df14a3585d2e
Submitter: Zuul
Branch: master

commit 0032ed92370eeeb1e71d8fb47930df14a3585d2e
Author: licanwei <email address hidden>
Date: Wed Nov 27 14:47:19 2019 +0800

    replace host_url with application_url

    for url http://localhost/infra-optim
    pecan.request.host_url is http://localhost
    and pecan.request.application_url is http://localhost/infra-optim
    we should use application_url to make href in links.

    Change-Id: I5d7746b3da196ea2e072fbdf1adb1523ba2bffaf
    Closes-Bug: #1854119

Changed in watcher:
status: In Progress → Fix Released
Revision history for this message
licanwei (li-canwei2) wrote :

@chenker: curl http://ip/infra-optim

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.