Python-glanceclient fails on windows due to malformed API url

Bug #1079323 reported by Alessandro Pilotti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Fix Released
High
Alessandro Pilotti

Bug Description

python-glanceclient (latest repository code) fails on Windows due to a malformed API url with the following error:

http://paste.openstack.org/show/25965/

This error is due to the usage of os.path.normpath(), which should not be used for URLs as it swaps "/" with "\".

See also https://bugs.launchpad.net/nova/+bug/1077125 and related fix.

summary: - Fails on windows due to malformed API url
+ Python-glanceclient fails on windows due to malformed API url
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-glanceclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/16211

Changed in python-glanceclient:
assignee: nobody → Alessandro Pilotti (alexpilotti)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-glanceclient (master)

Reviewed: https://review.openstack.org/16211
Committed: http://github.com/openstack/python-glanceclient/commit/6c201e63ea76032cbdd65211382b6266e6a767de
Submitter: Jenkins
Branch: master

commit 6c201e63ea76032cbdd65211382b6266e6a767de
Author: Alessandro Pilotti <email address hidden>
Date: Thu Nov 15 20:25:26 2012 +0200

    Fixes bug on Windows related to a wrong API url

    Fixes Bug #1079323

    python-glanceclient (latest repository code) fails on Windows due to a
    malformed API url. This error is due to the usage of os.path.normpath(),
    which should not be used for URLs as it swaps "/" with "\" on Windows.

    The fix consists in using posixpath.normpath().
    Please see also https://bugs.launchpad.net/nova/+bug/1077125 and related
    commit.

    Change-Id: Iaa643bd579963ad9ffbf10674973cbca75d435ac

Changed in python-glanceclient:
status: In Progress → Fix Committed
Brian Waldon (bcwaldon)
Changed in python-glanceclient:
importance: Undecided → High
Brian Waldon (bcwaldon)
Changed in python-glanceclient:
milestone: none → v0.6.0
status: Fix Committed → Fix Released
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.