NETCONF-539: use netconf namespace in base:1.1 capability check 98/71298/2
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:10:43 +0000 (14:10 +0200)
commit9d9e45067bab572cbaf79587ed2b8bc20ec39d7a
treeaed627bd9bf9002ce5f6768b90846fcb0e86ed0b
parent4ad8c8f798f194cc2c21212d8e5f0934d1a25306
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]