<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:17:00 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-1239] Exception on building get-config list filter with fields</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-1239</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;In order to extract list items with a specific set of fields the empty field elements expected to be set under list item node as explained in &lt;a href=&quot;https://www.rfc-editor.org/rfc/rfc6241#section-6.4.4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.rfc-editor.org/rfc/rfc6241#section-6.4.4&lt;/a&gt;&#160;&lt;/p&gt;

&lt;p&gt;On attempt building such filter the exception like below is thrown&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;java.io.IOException: Child identifier (urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring?revision=2010-10-04)identifier is invalid in parent (urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring?revision=2010-10-04)schema
&#160; &#160; at org.opendaylight.netconf.common.mdsal.StreamingContext$AbstractMapMixin.emitChildTreeNode(StreamingContext.java:252)
&#160; &#160; at org.opendaylight.netconf.common.mdsal.StreamingContext$AbstractComposite.streamToWriter(StreamingContext.java:167)
&#160; &#160; at org.opendaylight.netconf.common.mdsal.StreamingContext$AbstractComposite.emitChildTreeNode(StreamingContext.java:174)
&#160; &#160; at org.opendaylight.netconf.common.mdsal.StreamingContext$AbstractComposite.streamToWriter(StreamingContext.java:167)
&#160; &#160; at org.opendaylight.netconf.common.mdsal.StreamingContext$AbstractComposite.emitChildTreeNode(StreamingContext.java:174)
&#160; &#160; at org.opendaylight.netconf.common.mdsal.StreamingContext$AbstractComposite.streamToWriter(StreamingContext.java:167)
&#160; &#160; at org.opendaylight.netconf.common.mdsal.NormalizedDataUtil.writeFilter(NormalizedDataUtil.java:285)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Test case: &lt;a href=&quot;https://git.opendaylight.org/gerrit/c/netconf/+/110078/1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/c/netconf/+/110078/1&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="37939">NETCONF-1239</key>
            <summary>Exception on building get-config list filter with fields</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <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="10001">Won&apos;t Do</resolution>
                                        <assignee username="ivanhrasko">Ivan Hrasko</assignee>
                                    <reporter username="rkashapov">Ruslan Kashapov</reporter>
                        <labels>
                            <label>pt</label>
                    </labels>
                <created>Mon, 29 Jan 2024 14:56:27 +0000</created>
                <updated>Tue, 30 Jan 2024 10:09:08 +0000</updated>
                            <resolved>Tue, 30 Jan 2024 08:47:30 +0000</resolved>
                                                                    <component>netconf</component>
                    <component>netconf-client-mdsal</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="73125" author="ivanhrasko" created="Tue, 30 Jan 2024 08:44:13 +0000"  >&lt;p&gt;The patch compilation is failing.&lt;/p&gt;</comment>
                            <comment id="73126" author="ivanhrasko" created="Tue, 30 Jan 2024 08:46:22 +0000"  >&lt;p&gt;On current main branch (081fb37b7), we can successfully invoke a request to netconf testtool via restconf:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
http:&lt;span class=&quot;code-comment&quot;&gt;//localhost:8181/rests/data/network-topology:network-topology/topology=topology-netconf/node=17830-sim-device/yang-ext:mount/toaster:toaster?fields=toasterStatus;darknessFactor &lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Which send to the device:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;&amp;lt;rpc xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot; message-id=&quot;m-15&quot;&amp;gt;
&#160; &#160; &amp;lt;get&amp;gt;
&#160; &#160; &#160; &#160; &amp;lt;filter type=&quot;subtree&quot;&amp;gt;
&#160; &#160; &#160; &#160; &#160; &#160; &amp;lt;toaster xmlns=&quot;http://netconfcentral.org/ns/toaster&quot;&amp;gt;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &amp;lt;toasterStatus/&amp;gt;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &amp;lt;darknessFactor/&amp;gt;
&#160; &#160; &#160; &#160; &#160; &#160; &amp;lt;/toaster&amp;gt;
&#160; &#160; &#160; &#160; &amp;lt;/filter&amp;gt;
&#160; &#160; &amp;lt;/get&amp;gt;
&amp;lt;/rpc&amp;gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;And everything is processed fine and we get what is expected:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;&amp;lt;rpc-reply xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot; message-id=&quot;m-15&quot;&amp;gt;
&#160; &#160; &amp;lt;data&amp;gt;
&#160; &#160; &#160; &#160; &amp;lt;toaster xmlns=&quot;http://netconfcentral.org/ns/toaster&quot; xmlns:op=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot; op:operation=&quot;replace&quot;&amp;gt;
&#160; &#160; &#160; &#160; &#160; &#160; &amp;lt;toasterStatus&amp;gt;up&amp;lt;/toasterStatus&amp;gt;
&#160; &#160; &#160; &#160; &#160; &#160; &amp;lt;darknessFactor&amp;gt;1000&amp;lt;/darknessFactor&amp;gt;
&#160; &#160; &#160; &#160; &amp;lt;/toaster&amp;gt;
&#160; &#160; &amp;lt;/data&amp;gt;
&amp;lt;/rpc-reply&amp;gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="73127" author="JIRAUSER13216" created="Tue, 30 Jan 2024 09:50:26 +0000"  >&lt;p&gt;the issue addresses list node, not container one&lt;br/&gt;
toaster model contains no lists&lt;br/&gt;
restconf example using yang library model would be&#160;&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;http://localhost:8181/rests/data/ietf-yang-library:yang-library/schema?fields=name&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;which throws error immediately because:&lt;br/&gt;
1. api does not support list nodes without predicate&lt;br/&gt;
2. (when 1 is fixed) filer cannot be built because of current issue&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="37433">NETCONF-1177</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i047e7:</customfieldvalue>

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