<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:54:11 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-908] exception while deleting item in ordered list</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-908</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;ul&gt;
	&lt;li&gt;list in list in yang model&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;while deleting via restconf item in inner (ordered-by user list)&lt;/p&gt;

&lt;p&gt;exception is thrown &lt;/p&gt;

&lt;p&gt;Caused by: java.lang.IllegalArgumentException\n\tat com.google.common.base.Preconditions.checkArgument(Preconditions.java:76)\n\tat org.opendaylight.yangtools.yang.data.impl.schema.tree.NormalizedNodeContainerModificationStrategy$OrderedMapModificationStrategy.createBuilder(NormalizedNodeContainerModificationStrategy.java:271)\n\tat org.opendaylight.yangtools.yang.data.impl.schema.tree.NormalizedNodeContainerModificationStrategy.applySubtreeChange(NormalizedNodeContainerModificationStrategy.java:155)\n\tat org.opendaylight.yangtools.yang.data.impl.schema.tree.NormalizedNodeContainerModificationStrategy$OrderedMapModificationStrategy.applySubtreeChange(NormalizedNodeContainerModificationStrategy.java:254)\n\tat org.opendaylight.yangtools.yang.data.impl.schema.tree.SchemaAwareApplyOperation.apply(SchemaAwareApplyOperation.java:209)\n\tat org.opendaylight.yangtools.yang.data.impl.schema.tree.NormalizedNodeContainerModificationStrategy.mutateChildren(NormalizedNodeContainerModificationStrategy.java:126)\n\tat org.opendaylight.yangtools.yang.data.impl.schema.tree.NormalizedNodeContainerModificationStrategy.applySubtreeChange(NormalizedNodeContainerModificationStrategy.java:157)\n\tat org.opendaylight.yangtools.yang.data.impl.schema.tree.DataNodeContainerModificationStrategy$ListEntryModificationStrategy.applySubtreeChange(DataNodeContainerModificationStrategy.java:133)\n\tat org.opendaylight.yangtools.yang.data.impl.schema.tree.SchemaAwareApplyOperation.apply(SchemaAwareApplyOperation.java:209)\n\tat org.opendaylight.yangtools.yang.data.impl.schema.tree.NormalizedNodeContainerModificationStrategy.mutateChildren(NormalizedNodeContainerModificationStrategy.java:126)\n\tat org.opendaylight.yangtools.yang.data.impl.schema.tree.NormalizedNodeContainerModificationStrategy.applySubtreeChange(NormalizedNodeContainerModificationStrategy.java:157)\n\tat &lt;/p&gt;


&lt;p&gt;org.opendaylight.yangtools.yang-data-impl-0.6.2-20140922.164315-768.jar&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="25462">CONTROLLER-908</key>
            <summary>exception while deleting item in ordered list</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="jhajnar@cisco.com">Jan Hajnar</assignee>
                                    <reporter username="malauko@cisco.com">Martin Lauko</reporter>
                        <labels>
                    </labels>
                <created>Mon, 29 Sep 2014 13:58:54 +0000</created>
                <updated>Fri, 24 Oct 2014 14:57:49 +0000</updated>
                            <resolved>Fri, 24 Oct 2014 14:57:49 +0000</resolved>
                                    <version>Helium</version>
                                                    <component>restconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="49459" author="malauko@cisco.com" created="Tue, 30 Sep 2014 10:18:19 +0000"  >&lt;p&gt;Same exception while adding item into list via restconf.&lt;/p&gt;

&lt;p&gt;investigation:&lt;/p&gt;

&lt;p&gt;method &apos;createBuilder&apos; receives argument &apos;original&apos;, which is instance of ImmutableMapNodeBuilder$ImmutableMapNode type and that&apos;s because exception is thrown in checkArgument(original instanceof OrderedMapNode);&lt;/p&gt;

&lt;p&gt;yang:&lt;/p&gt;

