<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:14:28 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-221] ControllerContext#addKeyValue ignores key type when key is derived type from instance-identifier</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-221</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;The ovsdb.yang model includes:&lt;br/&gt;
&#8230;&lt;br/&gt;
    typedef ovsdb-bridge-ref &lt;/p&gt;
{
        description &quot;A reference to an ovsdb bridge&quot;;
        type instance-identifier;
    }
&lt;p&gt;&#8230;&lt;br/&gt;
        list managed-node-entry {&lt;br/&gt;
            key &quot;bridge-ref&quot;;&lt;br/&gt;
            leaf bridge-ref &lt;/p&gt;
{
                type ovsdb-bridge-ref;
            }
&lt;p&gt;        }&lt;br/&gt;
&#8230;&lt;/p&gt;

&lt;p&gt;Using the md-sal apidocs explorer, I enter the following for doing a GET on managed-node-entry with a bridge-ref key value:&lt;/p&gt;

&lt;p&gt;topology-id:        ovsdb:1&lt;br/&gt;
node-id:               ovsdb:HOST1&lt;br/&gt;
bridge-ref:           /network-topology:network-topology/network-topology:topology&lt;span class=&quot;error&quot;&gt;&amp;#91;network-topology:topology-id=&amp;#39;ovsdb:1&amp;#39;&amp;#93;&lt;/span&gt;/network-topology:node&lt;span class=&quot;error&quot;&gt;&amp;#91;network-topology:node-id=&amp;#39;ovsdb:HOST1/bridge/br-test&amp;#39;&amp;#93;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;This is what the resulting request URL looks like:&lt;br/&gt;
&lt;a href=&quot;http://localhost:8181/restconf/config/network-topology:network-topology/topology/ovsdb%3A1/node/ovsdb%3AHOST1/ovsdb:managed-node-entry/%2Fnetwork-topology%3Anetwork-topology%2Fnetwork-topology%3Atopology%5Bnetwork-topology%3Atopology-id%3D&amp;#39;ovsdb%3A1&amp;#39;%5D%2Fnetwork-topology%3Anode%5Bnetwork-topology%3Anode-id%3D&amp;#39;ovsdb%3AHOST1%2Fbridge%2Fbr-test&amp;#39;%5D/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/restconf/config/network-topology:network-topology/topology/ovsdb%3A1/node/ovsdb%3AHOST1/ovsdb:managed-node-entry/%2Fnetwork-topology%3Anetwork-topology%2Fnetwork-topology%3Atopology%5Bnetwork-topology%3Atopology-id%3D&apos;ovsdb%3A1&apos;%5D%2Fnetwork-topology%3Anode%5Bnetwork-topology%3Anode-id%3D&apos;ovsdb%3AHOST1%2Fbridge%2Fbr-test&apos;%5D/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The response code to the request is 400 and the response body is&lt;br/&gt;
{&lt;br/&gt;
  &quot;errors&quot;: {&lt;br/&gt;
    &quot;error&quot;: [&lt;/p&gt;
      {
        &quot;error-type&quot;: &quot;protocol&quot;,
        &quot;error-tag&quot;: &quot;invalid-value&quot;,
        &quot;error-message&quot;: &quot;/network-topology:network-topology/network-topology:topology[network-topology:topology-id=&apos;ovsdb:1&apos;]/network-topology:node[network-topology:node-id=&apos;ovsdb:HOST1/bridge/br-test&apos;] from URI can&apos;t be resolved. &quot;
      }
&lt;p&gt;    ]&lt;br/&gt;
  }&lt;br/&gt;
}&lt;/p&gt;



&lt;p&gt;The ODL log prints out this INFO message:&lt;br/&gt;
2016-06-14 02:29:14,973 | INFO  | qtp810954400-800 | RestCodec$ObjectCodec            | 238 - org.opendaylight.netconf.sal-rest-connector - 1.4.0.SNAPSHOT | Value is not instance of InstanceIdentifierTypeDefinition but is class java.lang.String. Therefore NULL is used as translation of  - /network-topology:network-topology/network-topology:topology&lt;span class=&quot;error&quot;&gt;&amp;#91;network-topology:topology-id=&amp;#39;ovsdb:1&amp;#39;&amp;#93;&lt;/span&gt;/network-topology:node&lt;span class=&quot;error&quot;&gt;&amp;#91;network-topology:node-id=&amp;#39;ovsdb:HOST1/bridge/br-test&amp;#39;&amp;#93;&lt;/span&gt;&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="21234">NETCONF-221</key>
            <summary>ControllerContext#addKeyValue ignores key type when key is derived type from instance-identifier</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="jakubtoth-0">Jakub Toth</assignee>
                                    <reporter username="ivan.hrasko@pantheon.tech">Ivan Hrasko</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 Jun 2016 10:03:25 +0000</created>
                <updated>Fri, 15 Mar 2019 22:22:26 +0000</updated>
                            <resolved>Tue, 4 Oct 2016 08:56:35 +0000</resolved>
                                                                    <component>restconf-nb</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="39472" author="yamahata" created="Sat, 9 Jul 2016 08:31:39 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/41545/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/41545/&lt;/a&gt;&lt;br/&gt;
Does the above patch help?&lt;/p&gt;</comment>
                            <comment id="39473" author="ivan.hrasko@pantheon.tech" created="Mon, 11 Jul 2016 13:04:00 +0000"  >&lt;p&gt;Thanks I will try it soon..&lt;/p&gt;</comment>
                            <comment id="39474" author="ivan.hrasko@pantheon.tech" created="Tue, 12 Jul 2016 12:41:36 +0000"  >&lt;p&gt;I think that patch above is not a solution for the problem.&lt;br/&gt;
There is always forwarded String from org.opendaylight.netconf.sal.restconf.impl.ControlerContext#addKeyValue to org.opendaylight.netconf.sal.restconf.impl.RestCodec#deserialize&lt;/p&gt;</comment>
                            <comment id="39475" author="jatoth@cisco.com" created="Mon, 12 Sep 2016 13:48:33 +0000"  >&lt;p&gt;Can you test this patch, please ?&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/45486/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/45486/&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>6099</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=6099]]></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="10321"><![CDATA[Carbon]]></customfieldvalue>

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

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