NETCONF-539: use netconf namespace in base:1.1 capability check 96/71296/4
authorMarek Gradzki <mgradzki@cisco.com>
Wed, 25 Apr 2018 07:32:57 +0000 (09:32 +0200)
committerMarek Gradzki <mgradzki@cisco.com>
Thu, 26 Apr 2018 12:13:10 +0000 (12:13 +0000)
commite9f8d46514dd362c8d9ebbeb403ffb82e5927bb3
tree8f8331a40909ca4dd5591feb61308f409c238a01
parente3587a40d49cf954eec207f999bdfd5af9471c54
NETCONF-539: use netconf namespace in base:1.1 capability check

Use Document.getElementsByTagNameNSgetElementsByTagNameNS
with urn:ietf:params:xml:ns:netconf:base:1.0 namespace

instead of getElementsByTagName

to support clients using namespace prefixes in the hello message.

Change-Id: I333bb4522aca566b74db3e4411be1c90ec419aec
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
netconf/netconf-netty-util/pom.xml
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/AbstractNetconfSessionNegotiator.java
netconf/netconf-netty-util/src/test/java/org/opendaylight/netconf/nettyutil/Netconf539Test.java [new file with mode: 0644]
netconf/netconf-netty-util/src/test/resources/netconf539/client_hello_1.1.xml [new file with mode: 0644]
netconf/netconf-netty-util/src/test/resources/netconf539/client_hello_1.1_ns.xml [new file with mode: 0644]