Sandesh HTTP request for Snh_ShowRouteReq with Routing Instance name having special characters causes truncated UrlQuery

Bug #1761603 reported by Mahesh Sivakumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
New
Medium
Santosh Gupta
OpenContrail
Trunk
New
Medium
Santosh Gupta

Bug Description

When a Sandesh HTTP request for a particular routing table was given

(Snh_ShowRouteReq?x=default-domain:admin:#35768;智:#35768;智.inet.0)

it did not return any valid response even though prefixes were present in the routing table.
Note that this happens only in cases where the routing instance name consists of special characters.

On debugging this, I noticed that the callback from the HTTP server for the HTTP client Sandesh request has the UrlQuery incorrect

$106 = {method_ = HTTP_GET, url_ = "/Snh_ShowRouteReq?x=default-domain:admin:",

From the above request, it can be seen that the routing-instance name is cut short at the point where special characters begin.

This was noticed as a side effect in Bug#1759933
https://bugs.launchpad.net/opencontrail/+bug/1759933

Thanks
Mahesh

affects: opencontrail → juniperopenstack
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.