<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:52:43 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>[CONTROLLER-315] Unable to descend in RESTCONF when key is type binary</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-315</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;restconf/operational/bgp-rib:bgp-rib/rib/example-bgp-rib/loc-rib/tables/bgp-linkstate:linkstate-address-family/bgp-linkstate:linkstate-subsequent-address-family/linkstate-routes &lt;/p&gt;

&lt;p&gt;Returns correct xml, but if I want to descend to one concrete linkstate-route&lt;/p&gt;

&lt;p&gt;&amp;lt;linkstate-route&amp;gt;&amp;lt;route-key&amp;gt;AAEAJwIAAAAAAAAAAQEAABoCAAAEAAAASAIBAAQoKCgoAgMABgAAAAAAQA==&amp;lt;/route-key&amp;gt;&amp;lt;identifier&amp;gt;1&amp;lt;/identifier&amp;gt;&lt;br/&gt;
...&lt;/p&gt;

&lt;p&gt;restconf/operational/bgp-rib:bgp-rib/rib/example-bgp-rib/loc-rib/tables/bgp-linkstate:linkstate-address-family/bgp-linkstate:linkstate-subsequent-address-family/linkstate-routes/linkstate-route/AAEAJwIAAAAAAAAAAQEAABoCAAAEAAAASAIBAAQoKCgoAgMABgAAAAAAQA== &lt;/p&gt;

&lt;p&gt;I get: No data exists.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="24869">CONTROLLER-315</key>
            <summary>Unable to descend in RESTCONF when key is type binary</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="10004" iconUrl="https://jira.opendaylight.org/images/icons/status_generic.gif" description="">Verified</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="tpantelis">Tom Pantelis</assignee>
                                    <reporter username="dkutenicsova">Dana Kutenicsova</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 Apr 2014 12:59:28 +0000</created>
                <updated>Tue, 25 Jul 2023 08:23:28 +0000</updated>
                            <resolved>Fri, 6 Jun 2014 20:03:01 +0000</resolved>
                                                                    <component>restconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="47986" author="dbandyop@cisco.com" created="Thu, 24 Apr 2014 00:19:03 +0000"  >&lt;p&gt;(In reply to Dana Kutenicsova from comment #0)&lt;br/&gt;
&amp;gt; restconf/operational/bgp-rib:bgp-rib/rib/example-bgp-rib/loc-rib/tables/bgp-&lt;br/&gt;
&amp;gt; linkstate:linkstate-address-family/bgp-linkstate:linkstate-subsequent-&lt;br/&gt;
&amp;gt; address-family/linkstate-routes &lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; Returns correct xml, but if I want to descend to one concrete linkstate-route&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; &amp;lt;linkstate-route&amp;gt;&amp;lt;route-&lt;br/&gt;
&amp;gt; key&amp;gt;AAEAJwIAAAAAAAAAAQEAABoCAAAEAAAASAIBAAQoKCgoAgMABgAAAAAAQA==&amp;lt;/route-&lt;br/&gt;
&amp;gt; key&amp;gt;&amp;lt;identifier&amp;gt;1&amp;lt;/identifier&amp;gt;&lt;br/&gt;
&amp;gt; ...&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; restconf/operational/bgp-rib:bgp-rib/rib/example-bgp-rib/loc-rib/tables/bgp-&lt;br/&gt;
&amp;gt; linkstate:linkstate-address-family/bgp-linkstate:linkstate-subsequent-&lt;br/&gt;
&amp;gt; address-family/linkstate-routes/linkstate-route/&lt;br/&gt;
&amp;gt; AAEAJwIAAAAAAAAAAQEAABoCAAAEAAAASAIBAAQoKCgoAgMABgAAAAAAQA== &lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; I get: No data exists.&lt;/p&gt;

&lt;p&gt;Hello Dana,&lt;/p&gt;

&lt;p&gt;It will be really helpful to reproduce this bug, if you can tell us the steps you followed, while you came across this bug. The configurations which you have done for this bug.&lt;/p&gt;</comment>
                            <comment id="47987" author="tpantelis" created="Thu, 29 May 2014 14:45:24 +0000"  >&lt;p&gt;I was able to reproduce the issue with this simple yang (added to the toaster):&lt;/p&gt;

&lt;p&gt;    container routes {&lt;br/&gt;
        list route {&lt;br/&gt;
            key &quot;route-key&quot;;&lt;/p&gt;

&lt;p&gt;            leaf route-key &lt;/p&gt;
{
                type binary;
            }
&lt;p&gt;        }&lt;br/&gt;
    } &lt;/p&gt;

&lt;p&gt;After putting an entry with route-key &quot;AAEAJwIAAAAAAAAAAQEAABoCAAAEAAAASAIBAAQoKCgoAgMABgAAAAAAQA==&quot;, a subsequent GET to:&lt;br/&gt;
/config/toaster:routes/route/AAEAJwIAAAAAAAAAAQEAABoCAAAEAAAASAIBAAQoKCgoAgMABgAAAAAAQA==&lt;/p&gt;

&lt;p&gt;didn&apos;t return any data.&lt;/p&gt;

&lt;p&gt;The InstanceIdentifier lookup in the data store failed to return the node. I tracked the problem to the InstanceIdentifier.NodeIdentifierWithPredicates class hashCode/equals methods. It contains a key value Map and calls Map#hashCode and Map#equals. The problem is that the binary type is represented as a byte[] and Map performs shallow hashCode/equals so it would only work properly if the byte[] instances in the maps were the same. The same issue can occur with the NodeWithValue class.&lt;/p&gt;

&lt;p&gt;I think an ideal solution would be to wrap the byte[] in a Binary class that would perform the deep hashCode/equals but the byte[] representation is entrenched in he code generation and other places. In lieu of that, the InstanceIdentifier classes need to perform deep hashCode/equals on the key values.&lt;/p&gt;</comment>
                            <comment id="47988" author="tpantelis" created="Tue, 3 Jun 2014 14:05:13 +0000"  >&lt;p&gt;Submitted: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/7519/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/7519/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="47989" author="dkutenicsova" created="Fri, 6 Jun 2014 20:03:01 +0000"  >&lt;p&gt;Verified against original problem.&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>724</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=724]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10312"><![CDATA[High]]></customfieldvalue>

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

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