Comment 8 for bug 1500890

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

Reviewed: https://review.openstack.org/237730
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=44d57696ecb4200605161115b5d2e7114961a747
Submitter: Jenkins
Branch: master

commit 44d57696ecb4200605161115b5d2e7114961a747
Author: ZhiQiang Fan <email address hidden>
Date: Tue Oct 20 12:25:23 2015 -0600

    unquote resource id to support slash in it

    Swift related meters can generate samples with special resource id
    which contains slash, such as: 29f809d9-88bb-4c40-b1ba-a77a1fcf8ceb/glance.
    If we query such resource directly, pecan will return 404 error,
    but even end user encodes that special slash, we cannot response too.

    This patch unquotes resource id in case it contains special characters.

    Note that end user needs to use %252F to escape % character as well
    to avoid pecan map slash to path delimiter.

    Change-Id: I744b100524f19fabcc9fa68082c4cd235ca8445f
    Close-Bug: #1500890