BUG-672 Make Xml directory adapter skip initial config files with invalid xml. 44/5944/1
authorMaros Marsalek <mmarsale@cisco.com>
Mon, 7 Apr 2014 15:28:36 +0000 (17:28 +0200)
committerMaros Marsalek <mmarsale@cisco.com>
Mon, 7 Apr 2014 15:28:36 +0000 (17:28 +0200)
commitf0e885e5c9c39ffd530156460900f19fca477a39
tree975a2e2ddf9f7b953271ed521cc40fdb6ac5dd07
parent3999de580c783bb7a8b139780dbc6c9b6704b7c1
BUG-672 Make Xml directory adapter skip initial config files with invalid xml.

Issue a warning and continue to next file.

Change-Id: I1950eddc80b958f5887458ebeaa53b590506c31c
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
opendaylight/config/config-persister-directory-xml-adapter/src/main/java/org/opendaylight/controller/config/persist/storage/directory/xml/XmlDirectoryPersister.java
opendaylight/config/config-persister-directory-xml-adapter/src/test/java/org/opendaylight/controller/config/persist/storage/directory/xml/DirectoryStorageAdapterTest.java
opendaylight/config/config-persister-directory-xml-adapter/src/test/resources/twoFiles_corrupt/controller.config1.xml [new file with mode: 0644]
opendaylight/config/config-persister-directory-xml-adapter/src/test/resources/twoFiles_corrupt/controller.config2.xml [new file with mode: 0644]

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.