&lt;p&gt; container access-lists {&lt;/p&gt;

&lt;p&gt;    list access-list {&lt;br/&gt;
      key &quot;acl-name&quot;;&lt;br/&gt;
      leaf acl-name &lt;/p&gt;
{
        description &quot;name of access-list&quot;;
        type string;
      }

&lt;p&gt;      list access-list-entries {&lt;br/&gt;
        key rule-name;&lt;br/&gt;
        ordered-by user;&lt;br/&gt;
        leaf rule-name &lt;/p&gt;
{
            description &quot;Entry name&quot;;
            type string;
        }
&lt;p&gt;      }&lt;br/&gt;
    }&lt;br/&gt;
  }&lt;/p&gt;</comment>
                            <comment id="49460" author="tony.tkacik@gmail.com" created="Mon, 6 Oct 2014 16:52:14 +0000"  >&lt;p&gt;Did you specify key leaf rule-name?&lt;/p&gt;</comment>
                            <comment id="49461" author="malauko@cisco.com" created="Tue, 7 Oct 2014 10:31:34 +0000"  >&lt;p&gt;was sending this DELETE request&lt;br/&gt;
DELETE: &lt;a href=&quot;http://localhost:8181/restconf/config/ietf-acl:access-lists/access-list/acl-1/access-list-entries/rule-2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/restconf/config/ietf-acl:access-lists/access-list/acl-1/access-list-entries/rule-2&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;in data store is this data:&lt;/p&gt;

&lt;p&gt;  {&quot;access-lists&quot;: {&quot;access-list&quot;: [&lt;br/&gt;
    {&quot;acl-name&quot;: &quot;acl-1&quot;, &quot;access-list-entries&quot;: [&lt;br/&gt;
      {&quot;rule-name&quot;: &quot;rule-2&quot;, &quot;matches&quot;: {&quot;source-ipv6-address&quot;: &quot;1::0&quot;, &quot;source-port-range&quot;: &lt;/p&gt;
{&quot;lower-port&quot;: 300}
&lt;p&gt;, &quot;destination-port-range&quot;: &lt;/p&gt;
{&quot;lower-port&quot;: 200}
&lt;p&gt;, &quot;absolute&quot;: {&quot;active&quot;: true}}, &quot;actions&quot;: {&quot;service-function-acl:service-function-path&quot;: &quot;sfg&quot;}},&lt;br/&gt;
      {&quot;rule-name&quot;: &quot;rule-1&quot;, &quot;matches&quot;: {&quot;source-mac-address&quot;: &quot;AA:AA:AA:AA:AA:AA&quot;, &quot;absolute&quot;: {&quot;active&quot;: true}}, &quot;actions&quot;: {&quot;service-function-acl:service-function-path&quot;: &quot;sfv&quot;}}&lt;br/&gt;
    ]}&lt;br/&gt;
  ]}}&lt;/p&gt;


&lt;p&gt;But i think, this exceception is not connected with restconf, but with data modification in ordered list.&lt;/p&gt;


&lt;p&gt;Sources od yang model can be found here: &lt;a href=&quot;https://git.opendaylight.org/gerrit/gitweb?p=sfc.git;a=tree;f=sfc-model/src/main/yang;hb=HEAD&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/gitweb?p=sfc.git;a=tree;f=sfc-model/src/main/yang;hb=HEAD&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="49462" author="jhajnar@cisco.com" created="Thu, 16 Oct 2014 14:15:45 +0000"  >&lt;p&gt;This bug seems to be connected to &lt;a href=&quot;https://jira.opendaylight.org/browse/YANGTOOLS-337&quot; title=&quot;schema aware builders for ordered list and leaf-list are absent&quot; class=&quot;issue-link&quot; data-issue-key=&quot;YANGTOOLS-337&quot;&gt;&lt;del&gt;YANGTOOLS-337&lt;/del&gt;&lt;/a&gt; which is in &quot;waiting for review&quot; state, but is still missing some files from gerrit commit. Please test your code with patch linked in that bug when commit is complete.&lt;/p&gt;</comment>
                            <comment id="49463" author="jhajnar@cisco.com" created="Fri, 24 Oct 2014 12:10:30 +0000"  >&lt;p&gt;fix:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/12222/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/12222/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="49464" author="malauko@cisco.com" created="Fri, 24 Oct 2014 14:57:49 +0000"  >&lt;p&gt;Verified with fix applied on yangtools 0.6.3-SNAPSHOT. OK&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="22757">YANGTOOLS-337</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2111</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=2111]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10316"><![CDATA[Helium-1]]></customfieldvalue>

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

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