<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:14:06 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-72] RESTCONF rpc() input XML fails while json equivalent succeeds</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-72</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;POST to &lt;a href=&quot;http://localhost:8181/restconf/operations/network-topology:network-topology/topology/topology-netconf/node/47-netconf-device/yang-ext:mount/ietf-netconf:get-config&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/restconf/operations/network-topology:network-topology/topology/topology-netconf/node/47-netconf-device/yang-ext:mount/ietf-netconf:get-config&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;input xmlns=&quot;urn:ietf:params:xml:ns:yang:ietf-netconf&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;source&amp;gt;running&amp;lt;/source&amp;gt;&lt;br/&gt;
&amp;lt;/input&amp;gt;&lt;br/&gt;
...&lt;br/&gt;
        &amp;lt;error-type&amp;gt;protocol&amp;lt;/error-type&amp;gt;&lt;br/&gt;
        &amp;lt;error-tag&amp;gt;malformed-message&amp;lt;/error-tag&amp;gt;&lt;br/&gt;
        &amp;lt;error-message&amp;gt;Error parsing input: Unknown child(ren) node(s) detected, identified by: (urn:ietf:params:xml:ns:yang:ietf-netconf)source, in: container input&amp;lt;/error-message&amp;gt;&lt;/p&gt;

&lt;p&gt;Try POST :&lt;br/&gt;
&amp;lt;input xmlns=&quot;urn:ietf:params:xml:ns:yang:ietf-netconf&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;source&amp;gt;&amp;lt;running/&amp;gt;&amp;lt;/source&amp;gt;&lt;br/&gt;
&amp;lt;/input&amp;gt;&lt;br/&gt;
... same error&lt;br/&gt;
        &amp;lt;error-type&amp;gt;protocol&amp;lt;/error-type&amp;gt;&lt;br/&gt;
        &amp;lt;error-tag&amp;gt;malformed-message&amp;lt;/error-tag&amp;gt;&lt;br/&gt;
        &amp;lt;error-message&amp;gt;Error parsing input: Unknown child(ren) node(s) detected, identified by: (urn:ietf:params:xml:ns:yang:ietf-netconf)source, in: container input&amp;lt;/error-message&amp;gt;&lt;/p&gt;

&lt;p&gt;Switch to json:&lt;/p&gt;

&lt;p&gt;{ &quot;input&quot;: { &quot;source&quot; : &lt;/p&gt;
{ &quot;running&quot; : &quot;&quot; }
&lt;p&gt; } }&lt;/p&gt;

&lt;p&gt;Works!&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="21085">NETCONF-72</key>
            <summary>RESTCONF rpc() input XML fails while json equivalent succeeds</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="10003">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jameshall03885@gmail.com">James Gregory Hall</reporter>
                        <labels>
                    </labels>
                <created>Thu, 24 Sep 2015 13:52:27 +0000</created>
                <updated>Fri, 15 Mar 2019 22:22:14 +0000</updated>
                            <resolved>Thu, 15 Oct 2015 18:16:08 +0000</resolved>
                                                                    <component>netconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="38960" author="jameshall03885@gmail.com" created="Thu, 24 Sep 2015 13:53:01 +0000"  >&lt;p&gt;Version is release/lithium&lt;/p&gt;</comment>
                            <comment id="38961" author="vrpolak" created="Thu, 1 Oct 2015 11:55:52 +0000"  >&lt;p&gt;First lines of ietf-netconf@2011-06-01.yang (either in master branch of netconf repository at opendaylight/netconf/models/ietf-netconf/src/main/yang/, or in stable/lithium branch of controller repository at opendaylight/netconf/ietf-netconf/src/main/yang/) look like this:&lt;/p&gt;

&lt;p&gt;module ietf-netconf {&lt;/p&gt;

&lt;p&gt;  // the namespace for NETCONF XML definitions is unchanged&lt;br/&gt;
  // from RFC 4741, which this document replaces&lt;br/&gt;
  namespace &quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;;&lt;/p&gt;


&lt;p&gt;In other words, is it possible that XML call fails because your namespace is wrong? It is not listed at &lt;a href=&quot;http://www.iana.org/assignments/xml-registry/xml-registry.xhtml&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.iana.org/assignments/xml-registry/xml-registry.xhtml&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="38962" author="jameshall03885@gmail.com" created="Thu, 15 Oct 2015 18:15:23 +0000"  >&lt;p&gt;Thank you for pointing out my Layer 8 error &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.opendaylight.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&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>4353</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=4353]]></customfieldvalue>

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

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