<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:14:50 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-365] NPE when posting using XML</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-365</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;During test under bgp observed that&lt;/p&gt;

&lt;p&gt;doing &lt;/p&gt;

&lt;p&gt;Put &lt;br/&gt;
&lt;a href=&quot;http://localhost:8181/restconf/config/bgp-linkstate-app-config:bgp-linkstate-app-config&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/restconf/config/bgp-linkstate-app-config:bgp-linkstate-app-config&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;iana-linkstate-attribute-type xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:linkstate-app-config&quot;&amp;gt;false&amp;lt;/iana-linkstate-attribute-type&amp;gt;&lt;/p&gt;

&lt;p&gt;Will behave as expected. &lt;/p&gt;

&lt;p&gt;Then if we proceed to check the stored information &lt;/p&gt;

&lt;p&gt;Get &lt;br/&gt;
&lt;a href=&quot;http://localhost:8181/restconf/config/bgp-linkstate-app-config:bgp-linkstate-app-config&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/restconf/config/bgp-linkstate-app-config:bgp-linkstate-app-config&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;errors xmlns=&quot;urn:ietf:params:xml:ns:yang:ietf-restconf&quot;&amp;gt;&lt;br/&gt;
    &amp;lt;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;data-missing&amp;lt;/error-tag&amp;gt;&lt;br/&gt;
        &amp;lt;error-message&amp;gt;Request could not be completed because the relevant data model content does not exist &amp;lt;/error-message&amp;gt;&lt;br/&gt;
    &amp;lt;/error&amp;gt;&lt;br/&gt;
&amp;lt;/errors&amp;gt;&lt;/p&gt;

&lt;p&gt;Also if we try to do an update through&lt;/p&gt;

&lt;p&gt;Post &lt;br/&gt;
&lt;a href=&quot;http://localhost:8181/restconf/config/bgp-linkstate-app-config:bgp-linkstate-app-config&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/restconf/config/bgp-linkstate-app-config:bgp-linkstate-app-config&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;&amp;lt;iana-linkstate-attribute-type xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:linkstate-app-config&quot;&amp;gt;true&amp;lt;/iana-linkstate-attribute-type&amp;gt;&lt;/p&gt;

&lt;p&gt;will end on&lt;/p&gt;

&lt;p&gt;&amp;lt;html&amp;gt;&lt;br/&gt;
    &amp;lt;head&amp;gt;&lt;br/&gt;
        &amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot;/&amp;gt;&lt;br/&gt;
        &amp;lt;title&amp;gt;Error 500 Server Error&amp;lt;/title&amp;gt;&lt;br/&gt;
    &amp;lt;/head&amp;gt;&lt;br/&gt;
    &amp;lt;body&amp;gt;&lt;br/&gt;
        &amp;lt;h2&amp;gt;HTTP ERROR 500&amp;lt;/h2&amp;gt;&lt;br/&gt;
        &amp;lt;p&amp;gt;Problem accessing /restconf/config/bgp-linkstate-app-config:bgp-linkstate-app-config. Reason:&lt;/p&gt;

&lt;p&gt;            &amp;lt;pre&amp;gt;    Server Error&amp;lt;/pre&amp;gt;&lt;br/&gt;
        &amp;lt;/p&amp;gt;&lt;br/&gt;
        &amp;lt;h3&amp;gt;Caused by:&amp;lt;/h3&amp;gt;&lt;br/&gt;
        &amp;lt;pre&amp;gt;java.lang.NullPointerException&lt;br/&gt;
	at org.opendaylight.controller.cluster.databroker.AbstractDOMBrokerWriteTransaction.checkInstanceIdentifierReferencesData(AbstractDOMBrokerWriteTransaction.java:87)&lt;br/&gt;
	at org.opendaylight.controller.cluster.databroker.AbstractDOMBrokerWriteTransaction.put(AbstractDOMBrokerWriteTransaction.java:79)&lt;br/&gt;
	at org.opendaylight.netconf.sal.restconf.impl.BrokerFacade.simplePostPut(BrokerFacade.java:884)&lt;br/&gt;
	at org.opendaylight.netconf.sal.restconf.impl.BrokerFacade.makeNormalPost(BrokerFacade.java:876)&lt;br/&gt;
	at org.opendaylight.netconf.sal.restconf.impl.BrokerFacade.postData(BrokerFacade.java:682)&lt;br/&gt;
	at org.opendaylight.netconf.sal.restconf.impl.BrokerFacade.postDataViaTransaction(BrokerFacade.java:664)&lt;br/&gt;
	at org.opendaylight.netconf.sal.restconf.impl.BrokerFacade.commitConfigurationDataPost(BrokerFacade.java:454)&lt;br/&gt;
	at org.opendaylight.netconf.sal.restconf.impl.RestconfImpl.createConfigurationData(RestconfImpl.java:998)&lt;br/&gt;
	at org.opendaylight.netconf.sal.restconf.impl.RestconfImpl.createConfigurationData(RestconfImpl.java:914)&lt;br/&gt;
	at org.opendaylight.netconf.sal.restconf.impl.StatisticsRestconfServiceWrapper.createConfigurationData(StatisticsRestconfServiceWrapper.java:156)&lt;br/&gt;
	at org.opendaylight.netconf.sal.rest.impl.RestconfCompositeWrapper.createConfigurationData(RestconfCompositeWrapper.java:92)&lt;br/&gt;
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br/&gt;
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;br/&gt;
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;br/&gt;
	at java.lang.reflect.Method.invoke(Method.java:498)&lt;br/&gt;
	at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)&lt;br/&gt;
	at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)&lt;br/&gt;
	at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)&lt;br/&gt;
	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)&lt;br/&gt;
	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)&lt;br/&gt;
	at com.sun.jersey.server.impl.uri.rules.ResourceObjectRule.accept(ResourceObjectRule.java:100)&lt;br/&gt;
	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)&lt;br/&gt;
	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)&lt;br/&gt;
	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)&lt;br/&gt;
	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)&lt;br/&gt;
	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)&lt;br/&gt;
	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)&lt;br/&gt;
	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)&lt;br/&gt;
	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)&lt;br/&gt;
	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)&lt;br/&gt;
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)&lt;br/&gt;
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)&lt;/p&gt;




