Comment 1 for bug 915621

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

Reviewed: https://review.openstack.org/2988
Committed: http://github.com/openstack/glance/commit/b46401a17b68dee4568e7ff01a5534a62eb9285f
Submitter: Jenkins
Branch: master

commit b46401a17b68dee4568e7ff01a5534a62eb9285f
Author: Pete Zaitcev <email address hidden>
Date: Wed Jan 11 21:24:22 2012 -0700

    Return correct href if bind_host is 0.0.0.0.

    The existing code returns incorrect href= in the root document (aka
    "version" document) if the default configuration is used. If a remote
    system accesses Glance API, the netspec of href= contains 0.0.0.0,
    which cannot be used for further remote accesses. This happens because
    attempts to use local configuration or the bind address to reconstruct
    URLs are futile.

    The correct way resolve this problem is to use the Host: header
    of the HTTP request. As a bonus, it works with IPv6, should we ever
    support it.

    Change-Id: I661351b679c695bd6ab310104a3246dd3069f9c6
    Bug: 915621