<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:14:15 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-134] NullPointerException when entering data with undefined element at first level</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-134</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;Tested on: stable/beryllium&lt;br/&gt;
Caught by: MDSAL Northbound suite (&lt;a href=&quot;https://git.opendaylight.org/gerrit/33643/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/33643/&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;1. Make sure odl-clustering-test-app is NOT installed.&lt;br/&gt;
2. Open a Netconf connection to ODL and send the following request:&lt;/p&gt;

&lt;p&gt;&amp;lt;rpc message-id=&quot;2&quot; a=&quot;64&quot; xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;edit-config&amp;gt;&lt;br/&gt;
    &amp;lt;target&amp;gt;&lt;br/&gt;
      &amp;lt;candidate/&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;cars xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:config:sal-clustering-it:car&quot;&amp;gt;&lt;br/&gt;
        &amp;lt;car-entry&amp;gt;&lt;br/&gt;
          &amp;lt;id&amp;gt;TOY001&amp;lt;/id&amp;gt;&lt;br/&gt;
          &amp;lt;model&amp;gt;Toyota Corolla&amp;lt;/model&amp;gt;&lt;br/&gt;
          &amp;lt;manufacturer&amp;gt;Toyota&amp;lt;/manufacturer&amp;gt;&lt;br/&gt;
          &amp;lt;year&amp;gt;2016&amp;lt;/year&amp;gt;&lt;br/&gt;
          &amp;lt;category&amp;gt;sedan&amp;lt;/category&amp;gt;&lt;br/&gt;
        &amp;lt;/car-entry&amp;gt;&lt;br/&gt;
      &amp;lt;/cars&amp;gt;&lt;br/&gt;
      &amp;lt;people xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:config:sal-clustering-it:people&quot;&amp;gt;&lt;br/&gt;
        &amp;lt;person&amp;gt;&lt;br/&gt;
          &amp;lt;id&amp;gt;CUST001&amp;lt;/id&amp;gt;&lt;br/&gt;
          &amp;lt;age&amp;gt;32&amp;lt;/age&amp;gt;&lt;br/&gt;
        &amp;lt;/person&amp;gt;&lt;br/&gt;
      &amp;lt;/people&amp;gt;&lt;br/&gt;
      &amp;lt;car-people xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:config:sal-clustering-it:car-people&quot;&amp;gt;&lt;br/&gt;
        &amp;lt;car-person&amp;gt;&lt;br/&gt;
          &amp;lt;car-id&amp;gt;TOY001&amp;lt;/car-id&amp;gt;&lt;br/&gt;
          &amp;lt;person-id&amp;gt;CUST001&amp;lt;/person-id&amp;gt;&lt;br/&gt;
        &amp;lt;/car-person&amp;gt;&lt;br/&gt;
      &amp;lt;/car-people&amp;gt;&lt;br/&gt;
    &amp;lt;/config&amp;gt;&lt;br/&gt;
  &amp;lt;/edit-config&amp;gt;&lt;br/&gt;
&amp;lt;/rpc&amp;gt;&lt;/p&gt;

&lt;p&gt;3. You will get the following response:&lt;/p&gt;

&lt;p&gt;&amp;lt;rpc-reply a=&quot;64&quot; message-id=&quot;2&quot; xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;rpc-error&amp;gt;&lt;br/&gt;
    &amp;lt;error-type&amp;gt;application&amp;lt;/error-type&amp;gt;&lt;br/&gt;
    &amp;lt;error-tag&amp;gt;operation-failed&amp;lt;/error-tag&amp;gt;&lt;br/&gt;
    &amp;lt;error-severity&amp;gt;error&amp;lt;/error-severity&amp;gt;&lt;br/&gt;
    &amp;lt;error-message&amp;gt;Unexpected error&amp;lt;/error-message&amp;gt;&lt;br/&gt;
    &amp;lt;error-info&amp;gt;&lt;br/&gt;
      &amp;lt;error&amp;gt;java.lang.NullPointerException&amp;lt;/error&amp;gt;&lt;br/&gt;
    &amp;lt;/error-info&amp;gt;&lt;br/&gt;
  &amp;lt;/rpc-error&amp;gt;&lt;br/&gt;
&amp;lt;/rpc-reply&amp;gt;&lt;/p&gt;

&lt;p&gt;I expected something along the lines of &quot;Element &apos;cars&apos; not found&quot; or &quot;No model for element &apos;cars&apos; found&quot; or even &quot;Unknown child element(s) ... &apos;cars&apos; ...&quot;. Or something mentioning &quot;people&quot; or &quot;car-people&quot; or even their namespaces (urn:opendaylight:params:xml:ns:yang:controller:config:sal-clustering-it:&lt;/p&gt;
{car|people|car-people}
&lt;p&gt;).&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="21147">NETCONF-134</key>
            <summary>NullPointerException when entering data with undefined element at first level</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="tcere">Tomas Cere</assignee>
                                    <reporter username="jbehran@cisco.com">Jozef Behran</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Jan 2016 09:24:45 +0000</created>
                <updated>Fri, 15 Mar 2019 22:22:19 +0000</updated>
                            <resolved>Wed, 24 Feb 2016 15:35:36 +0000</resolved>
                                                                    <component>netconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="39161" author="jbehran@cisco.com" created="Thu, 28 Jan 2016 09:24:45 +0000"  >&lt;p&gt;Attachment karaf.log.xz has been added with description: Compressed log from the test run exhibiting the bug&lt;/p&gt;</comment>
                            <comment id="39158" author="jbehran@cisco.com" created="Thu, 28 Jan 2016 09:50:05 +0000"  >&lt;p&gt;I suspect the problem is caused by the element in the nonexistent namespace being in the first level (directly contained in &amp;lt;config&amp;gt;). I came to this conclusion after realizing that this request works (with the odl-clustering-test-app feature installed) (note the bogus element is contained within a valid element):&lt;/p&gt;

&lt;p&gt;&amp;lt;rpc message-id=&quot;2&quot; xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;edit-config&amp;gt;&lt;br/&gt;
    &amp;lt;target&amp;gt;&lt;br/&gt;
      &amp;lt;candidate/&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;cars xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:config:sal-clustering-it:car&quot;&amp;gt;&lt;br/&gt;
        &amp;lt;does-not-exist xmlns=&quot;urn:this:is:in:a:nonexistent:namespace&quot;&amp;gt;&lt;br/&gt;
          &amp;lt;entry&amp;gt;&lt;br/&gt;
            &amp;lt;id&amp;gt;TOY001&amp;lt;/id&amp;gt;&lt;br/&gt;
            &amp;lt;name&amp;gt;Some Toy&amp;lt;/name&amp;gt;&lt;br/&gt;
            &amp;lt;year&amp;gt;2016&amp;lt;/year&amp;gt;&lt;br/&gt;
            &amp;lt;category&amp;gt;toys&amp;lt;/category&amp;gt;&lt;br/&gt;
          &amp;lt;/entry&amp;gt;&lt;br/&gt;
        &amp;lt;/does-not-exist&amp;gt;&lt;br/&gt;
      &amp;lt;/cars&amp;gt;&lt;br/&gt;
    &amp;lt;/config&amp;gt;&lt;br/&gt;
  &amp;lt;/edit-config&amp;gt;&lt;br/&gt;
&amp;lt;/rpc&amp;gt;&lt;/p&gt;

&lt;p&gt;which gives this reply:&lt;/p&gt;

&lt;p&gt;&amp;lt;rpc-reply message-id=&quot;2&quot; xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;rpc-error&amp;gt;&lt;br/&gt;
    &amp;lt;error-type&amp;gt;application&amp;lt;/error-type&amp;gt;&lt;br/&gt;
    &amp;lt;error-tag&amp;gt;operation-failed&amp;lt;/error-tag&amp;gt;&lt;br/&gt;
    &amp;lt;error-severity&amp;gt;error&amp;lt;/error-severity&amp;gt;&lt;br/&gt;
    &amp;lt;error-message&amp;gt;Unexpected error&amp;lt;/error-message&amp;gt;&lt;br/&gt;
    &amp;lt;error-info&amp;gt;&lt;br/&gt;
      &amp;lt;error&amp;gt;java.lang.IllegalStateException: Unknown child(ren) node(s) detected, identified by: (urn:this:is:in:a:nonexistent:namespace)does-not-exist, in: container cars&amp;lt;/error&amp;gt;&lt;br/&gt;
    &amp;lt;/error-info&amp;gt;&lt;br/&gt;
  &amp;lt;/rpc-error&amp;gt;&lt;br/&gt;
&amp;lt;/rpc-reply&amp;gt;&lt;/p&gt;

&lt;p&gt;(note that the &amp;lt;error&amp;gt; element mentions both, &quot;urn:this:is:in:a:nonexistent:namespace&quot; and &quot;does-not-exist&quot;)&lt;/p&gt;

&lt;p&gt;while this request (note that the bogus element is directly under &amp;lt;config&amp;gt;):&lt;/p&gt;

&lt;p&gt;&amp;lt;rpc message-id=&quot;2&quot; xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;edit-config&amp;gt;&lt;br/&gt;
    &amp;lt;target&amp;gt;&lt;br/&gt;
      &amp;lt;candidate/&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;does-not-exist xmlns=&quot;urn:this:is:in:a:nonexistent:namespace&quot;&amp;gt;&lt;br/&gt;
        &amp;lt;entry&amp;gt;&lt;br/&gt;
          &amp;lt;id&amp;gt;TOY001&amp;lt;/id&amp;gt;&lt;br/&gt;
          &amp;lt;name&amp;gt;Some Toy&amp;lt;/name&amp;gt;&lt;br/&gt;
          &amp;lt;year&amp;gt;2016&amp;lt;/year&amp;gt;&lt;br/&gt;
          &amp;lt;category&amp;gt;toys&amp;lt;/category&amp;gt;&lt;br/&gt;
        &amp;lt;/entry&amp;gt;&lt;br/&gt;
      &amp;lt;/does-not-exist&amp;gt;&lt;br/&gt;
    &amp;lt;/config&amp;gt;&lt;br/&gt;
  &amp;lt;/edit-config&amp;gt;&lt;br/&gt;
&amp;lt;/rpc&amp;gt;&lt;/p&gt;

&lt;p&gt;results in &quot;java.lang.NullPointerException&quot; in the &amp;lt;error&amp;gt; tag.&lt;/p&gt;</comment>
                            <comment id="39159" author="jbehran@cisco.com" created="Thu, 28 Jan 2016 09:56:11 +0000"  >&lt;p&gt;Added a testcase against this into the MD-SAL suite: &lt;a href=&quot;https://git.opendaylight.org/gerrit/33685&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/33685&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="39160" author="tcere" created="Tue, 2 Feb 2016 14:30:05 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/33904/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/33904/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12651" name="karaf.log.xz" size="12856" author="jbehran@cisco.com" created="Thu, 28 Jan 2016 09:24:45 +0000"/>
                    </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>5125</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=5125]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10328"><![CDATA[Beryllium-RC2]]></customfieldvalue>

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

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