<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:52:36 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-267] ClassCastException for instance-identifier in leafref</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-267</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;grouping someGrouping {&lt;br/&gt;
    container someContainer {&lt;br/&gt;
        leaf someLeaf &lt;/p&gt;
{
            type instance-identifier;
        }
&lt;p&gt;    }&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;rpc make-foo {&lt;br/&gt;
    input {&lt;br/&gt;
        leaf qs {&lt;br/&gt;
            type leafref &lt;/p&gt;
{
                path &quot;../../../someGrouping/someContainer/someLeaf&quot;;
            }
&lt;p&gt;        }&lt;br/&gt;
    }&lt;br/&gt;
    output {&lt;br/&gt;
        leaf result &lt;/p&gt;
{
            type string;
        }
&lt;p&gt;    }&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;I invoke RPC with this input:&lt;br/&gt;
&amp;lt;input&amp;gt;&lt;br/&gt;
  &amp;lt;qs xmlns:np=&quot;namespaceOfSomeModule&quot;&amp;gt;/np:foo/np:bar&lt;span class=&quot;error&quot;&gt;&amp;#91;np:name=&amp;quot;someValue&amp;quot;&amp;#93;&lt;/span&gt;&amp;lt;/qs&amp;gt;&lt;br/&gt;
&amp;lt;/input&amp;gt;&lt;/p&gt;


&lt;p&gt;ERROR o.o.c.sal.restconf.impl.RestCodec - ClassCastException was thrown when codec is invoked with parameter&lt;br/&gt;
java.lang.ClassCastException: org.opendaylight.controller.sal.restconf.impl.IdentityValuesDTO cannot be cast to java.lang.String&lt;br/&gt;
 at org.opendaylight.controller.sal.restconf.impl.RestCodec$LeafrefCodecImpl.deserialize(RestCodec.java:183) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;bundlefile:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
 at org.opendaylight.controller.sal.restconf.impl.RestCodec$ObjectCodec.deserialize(RestCodec.java:92) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;bundlefile:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
 at org.opendaylight.controller.sal.restconf.impl.RestconfImpl.normalizeNode(RestconfImpl.java:1353) &lt;span class=&quot;error&quot;&gt;&amp;#91;bundlefile:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
 at org.opendaylight.controller.sal.restconf.impl.RestconfImpl.normalizeNode(RestconfImpl.java:1289) &lt;span class=&quot;error&quot;&gt;&amp;#91;bundlefile:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
 at org.opendaylight.controller.sal.restconf.impl.RestconfImpl.normalizeNode(RestconfImpl.java:1196) &lt;span class=&quot;error&quot;&gt;&amp;#91;bundlefile:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
 at org.opendaylight.controller.sal.restconf.impl.RestconfImpl.callRpc(RestconfImpl.java:613) &lt;span class=&quot;error&quot;&gt;&amp;#91;bundlefile:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
 at org.opendaylight.controller.sal.restconf.impl.RestconfImpl.invokeRpc(RestconfImpl.java:566) &lt;span class=&quot;error&quot;&gt;&amp;#91;bundlefile:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_51&amp;#93;&lt;/span&gt;&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Windows&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="24821">CONTROLLER-267</key>
            <summary>ClassCastException for instance-identifier in leafref</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="jgloncak">Jozef Gloncak</assignee>
                                    <reporter username="msunal@cisco.com">Martin Sunal</reporter>
                        <labels>
                    </labels>
                <created>Wed, 2 Apr 2014 12:52:31 +0000</created>
                <updated>Tue, 25 Jul 2023 08:23:23 +0000</updated>
                            <resolved>Wed, 30 Apr 2014 06:24:43 +0000</resolved>
                                                                    <component>restconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="47886" author="jgloncak" created="Wed, 23 Apr 2014 10:59:50 +0000"  >&lt;p&gt;investigating&lt;/p&gt;</comment>
                            <comment id="47887" author="jgloncak" created="Wed, 23 Apr 2014 13:05:09 +0000"  >&lt;p&gt;By default if input data were in format for which it was possible to parse as&lt;br/&gt;
XPath if was done like this. &lt;br/&gt;
It caused that for leafref which indexed to&lt;br/&gt;
instance-identifier the value was parsed as XPath and not as string (codec is written to except String at input).&lt;/p&gt;

&lt;p&gt;Patch was prepared:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/6335/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/6335/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="47888" author="jgloncak" created="Wed, 30 Apr 2014 06:24:43 +0000"  >&lt;p&gt;Merged on 28APR2014&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>652</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=652]]></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|i02jcf:</customfieldvalue>

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