<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:55:05 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[YANGTOOLS-1064] Restconf / SAXParseException errors on XML payload with nested &lt;config&gt;...&lt;/config&gt; statements</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-1064</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;The error in question is this:&lt;br/&gt;
XmlNormalizedNodeBodyReader | 362 - org.opendaylight.netconf.restconf-nb-bierman02 - 1.8.1 | - | Error parsing xml input&lt;br/&gt;
org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.&lt;/p&gt;

&lt;p&gt;...which appears in Fluorine-SR1 (2.0.12), but not Fluorine-SR3 (2.0.20), and not Nitrogen-SR3 (...older).&lt;/p&gt;

&lt;p&gt;It applies to XML payloads submitted via restconf where there are multiple &quot;nested&quot; &amp;lt;config&amp;gt; .. &amp;lt;/config&amp;gt; sections.&lt;/p&gt;


&lt;p&gt;Example POST that triggers the parsing error:&lt;br/&gt;
POST &lt;a href=&quot;http://controller:8181/restconf/operations/network-topology:network-topology/topology/topology-netconf/node/node/yang-ext:mount/ietf-netconf:edit-config&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://controller:8181/restconf/operations/network-topology:network-topology/topology/topology-netconf/node/node/yang-ext:mount/ietf-netconf:edit-config&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;br/&gt;
&amp;lt;rpc xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot; xmlns:nc=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&amp;gt;&lt;br/&gt;
    &amp;lt;target&amp;gt;&lt;br/&gt;
        &amp;lt;running /&amp;gt;&lt;br/&gt;
    &amp;lt;/target&amp;gt;&lt;br/&gt;
    &amp;lt;default-operation&amp;gt;merge&amp;lt;/default-operation&amp;gt;&lt;br/&gt;
    &amp;lt;config&amp;gt;&lt;br/&gt;
        &amp;lt;lldp xmlns=&quot;http://openconfig.net/yang/lldp&quot;&amp;gt;&lt;br/&gt;
            &amp;lt;interfaces&amp;gt;&lt;br/&gt;
                &amp;lt;interface&amp;gt;&lt;br/&gt;
                    &amp;lt;name&amp;gt;Ethernet1&amp;lt;/name&amp;gt;&lt;br/&gt;
                    &amp;lt;config&amp;gt;&lt;br/&gt;
                        &amp;lt;enabled&amp;gt;false&amp;lt;/enabled&amp;gt;&lt;br/&gt;
                    &amp;lt;/config&amp;gt;&lt;br/&gt;
                &amp;lt;/interface&amp;gt;&lt;br/&gt;
            &amp;lt;/interfaces&amp;gt;&lt;br/&gt;
        &amp;lt;/lldp&amp;gt;&lt;br/&gt;
        &amp;lt;interfaces xmlns=&quot;http://openconfig.net/yang/interfaces&quot;&amp;gt;&lt;br/&gt;
            &amp;lt;interface&amp;gt;&lt;br/&gt;
                &amp;lt;name&amp;gt;Ethernet1&amp;lt;/name&amp;gt;&lt;br/&gt;
                &amp;lt;config&amp;gt;&lt;br/&gt;
                    &amp;lt;description&amp;gt;test1&amp;lt;/description&amp;gt;&lt;br/&gt;
                    &amp;lt;name&amp;gt;Ethernet1&amp;lt;/name&amp;gt;&lt;br/&gt;
                    &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br/&gt;
                    &amp;lt;tpid xmlns=&quot;http://openconfig.net/yang/vlan&quot;&amp;gt;TPID_0X88A8&amp;lt;/tpid&amp;gt;&lt;br/&gt;
                &amp;lt;/config&amp;gt;&lt;br/&gt;
                &amp;lt;ethernet xmlns=&quot;http://openconfig.net/yang/interfaces/ethernet&quot;&amp;gt;&lt;br/&gt;
                    &amp;lt;config&amp;gt;&lt;br/&gt;
                        &amp;lt;port-speed&amp;gt;SPEED_1GB&amp;lt;/port-speed&amp;gt;&lt;br/&gt;
                        &amp;lt;duplex-mode&amp;gt;FULL&amp;lt;/duplex-mode&amp;gt;&lt;br/&gt;
                        &amp;lt;auto-negotiate&amp;gt;true&amp;lt;/auto-negotiate&amp;gt;&lt;br/&gt;
                    &amp;lt;/config&amp;gt;&lt;br/&gt;
                    &amp;lt;switched-vlan xmlns=&quot;http://openconfig.net/yang/vlan&quot;&amp;gt;&lt;br/&gt;
                        &amp;lt;config&amp;gt;&lt;br/&gt;
                            &amp;lt;interface-mode&amp;gt;TRUNK&amp;lt;/interface-mode&amp;gt;&lt;br/&gt;
                            &amp;lt;trunk-vlans nc:operation=&quot;replace&quot; /&amp;gt;&lt;br/&gt;
                        &amp;lt;/config&amp;gt;&lt;br/&gt;
                        &amp;lt;vlan-translation xmlns=&quot;http://arista.com/yang/vlan-translation&quot;&amp;gt;&lt;br/&gt;
                            &amp;lt;config&amp;gt;&lt;br/&gt;
                                &amp;lt;ingress-mapping-required&amp;gt;true&amp;lt;/ingress-mapping-required&amp;gt;&lt;br/&gt;
                            &amp;lt;/config&amp;gt;&lt;br/&gt;
                        &amp;lt;/vlan-translation&amp;gt;&lt;br/&gt;
                    &amp;lt;/switched-vlan&amp;gt;&lt;br/&gt;
                &amp;lt;/ethernet&amp;gt;&lt;br/&gt;
            &amp;lt;/interface&amp;gt;&lt;br/&gt;
        &amp;lt;/interfaces&amp;gt;&lt;br/&gt;
        &amp;lt;arista xmlns=&quot;http://arista.com/yang/experimental/eos&quot;&amp;gt;&lt;br/&gt;
            &amp;lt;eos&amp;gt;&lt;br/&gt;
                &amp;lt;qos xmlns=&quot;http://arista.com/yang/experimental/eos/qos&quot;&amp;gt;&lt;br/&gt;
                    &amp;lt;acl xmlns=&quot;http://arista.com/yang/experimental/eos/qos/acl&quot;&amp;gt;&lt;br/&gt;
                        &amp;lt;input&amp;gt;&lt;br/&gt;
                            &amp;lt;cli&amp;gt;&lt;br/&gt;
                                &amp;lt;pmapType&amp;gt;&lt;br/&gt;
                                    &amp;lt;type&amp;gt;mapQos&amp;lt;/type&amp;gt;&lt;br/&gt;
                                    &amp;lt;pmap&amp;gt;&lt;br/&gt;
                                        &amp;lt;name&amp;gt;test1&amp;lt;/name&amp;gt;&lt;br/&gt;
                                    &amp;lt;/pmap&amp;gt;&lt;br/&gt;
                                &amp;lt;/pmapType&amp;gt;&lt;br/&gt;
                            &amp;lt;/cli&amp;gt;&lt;br/&gt;
                        &amp;lt;/input&amp;gt;&lt;br/&gt;
                    &amp;lt;/acl&amp;gt;&lt;br/&gt;
                    &amp;lt;input xmlns=&quot;http://arista.com/yang/experimental/eos/qos/config&quot;&amp;gt;&lt;br/&gt;
                        &amp;lt;config&amp;gt;&lt;br/&gt;
                            &amp;lt;cli&amp;gt;&lt;br/&gt;
                                &amp;lt;servicePolicyConfig&amp;gt;&lt;br/&gt;
                                    &amp;lt;key-direction&amp;gt;input&amp;lt;/key-direction&amp;gt;&lt;br/&gt;
                                    &amp;lt;key-pmapName&amp;gt;test1&amp;lt;/key-pmapName&amp;gt;&lt;br/&gt;
                                    &amp;lt;key-type&amp;gt;mapQos&amp;lt;/key-type&amp;gt;&lt;br/&gt;
                                    &amp;lt;intfIds&amp;gt;&lt;br/&gt;
                                        &amp;lt;index&amp;gt;Ethernet1&amp;lt;/index&amp;gt;&lt;br/&gt;
                                        &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;&lt;br/&gt;
                                    &amp;lt;/intfIds&amp;gt;&lt;br/&gt;
                                &amp;lt;/servicePolicyConfig&amp;gt;&lt;br/&gt;
                            &amp;lt;/cli&amp;gt;&lt;br/&gt;
                        &amp;lt;/config&amp;gt;&lt;br/&gt;
                    &amp;lt;/input&amp;gt;&lt;br/&gt;
                &amp;lt;/qos&amp;gt;&lt;br/&gt;
            &amp;lt;/eos&amp;gt;&lt;br/&gt;
        &amp;lt;/arista&amp;gt;&lt;br/&gt;
    &amp;lt;/config&amp;gt;&lt;br/&gt;
