api.metadata.base.lookup() doesn't work on Windows due to os.path.normpath()

Bug #1077125 reported by Alessandro Pilotti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Alessandro Pilotti

Bug Description

api.metadata.base.lookup() uses os.path.normpath() to normalize urls.

This doesn't work on Windows as it transforms "/" in "\".

Changed in nova:
assignee: nobody → Alessandro Pilotti (alexpilotti)
status: New → In Progress
tags: added: low-hanging-fruit
Changed in nova:
status: In Progress → Incomplete
Changed in nova:
status: Incomplete → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/15763
Committed: http://github.com/openstack/nova/commit/3757ba9ccf0915d1854c97f625effd0edbedfa12
Submitter: Jenkins
Branch: master

commit 3757ba9ccf0915d1854c97f625effd0edbedfa12
Author: Alessandro Pilotti <email address hidden>
Date: Fri Nov 9 20:03:01 2012 +0200

    Fixes a bug in api.metadata.base.lookup() on Windows

    Fixes Bug #1077125

    api.metadata.base.lookup() uses os.path.normpath() to normalize urls.
    This doesn't work on Windows as it transforms "/" in "\".

    The fix solves the issue, but os.path.normpath() should never be used
    to normalize urls.

    Change-Id: I83d0795d5875acac5fe9bd543f9ca9b4a3e2c8d5

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-1 → 2013.1
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.