Escape special characters in the introspect query string sent from analytics-api

Bug #1515489 reported by Sundaresan Rajangam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Medium
Sundaresan Rajangam

Bug Description

contrail-analytics-api uses the introspect_util module in the opserver python package to send the introspect request to the generator. Special characters in the introspect query parameters should be escaped before sending the request.

Tags: analytics
Changed in juniperopenstack:
importance: Undecided → Medium
summary: - Escape query string in the introspect request sent from analytics-api
+ Escape special characters in the introspect query string sent from
+ analytics-api
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/15111
Submitter: Sundaresan Rajangam (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/15111
Committed: http://github.org/Juniper/contrail-controller/commit/33134ed69a96d99fb620f5ae6bb3c97b883de741
Submitter: Zuul
Branch: master

commit 33134ed69a96d99fb620f5ae6bb3c97b883de741
Author: Sundaresan Rajangam <email address hidden>
Date: Fri Nov 13 06:17:29 2015 -0800

Escape special characters in the http query parameters

query parameters in the introspect request containing special
characters such as '&' need to be escaped by the http client.
Not escaping the special characters would result in improper
parsing of the http request at the server.
contrail-analytics-api uses the introspect_util module in the opserver
python package to send the introspect request to the generator.
Escape special characters in the query params using urllib.urlencode()

Change-Id: I843f571b0fe788d8ed161664880ed93cc3d00251
Closes-Bug: #1515489

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.