clicon / clixon

YANG-based toolchain including NETCONF and RESTCONF interfaces and an interactive CLI
http://www.clicon.org/
Other
215 stars 72 forks source link

clixon_netconf errors on client XML Declaration with valid encoding spec #250

Closed pheller closed 3 years ago

pheller commented 3 years ago

While testing the MG-SOFT NetConf browser, I was receiving the error:

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <rpc-error>
    <error-type>rpc</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>Unsupported XML encoding: utf-8 expected UTF-8</error-message>
  </rpc-error>
</rpc-reply>

However, W3C XML 1.0 4th ed 4.3.3 states "XML processors SHOULD match character encoding names in a case-insensitive way ..." and so lowercase "utf-8" should probably be accepted.