ifmap server issued caused by double-quote in name

Bug #1443628 reported by Tony Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Medium
Hampapur Ajay

Bug Description

Double-quote in name causes issue when the object is published to ifmap server.

neutron net-create '"doubeleqnet'

ERROR:a6s15:contrail-api:Config:0:__default__ [SYS_ERR]: VncApiError: Error publishing to ifmap, req: <ifmap:publish session-id="901232138-126185454-1025163392-988008279" ><update lifetime="forever" ><identity name="contrail:project:default-domain:admin" type="other" other-type-definition="extended" /><identity name="contrail:virtual-network:default-domain:admin:"doubeleqnet" type="other" other-type-definition="extended" /><metadata><contrail:project-virtual-network ifmap-cardinality="singleValue" ></contrail:project-virtual-network></metadata></update></ifmap:publish>, resp: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns3:Envelope xmlns:ns2="http://www.trustedcomputinggroup.org/2010/IFMAP/2" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope"><ns3:Body><ns2:response><errorResult errorCode="Failure"><errorString>Element type &quot;identity&quot; must be followed by either attribute specifications, &quot;&gt;&quot; or &quot;/&gt;&quot;.</errorString></errorResult></ns2:response></ns3:Body></ns3:Envelope>

Tags: config
Changed in juniperopenstack:
assignee: nobody → Suresh Balineni (sbalineni)
importance: Undecided → Medium
information type: Proprietary → Public
tags: added: config
Revision history for this message
Suresh Balineni (sbalineni) wrote :

Worked with Ajay on this bug. python SAX library used to parse/generate xml data in api-server does not escape characters " & '.
According XML language syntax, these characters must be escaped as follows.

" &quot;
' &apos;

Because of this reason, Ifmap-server can't parse xml data.

Ajay has the fix for it.

Changed in juniperopenstack:
assignee: Suresh Balineni (sbalineni) → Hampapur Ajay (hajay)
Sachin Bansal (sbansal)
Changed in juniperopenstack:
status: New → Fix Committed
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.