&lt;p&gt;Updated Model&lt;/p&gt;

&lt;p&gt;module bgp-linkstate-app-config {&lt;br/&gt;
    yang-version 1;&lt;br/&gt;
    namespace &quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:linkstate-app-config&quot;;&lt;br/&gt;
    prefix &quot;bgp-linkstate-app-config&quot;;&lt;/p&gt;

&lt;p&gt;    description&lt;br/&gt;
      &quot;Configuration for the BGP linkstate application.&quot;;&lt;/p&gt;

&lt;p&gt;    revision &quot;2016-06-14&quot; &lt;/p&gt;
{
        description
            &quot;Initial revision.&quot;;
    }

&lt;p&gt;    container bgp-linkstate-app-config {&lt;br/&gt;
        leaf iana-linkstate-attribute-type &lt;/p&gt;
{
            description &quot;If true (default) linkstate attribute type (=29) allocated by IANA is used,
                         else type (=99) is used for parsing/serialization&quot;;
            type boolean;
            default true;
        }
&lt;p&gt;    }&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="21378">NETCONF-365</key>
            <summary>NPE when posting using XML</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="matus.kubica@pantheon.tech">Mat&#250;&#353; Kubica</assignee>
                                    <reporter username="cdgasparini">Claudio David Gasparini</reporter>
                        <labels>
                    </labels>
                <created>Wed, 8 Mar 2017 12:48:18 +0000</created>
                <updated>Fri, 15 Mar 2019 22:22:36 +0000</updated>
                            <resolved>Sat, 10 Jun 2017 20:23:37 +0000</resolved>
                                                                    <component>restconf-nb</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="39894" author="rovarga" created="Tue, 14 Mar 2017 18:57:41 +0000"  >&lt;p&gt;The problem is that for some reason NormalizedNodeContext is initialized with null data.&lt;/p&gt;</comment>
                            <comment id="39895" author="ivan.hrasko@pantheon.tech" created="Fri, 5 May 2017 13:21:49 +0000"  >&lt;p&gt;Hint:&lt;br/&gt;
Please note that second operation is POST (first was PUT).&lt;br/&gt;
In general when doing POST different data should be used than with PUT.&lt;/p&gt;</comment>
                            <comment id="39896" author="matus.kubica@pantheon.tech" created="Wed, 10 May 2017 15:24:34 +0000"  >&lt;p&gt;PUT&lt;br/&gt;
&lt;a href=&quot;http://localhost:8181/restconf/config/instance-identifier-patch-module:bgp-linkstate-app-config&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/restconf/config/instance-identifier-patch-module:bgp-linkstate-app-config&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;works with correctly formed body:&lt;/p&gt;

&lt;p&gt;&amp;lt;bgp-linkstate-app-config xmlns=&quot;instance:identifier:patch:module&quot;&amp;gt;	&lt;br/&gt;
	&amp;lt;iana-linkstate-attribute-type&amp;gt;false&amp;lt;/iana-linkstate-attribute-type&amp;gt;&lt;br/&gt;
&amp;lt;/bgp-linkstate-app-config&amp;gt;&lt;/p&gt;

&lt;p&gt;Then there is also possibility to perform GET succesfully.&lt;/p&gt;</comment>
                            <comment id="39897" author="rovarga" created="Wed, 10 May 2017 15:35:24 +0000"  >&lt;p&gt;Well, malformed request should not be causing a NPE nor a 500 response, but rather indicate what&apos;s wrong with the request...&lt;/p&gt;</comment>
                            <comment id="39898" author="ivan.hrasko@pantheon.tech" created="Fri, 19 May 2017 12:43:22 +0000"  >&lt;p&gt;Prevent NPE with POST when data is leaf:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/57425&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/57425&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="39899" author="ivan.hrasko@pantheon.tech" created="Tue, 23 May 2017 07:16:12 +0000"  >&lt;p&gt;Prevent not well formatted PUT: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/57362&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/57362&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="39900" author="ivan.hrasko@pantheon.tech" created="Tue, 23 May 2017 13:09:58 +0000"  >&lt;p&gt;carbon:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/57684/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/57684/&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/57683/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/57683/&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>7933</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=7933]]></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_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10324"><![CDATA[Carbon-SR1]]></customfieldvalue>

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

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