<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:16:29 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-1023] OpenAPI: Limit usage of JsonUtil#copy method</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-1023</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;The &lt;b&gt;addPaths&lt;/b&gt; method is the only place where we need to make a copy of parameters because we are going deeper into recursion. Thus we need&lt;br/&gt;
some defence against future modifications.&lt;/p&gt;

&lt;p&gt;The other methods &lt;b&gt;buildPost&lt;/b&gt;, &lt;b&gt;buildGet&lt;/b&gt;, &lt;b&gt;buildPut&lt;/b&gt; and &lt;b&gt;buildDelete&lt;/b&gt; are doing unnecessary copying.&lt;/p&gt;

&lt;p&gt;The second problem is that we do not have any unit test to check the number of parameters in recursive models, for example:&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;&#160; container container-root {
&#160; &#160; list root-list {
&#160; &#160; &#160; key name;
&#160; &#160; &#160; leaf name {
&#160; &#160; &#160; &#160; type string;
&#160; &#160; &#160; }&#160; &#160; &#160; list nested-list {
&#160; &#160; &#160; &#160; key name;
&#160; &#160; &#160; &#160; leaf name {
&#160; &#160; &#160; &#160; &#160; type string;
&#160; &#160; &#160; &#160; }&#160; &#160; &#160; &#160; list super-nested-list {
&#160; &#160; &#160; &#160; &#160; key name;
&#160; &#160; &#160; &#160; &#160; leaf name {
&#160; &#160; &#160; &#160; &#160; &#160; type string;
&#160; &#160; &#160; &#160; &#160; }
&#160; &#160; &#160; &#160; }
&#160; &#160; &#160; }
&#160; &#160; }
&#160; }&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="36917">NETCONF-1023</key>
            <summary>OpenAPI: Limit usage of JsonUtil#copy method</summary>
                <type id="10100" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</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="10000">Done</resolution>
                                        <assignee username="ojo">Oleksandr Zharov</assignee>
                                    <reporter username="ivanhrasko">Ivan Hrasko</reporter>
                        <labels>
                            <label>pt</label>
                    </labels>
                <created>Wed, 10 May 2023 08:03:10 +0000</created>
                <updated>Wed, 14 Jun 2023 07:55:11 +0000</updated>
                            <resolved>Tue, 23 May 2023 06:23:20 +0000</resolved>
                                                    <fixVersion>6.0.0</fixVersion>
                                    <component>restconf-openapi</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="72214" author="ivanhrasko" created="Mon, 22 May 2023 08:23:20 +0000"  >&lt;p&gt;We have found out that we cannot get rid of copying. But we can use &lt;b&gt;ArrayNode#addAll&lt;/b&gt; instead of &lt;b&gt;JsonUtil#copy&lt;/b&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="36515">NETCONF-938</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|i04527:</customfieldvalue>

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