config: normalize xml reserved characters in object names for ifmap publish

Bug #1394044 reported by Hampapur Ajay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Undecided
Hampapur Ajay

Bug Description

Objects named with '<, >, &' end up with a failed publish to ifmap. On restart this problem is exacerbated because entire initial publish fails to occur.

We cannot restrict this in object names as source of truth for object can be outside contrail (e.g. project name in keystone)

Tags: config
Hampapur Ajay (hajay)
Changed in juniperopenstack:
assignee: nobody → Hampapur Ajay (hajay)
tags: added: config
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/4732
Committed: http://github.org/Juniper/contrail-generateDS/commit/59b6d1f153fbff9e7a6a5c16656780645cd51e6e
Submitter: Zuul
Branch: master

commit 59b6d1f153fbff9e7a6a5c16656780645cd51e6e
Author: Hampapur Ajay <email address hidden>
Date: Tue Nov 18 17:58:47 2014 -0800

Return xml-normalized values for ifmap-id of ident and its parent.

Change-Id: I5d84c6812e30f0fab95d34d7383e62f2584047ae
Partial-Bug: #1394044

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/4791
Committed: http://github.org/Juniper/contrail-generateDS/commit/0c06395d96252fe70fa5af6c95c9e34fb12870f7
Submitter: Zuul
Branch: master

commit 0c06395d96252fe70fa5af6c95c9e34fb12870f7
Author: Hampapur Ajay <email address hidden>
Date: Wed Nov 19 18:22:41 2014 -0800

Use xml.sax.saxutils escape instead of one from generateds

Change-Id: I29d6d7191492e84650df3a3c95e127fc6beb1097
Partial-Bug: #1394044

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

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

commit a691cd84f826fe695515b07a03e40d4bfeebd0b6
Author: Hampapur Ajay <email address hidden>
Date: Tue Nov 18 22:10:29 2014 -0800

Allow for presence of reserved chars of >,<,& in name of object.

When it is converted to xml to send to ifmap-server, contents are
normalized so that ifmap server can receive and process it fine.

Change-Id: I8f42efe0164ca732ee6ed64d8b590b1b85068f86
Closes-Bug: #1394044

Changed in juniperopenstack:
status: New → Fix Committed
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/5081
Committed: http://github.org/Juniper/contrail-controller/commit/220836be8df43f85264258ce08e717bf841f06d2
Submitter: Zuul
Branch: R2.0

commit 220836be8df43f85264258ce08e717bf841f06d2
Author: Hampapur Ajay <email address hidden>
Date: Tue Nov 18 22:10:29 2014 -0800

Allow for presence of reserved chars of >,<,& in name of object.

When it is converted to xml to send to ifmap-server, contents are
normalized so that ifmap server can receive and process it fine.

Change-Id: I8f42efe0164ca732ee6ed64d8b590b1b85068f86
Closes-Bug: #1394044
(cherry picked from commit a691cd84f826fe695515b07a03e40d4bfeebd0b6)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/5218
Committed: http://github.org/Juniper/contrail-generateDS/commit/d071e1978d67a16fedcc0508875ee46a64bf3ccd
Submitter: Zuul
Branch: R1.10

commit d071e1978d67a16fedcc0508875ee46a64bf3ccd
Author: Hampapur Ajay <email address hidden>
Date: Wed Nov 19 18:22:41 2014 -0800

Use xml.sax.saxutils escape instead of one from generateds

Change-Id: I29d6d7191492e84650df3a3c95e127fc6beb1097
Partial-Bug: #1394044
(cherry picked from commit 0c06395d96252fe70fa5af6c95c9e34fb12870f7)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/5216
Committed: http://github.org/Juniper/contrail-generateDS/commit/600537ab85143cda8c809ef7f1c03449f305c42f
Submitter: Zuul
Branch: R2.0

commit 600537ab85143cda8c809ef7f1c03449f305c42f
Author: Hampapur Ajay <email address hidden>
Date: Wed Nov 19 18:22:41 2014 -0800

Use xml.sax.saxutils escape instead of one from generateds

Change-Id: I29d6d7191492e84650df3a3c95e127fc6beb1097
Partial-Bug: #1394044
(cherry picked from commit 0c06395d96252fe70fa5af6c95c9e34fb12870f7)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/5080
Committed: http://github.org/Juniper/contrail-controller/commit/55389c9de87b2f11f5286964c204207e7ce5eb9f
Submitter: Zuul
Branch: R1.10

commit 55389c9de87b2f11f5286964c204207e7ce5eb9f
Author: Hampapur Ajay <email address hidden>
Date: Tue Nov 18 22:10:29 2014 -0800

Allow for presence of reserved chars of >,<,& in name of object.

When it is converted to xml to send to ifmap-server, contents are
normalized so that ifmap server can receive and process it fine.

Change-Id: I8f42efe0164ca732ee6ed64d8b590b1b85068f86
Closes-Bug: #1394044
(cherry picked from commit a691cd84f826fe695515b07a03e40d4bfeebd0b6)

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.