<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:14: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-227] swagger ui does not pass multiple bodies to server</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-227</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;swagger ui can not pass multiple bodies to server when using operation post and url like &quot;http://localhost:8181/restconf/config/..../moduleName:containerName&quot;&lt;/p&gt;

&lt;p&gt;swagger-ui.js&lt;/p&gt;

&lt;p&gt;for (_j = 0, _len1 = _ref6.length; _j &amp;lt; _len1; _j++) {&lt;br/&gt;
          o = _ref6&lt;span class=&quot;error&quot;&gt;&amp;#91;_j&amp;#93;&lt;/span&gt;;&lt;br/&gt;
          if ((o.value != null) &amp;amp;&amp;amp; jQuery.trim(o.value).length &amp;gt; 0) &lt;/p&gt;
{
             map[&quot;body&quot;] = o.value;
          }
&lt;p&gt;        }&lt;/p&gt;

&lt;p&gt;the body map would be overwritted is multiple bodies.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="21240">NETCONF-227</key>
            <summary>swagger ui does not pass multiple bodies to server</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="10003" iconUrl="https://jira.opendaylight.org/images/icons/status_generic.gif" description="">Confirmed</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="ivanhrasko">Ivan Hrasko</assignee>
                                    <reporter username="li.yue23@zte.com.cn">moon.lee</reporter>
                        <labels>
                    </labels>
                <created>Tue, 19 Jul 2016 03:27:22 +0000</created>
                <updated>Mon, 27 Mar 2023 11:17:25 +0000</updated>
                                                                            <component>restconf-nb</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="39486" author="ivan.hrasko@pantheon.tech" created="Tue, 19 Jul 2016 15:32:52 +0000"  >&lt;p&gt;Can you give me example with multiple bodies, please?&lt;/p&gt;

&lt;p&gt;I dont think that map&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;body&amp;#39;&amp;#93;&lt;/span&gt; is overwritted. Rather it is checked if value which will be set is not null and not empty.&lt;/p&gt;</comment>
                            <comment id="39487" author="li.yue23@zte.com.cn" created="Wed, 20 Jul 2016 01:15:27 +0000"  >&lt;p&gt;(In reply to Ivan Hrasko from comment #1)&lt;br/&gt;
&amp;gt; Can you give me example with multiple bodies, please?&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; I dont think that map&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;body&amp;#39;&amp;#93;&lt;/span&gt; is overwritted. Rather it is checked if value&lt;br/&gt;
&amp;gt; which will be set is not null and not empty.&lt;/p&gt;

&lt;p&gt;map&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;body&amp;#39;&amp;#93;&lt;/span&gt; is overwritted if one container node contains two or more list or container nodes .&lt;/p&gt;

&lt;p&gt;example is as follows:&lt;/p&gt;

&lt;p&gt;module router {&lt;br/&gt;
    yang-version 1;&lt;br/&gt;
    namespace &quot;urn:sdnhub:odl:tutorial:router&quot;;&lt;br/&gt;
    prefix router;&lt;/p&gt;

&lt;p&gt;    description &quot;Router configuration&quot;;&lt;/p&gt;

&lt;p&gt;    revision &quot;2015-07-28&quot; &lt;/p&gt;
{
        description &quot;Initial version.&quot;;
    }

&lt;p&gt;    container router {&lt;br/&gt;
        list ospf {&lt;br/&gt;
            key process-id;&lt;br/&gt;
            leaf process-id &lt;/p&gt;
{
                type uint32;
            }&lt;br/&gt;
            list networks {&lt;br/&gt;
                key subnet-ip;&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
                leaf subnet-ip {
                    type string;
                }&lt;br/&gt;
                leaf area-id {
                    type uint32;
                }&lt;br/&gt;
            }&lt;br/&gt;
        }&lt;br/&gt;
        list bgp {&lt;br/&gt;
            key as-number;&lt;br/&gt;
            leaf as-number {                type uint32;            }
&lt;p&gt;            leaf router-id &lt;/p&gt;
{
                type string;
            }
&lt;p&gt;            list neighbors {&lt;br/&gt;
                key as-number;&lt;br/&gt;
                leaf as-number &lt;/p&gt;
{
                    type uint32;
                }
&lt;p&gt;                leaf peer-ip &lt;/p&gt;
{
                    type string;
                }
&lt;p&gt;            }&lt;br/&gt;
        }&lt;br/&gt;
    }&lt;br/&gt;
}&lt;/p&gt;</comment>
                            <comment id="39488" author="ivan.hrasko@pantheon.tech" created="Thu, 21 Jul 2016 08:50:02 +0000"  >&lt;p&gt;OK, thank you&lt;/p&gt;</comment>
                            <comment id="39489" author="ivan.hrasko@pantheon.tech" created="Thu, 28 Jul 2016 14:15:21 +0000"  >&lt;p&gt;Can I ask you for the POST request you are trying to send to server?&lt;/p&gt;</comment>
                            <comment id="64795" author="rovarga" created="Mon, 27 Aug 2018 21:29:16 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=li.yue23%40zte.com.cn&quot; class=&quot;user-hover&quot; rel=&quot;li.yue23@zte.com.cn&quot;&gt;li.yue23@zte.com.cn&lt;/a&gt; can you provide the requested input? Otherwise we&apos;ll close this issue as Cannot Reproduce.&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>6207</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=6207]]></customfieldvalue>

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

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

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