&amp;lt;/rpc&amp;gt;&lt;/p&gt;


&lt;p&gt;Our folks noticed that this looks like something we could cherry-pick as a good match; looking for feedback here:&lt;br/&gt;
&lt;a href=&quot;https://jira.opendaylight.org/projects/YANGTOOLS/issues/YANGTOOLS-1002&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.opendaylight.org/projects/YANGTOOLS/issues/YANGTOOLS-1002&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Curious:  Affects-Versions in this JIRA form doesn&amp;#39;t list yangtools 2.0.12 as a valid match; fyi&amp;#93;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;Thanks;&lt;br/&gt;
-Jeff&lt;/p&gt;

</description>
                <environment></environment>
        <key id="32321">YANGTOOLS-1064</key>
            <summary>Restconf / SAXParseException errors on XML payload with nested &lt;config&gt;...&lt;/config&gt; statements</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.opendaylight.org/images/icons/priorities/critical.svg">High</priority>
                        <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10002">Duplicate</resolution>
                                        <assignee username="bvaradar">Balaji Varadaraju</assignee>
                                    <reporter username="malloc_failed">Jeff Hartley</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 Jan 2020 23:31:34 +0000</created>
                <updated>Fri, 10 Jan 2020 18:55:22 +0000</updated>
                            <resolved>Fri, 10 Jan 2020 18:55:22 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="67636" author="bvaradar" created="Thu, 9 Jan 2020 23:35:54 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=rovarga&quot; class=&quot;user-hover&quot; rel=&quot;rovarga&quot;&gt;rovarga&lt;/a&gt; Is the following fix addresses the same issue?&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/browse/YANGTOOLS-1002&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.opendaylight.org/browse/YANGTOOLS-1002&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/q/yangtools-1002&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/q/yangtools-1002&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="67637" author="bvaradar" created="Fri, 10 Jan 2020 00:36:43 +0000"  >&lt;p&gt;I think we need to pick this fix for this&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/c/yangtools/+/78479&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/c/yangtools/+/78479&lt;/a&gt;&lt;br/&gt;
&#160;&lt;/p&gt;</comment>
                            <comment id="67639" author="bvaradar" created="Fri, 10 Jan 2020 18:50:29 +0000"  >&lt;p&gt;As suspected&#160;&#160;&lt;a href=&quot;https://git.opendaylight.org/gerrit/c/yangtools/+/78479&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/c/yangtools/+/78479&lt;/a&gt;&#160;fixes this issue. This can be closed.&lt;/p&gt;</comment>
                            <comment id="67640" author="danieldelarosa" created="Fri, 10 Jan 2020 18:55:22 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=bvaradar&quot; class=&quot;user-hover&quot; rel=&quot;bvaradar&quot;&gt;bvaradar&lt;/a&gt; confirmed that this has been fixed already&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03qpj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>