<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:14:42 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>[NETCONF-316] Netconf MD-SAL connector is treating prefixed XML as invalid</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-316</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;Logic in EditConfig is imposing requirements not defined by RFC (or at least I can&apos;t find such restriction).&lt;br/&gt;
It is required for rpc element (or its children) to NOT have XML prefix.&lt;/p&gt;

&lt;p&gt;There are tools (eg. python ncclient) and devices (eg. &lt;a href=&quot;https://www.juniper.net/documentation/en_US/junos15.1/topics/concept/netconf-session-rfc-compliant.html#jd0e89&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.juniper.net/documentation/en_US/junos15.1/topics/concept/netconf-session-rfc-compliant.html#jd0e89&lt;/a&gt;) which allows to use prefixed rpc elements and thus rendering connector-netconf-mdsal incompatible with them.&lt;/p&gt;

&lt;p&gt;This is message as received by ODL:&lt;br/&gt;
&amp;lt;nc:rpc xmlns:nc=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot; message-id=&quot;urn:uuid:2fd6f8c7-b266-429c-97cb-3887c8cab01e&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;nc:edit-config&amp;gt;&lt;br/&gt;
    &amp;lt;nc:target&amp;gt;&lt;br/&gt;
      &amp;lt;nc:candidate/&amp;gt;&lt;br/&gt;
    &amp;lt;/nc:target&amp;gt;&lt;br/&gt;
    &amp;lt;nc:default-operation&amp;gt;merge&amp;lt;/nc:default-operation&amp;gt;&lt;br/&gt;
    &amp;lt;config&amp;gt;&lt;br/&gt;
      &amp;lt;network-topology xmlns=&quot;urn:TBD:params:xml:ns:yang:network-topology&quot;&amp;gt;&lt;br/&gt;
        &amp;lt;topology&amp;gt;&lt;br/&gt;
          &amp;lt;topology-id&amp;gt;11&amp;lt;/topology-id&amp;gt;&lt;br/&gt;
        &amp;lt;/topology&amp;gt;&lt;br/&gt;
      &amp;lt;/network-topology&amp;gt;&lt;br/&gt;
    &amp;lt;/config&amp;gt;&lt;br/&gt;
  &amp;lt;/nc:edit-config&amp;gt;&lt;br/&gt;
&amp;lt;/nc:rpc&amp;gt;&lt;/p&gt;

&lt;p&gt;Note &quot;nc&quot; prefix on root element.&lt;/p&gt;

&lt;p&gt;This is error :&lt;/p&gt;

&lt;p&gt;Error occurred while processing message&lt;br/&gt;
NetconfDocumentedException{message=Missing target element, errorType=rpc, errorTag=missing_attribute, errorSeverity=error, errorInfo={}}&lt;br/&gt;
    at org.opendaylight.netconf.mdsal.connector.ops.EditConfig.extractTargetParameter(EditConfig.java:196)&lt;span class=&quot;error&quot;&gt;&amp;#91;291:org.opendaylight.netconf.mdsal-netconf-connector:1.1.1.Boron-SR1&amp;#93;&lt;/span&gt;&lt;br/&gt;
    at org.opendaylight.netconf.mdsal.connector.ops.EditConfig.handleWithNoSubsequentOperations(EditConfig.java:67)&lt;span class=&quot;error&quot;&gt;&amp;#91;291:org.opendaylight.netconf.mdsal-netconf-connector:1.1.1.Boron-SR1&amp;#93;&lt;/span&gt;&lt;br/&gt;
    at org.opendaylight.netconf.util.mapping.AbstractSingletonNetconfOperation.handle(AbstractSingletonNetconfOperation.java:26)&lt;span class=&quot;error&quot;&gt;&amp;#91;149:org.opendaylight.netconf.util:1.1.1.Boron-SR1&amp;#93;&lt;/span&gt;&lt;br/&gt;
    at org.opendaylight.netconf.util.mapping.AbstractNetconfOperation.handle(AbstractNetconfOperation.java:101)&lt;span class=&quot;error&quot;&gt;&amp;#91;149:org.opendaylight.netconf.util:1.1.1.Boron-SR1&amp;#93;&lt;/span&gt;&lt;br/&gt;
    at org.opendaylight.netconf.impl.osgi.NetconfOperationRouterImpl$NetconfOperationExecution.execute(NetconfOperationRouterImpl.java:182)&lt;span class=&quot;error&quot;&gt;&amp;#91;155:org.opendaylight.netconf.impl:1.1.1.Boron-SR1&amp;#93;&lt;/span&gt;&lt;/p&gt;



&lt;p&gt;I think problem is here:&lt;br/&gt;
&lt;a href=&quot;https://github.com/opendaylight/netconf/blob/stable/boron/netconf/mdsal-netconf-connector/src/main/java/org/opendaylight/netconf/mdsal/connector/ops/EditConfig.java#L193&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/opendaylight/netconf/blob/stable/boron/netconf/mdsal-netconf-connector/src/main/java/org/opendaylight/netconf/mdsal/connector/ops/EditConfig.java#L193&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Element#getElementsByTagName() returns empty NodeList, because &quot;target&quot; element is in non-empty namespace.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="21329">NETCONF-316</key>
            <summary>Netconf MD-SAL connector is treating prefixed XML as invalid</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <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="10000">Done</resolution>
                                        <assignee username="adetalhouet">Alexis de Talhou&#235;t</assignee>
                                    <reporter username="rkosegi@brocade.com">Richard Kosegi</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 Nov 2016 12:23:00 +0000</created>
                <updated>Fri, 15 Mar 2019 22:22:33 +0000</updated>
                            <resolved>Fri, 13 Oct 2017 09:50:33 +0000</resolved>
                                                                    <component>netconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="39710" author="adetalhouet" created="Fri, 18 Nov 2016 15:53:03 +0000"  >&lt;p&gt;Proposed fix: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/48483/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/48483/&lt;/a&gt;&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_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7176</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=7176]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Bug]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i01xsf:</customfieldvalue>

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