<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:14:40 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-301] create-data-change-event-subscription response is not in XML format despite request was &quot;application/xml&quot;</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-301</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;following &quot;Change event notification subscription&quot; procedure on odl wiki &lt;a href=&quot;https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Restconf:Change_event_notification_subscription&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Restconf:Change_event_notification_subscription&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;setup environment:&lt;br/&gt;
------------------&lt;br/&gt;
1. start odl distribution-karaf-0.5.0-Boron&lt;br/&gt;
2. install features: &lt;br/&gt;
feature:install odl-restconf&lt;br/&gt;
feature:install odl-dlux-all&lt;br/&gt;
feature:install odl-ovsdb-southbound-impl &lt;br/&gt;
log:set DEBUG org.opendaylight.netconf.sal&lt;/p&gt;

&lt;p&gt;when I send create-data-change-event-subscription request (see postman collection) with Content-Type &quot;application/xml&quot; response is in JSON format&lt;/p&gt;

&lt;p&gt;request:&lt;br/&gt;
&amp;lt;input xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:remote&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;path xmlns:a=&quot;urn:TBD:params:xml:ns:yang:network-topology&quot;&amp;gt;/a:network-topology&amp;lt;/path&amp;gt;&lt;br/&gt;
  &amp;lt;datastore xmlns=&quot;urn:sal:restconf:event:subscription&quot;&amp;gt;CONFIGURATION&amp;lt;/datastore&amp;gt;&lt;br/&gt;
  &amp;lt;scope xmlns=&quot;urn:sal:restconf:event:subscription&quot;&amp;gt;BASE&amp;lt;/scope&amp;gt;  &lt;br/&gt;
&amp;lt;/input&amp;gt;&lt;/p&gt;

&lt;p&gt;response:&lt;br/&gt;
{&lt;br/&gt;
  &quot;output&quot;: &lt;/p&gt;
{
    &quot;stream-name&quot;: &quot;data-change-event-subscription/network-topology:network-topology/datastore=CONFIGURATION/scope=BASE&quot;
  }
&lt;p&gt;}&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="21314">NETCONF-301</key>
            <summary>create-data-change-event-subscription response is not in XML format despite request was &quot;application/xml&quot;</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="10001">Won&apos;t Do</resolution>
                                        <assignee username="ivanhrasko">Ivan Hrasko</assignee>
                                    <reporter username="juraj.veverka@pantheon.tech">Juraj Veverka</reporter>
                        <labels>
                            <label>pt</label>
                    </labels>
                <created>Thu, 20 Oct 2016 06:23:45 +0000</created>
                <updated>Tue, 6 Dec 2022 15:38:25 +0000</updated>
                            <resolved>Tue, 6 Dec 2022 15:38:25 +0000</resolved>
                                                                    <component>restconf-nb</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="39683" author="juraj.veverka@pantheon.tech" created="Thu, 20 Oct 2016 06:23:45 +0000"  >&lt;p&gt;Attachment openstack.postman_collection.json has been added with description: postman collection&lt;/p&gt;</comment>
                            <comment id="71722" author="ivanhrasko" created="Tue, 6 Dec 2022 15:20:46 +0000"  >&lt;p&gt;In the Netconf version 5 the request looks like:&lt;/p&gt;

&lt;p&gt;POST &lt;a href=&quot;http://localhost:8181/rests/operations/sal-remote:create-data-change-event-subscription*&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/rests/operations/sal-remote:create-data-change-event-subscription&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;with the payload:&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;input xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:remote&quot;&amp;gt;
  &amp;lt;path xmlns:a=&quot;urn:TBD:params:xml:ns:yang:network-topology&quot;&amp;gt;/a:network-topology&amp;lt;/path&amp;gt;
  &amp;lt;datastore xmlns=&quot;urn:sal:restconf:event:subscription&quot;&amp;gt;CONFIGURATION&amp;lt;/datastore&amp;gt;
  &amp;lt;scope xmlns=&quot;urn:sal:restconf:event:subscription&quot;&amp;gt;BASE&amp;lt;/scope&amp;gt;
&amp;lt;/input&amp;gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and the result depends on the &lt;b&gt;Accept&lt;/b&gt; header not &lt;b&gt;Content-Type&lt;/b&gt;!&lt;/p&gt;

&lt;p&gt;With Accept set to &lt;b&gt;application/xml&lt;/b&gt; we successfully get:&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;
&amp;lt;output xmlns=&lt;span class=&quot;code-quote&quot;&gt;&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:remote&quot;&lt;/span&gt;&amp;gt;
  &amp;lt;stream-name&amp;gt;data-change-event-subscription/network-topology:network-topology/datastore=CONFIGURATION/scope=BASE&amp;lt;/stream-name&amp;gt;
&amp;lt;/output&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="71723" author="ivanhrasko" created="Tue, 6 Dec 2022 15:38:25 +0000"  >&lt;p&gt;The issue in not present. User has misconfigured his request (used wrong header parameter).&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12693" name="openstack.postman_collection.json" size="5952" author="juraj.veverka@pantheon.tech" created="Thu, 20 Oct 2016 06:23:45 +0000"/>
                    </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>6994</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=6994]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Bug]]></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|i01xp3:</customfieldvalue>

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