Support consecutive slashes in RFC 8040 URIs 93/77693/5
authorJakub Morvay <jmorvay@frinx.io>
Mon, 12 Nov 2018 18:14:20 +0000 (19:14 +0100)
committerJakub Morvay <jmorvay@frinx.io>
Mon, 12 Nov 2018 18:30:59 +0000 (19:30 +0100)
commit1983ff03a3223ecb7c2f3537a70c592518474467
treebce71004e3ed804a904f0bd0268cd8635d54eccf
parente0348041c1759f520f1f2993cc139647a41fb29e
Support consecutive slashes in RFC 8040 URIs

Users often assume restconf URLs behave just as HTTP does by squashing
multiple slashes into a single one. Make sure we do not trigger an error
about an empty element in this case.

This deals with URIs in RFC 8040 restconf implementation.

NETCONF-24
Change-Id: I1c3a2085528e4177b09a2d330a6b05bb1b100147
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/YangInstanceIdentifierDeserializer.java
restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/YangInstanceIdentifierDeserializerTest.java