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.
Reviewed: https:/ /review. openstack. org/237730 /git.openstack. org/cgit/ openstack/ ceilometer/ commit/ ?id=44d57696ecb 4200605161115b5 d2e7114961a747
Committed: https:/
Submitter: Jenkins
Branch: master
commit 44d57696ecb4200 605161115b5d2e7 114961a747
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 88bb-4c40- b1ba-a77a1fcf8c eb/glance.
which contains slash, such as: 29f809d9-
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: I744b100524f19f abcc9fa68082c4c d235ca8445f
Close-Bug: #1500890