<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:52:25 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-192] Restconf is unable to handle anyxml attributes</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-192</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;My yang model has anyxml attributes which contains XML data not related to my data model. Restconf is unable to ignore this and always complains about unknown tags.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="24746">CONTROLLER-192</key>
            <summary>Restconf is unable to handle anyxml attributes</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="tpantelis">Tom Pantelis</assignee>
                                    <reporter username="ashwin.pankaj@hotmail.com">Ashwin Pankaj</reporter>
                        <labels>
                    </labels>
                <created>Thu, 6 Mar 2014 09:15:43 +0000</created>
                <updated>Tue, 25 Jul 2023 08:23:10 +0000</updated>
                            <resolved>Mon, 30 Jun 2014 08:39:38 +0000</resolved>
                                                                    <component>restconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="47711" author="jgloncak" created="Fri, 7 Mar 2014 06:27:50 +0000"  >&lt;p&gt;investigating&lt;/p&gt;</comment>
                            <comment id="47712" author="jgloncak" created="Fri, 7 Mar 2014 14:12:15 +0000"  >&lt;p&gt;I worked with following scenario&lt;br/&gt;
YANG file&lt;/p&gt;

&lt;p&gt; module xml-test {&lt;br/&gt;
   namespace &quot;xml:test&quot;;&lt;br/&gt;
   prefix &quot;yang&quot;;&lt;/p&gt;

&lt;p&gt;   revision 2014-3-7 {&lt;br/&gt;
   }&lt;/p&gt;

&lt;p&gt;   container cont {&lt;br/&gt;
        leaf lf &lt;/p&gt;
{
            type string;
        }

&lt;p&gt;        anyxml data {&lt;br/&gt;
        }        &lt;br/&gt;
    }    &lt;br/&gt;
 }&lt;/p&gt;

&lt;p&gt;I tried to PUT &lt;a href=&quot;http://192.168.1.101:8080/restconf/config/xml-test:cont&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://192.168.1.101:8080/restconf/config/xml-test:cont&lt;/a&gt;&lt;br/&gt;
following data&lt;br/&gt;
&amp;lt;cont xmlns=&quot;xml:test&quot;&amp;gt;&lt;br/&gt;
	&amp;lt;lf&amp;gt;something&amp;lt;/lf&amp;gt;&lt;br/&gt;
        &amp;lt;data&amp;gt;&lt;br/&gt;
      	  &amp;lt;data-inner&amp;gt;&lt;br/&gt;
              &amp;lt;data-inner1&amp;gt;data1&amp;lt;/data-inner1&amp;gt;&lt;br/&gt;
              &amp;lt;data-inner1&amp;gt;data2&amp;lt;/data-inner1&amp;gt;&lt;br/&gt;
           &amp;lt;/data-inner&amp;gt;&lt;br/&gt;
   	&amp;lt;/data&amp;gt;&lt;br/&gt;
&amp;lt;/cont&amp;gt;&lt;/p&gt;

&lt;p&gt;I obtained following message&lt;br/&gt;
Schema node &quot;data&quot; was not found in module.&lt;/p&gt;

&lt;p&gt;I found problem in RestconfImpl class and I did some fixes &lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/5565/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/5565/&lt;/a&gt;&lt;/p&gt;


&lt;p&gt; but I wasn&apos;t able to completely test it because of other error occured (see attachment). I wasn&apos;t able to found the reason. It seems to me that controller can&apos;t see *.class files which were generated for my YANG module.&lt;/p&gt;</comment>
                            <comment id="47717" author="jgloncak" created="Fri, 7 Mar 2014 14:13:24 +0000"  >&lt;p&gt;Attachment file_484.txt has been added with description: part of error message from osgi console&lt;/p&gt;</comment>
                            <comment id="47713" author="tpantelis" created="Thu, 22 May 2014 15:01:07 +0000"  >&lt;p&gt;The DeserializationException no longer occurs with the new data store impl.&lt;/p&gt;

&lt;p&gt;I was able to get this to work with some changes in RestConfImpl, DataNormalizationOperation and JsonMapper.&lt;/p&gt;

&lt;p&gt;I defined an AnyXml yang container:&lt;/p&gt;

&lt;p&gt;    container AnyXml {&lt;br/&gt;
        leaf leaf &lt;/p&gt;
{
            type string;
        }

&lt;p&gt;        anyxml data {&lt;br/&gt;
        }        &lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;PUT:&lt;br/&gt;
{&lt;br/&gt;
 AnyXml:&lt;br/&gt;
 {&lt;br/&gt;
   leaf: &quot;something&quot;,&lt;br/&gt;
   data : &lt;br/&gt;
   {&lt;br/&gt;
     data-inner: &lt;/p&gt;
     {
       data-inner1 : &quot;data1&quot;,
       data-inner2 : &quot;data2&quot;,
     }
&lt;p&gt;   }&lt;br/&gt;
 }&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;GET:&lt;br/&gt;
{&lt;br/&gt;
  AnyXml: &lt;br/&gt;
  {&lt;br/&gt;
    leaf: &quot;something&quot;&lt;br/&gt;
    data: &lt;br/&gt;
    {&lt;br/&gt;
      data-inner: &lt;/p&gt;
      {
        data-inner1: &quot;data1&quot;
        data-inner2: &quot;data2&quot;
      }
&lt;p&gt;    }&lt;br/&gt;
  }&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;PUT with XML works but GET fails - needs minor changes in XmlDocumentUtils in yangtools. &lt;/p&gt;

&lt;p&gt;One thing to note is that the generated AnyXml interface only contains the getLeaf() method - there&apos;s no method to retrieve the anyxml data. So it appears anyxml isn&apos;t supported by the yang code generator so it wouldn&apos;t be available to a binding-aware client.&lt;/p&gt;</comment>
                            <comment id="47714" author="tpantelis" created="Thu, 22 May 2014 15:24:26 +0000"  >&lt;p&gt;Pushed:&lt;/p&gt;

&lt;p&gt;  &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/7337/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/7337/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;with proposed changes. It depends on a draft for &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-472&quot; title=&quot;Restconf errors should be formatted in JSON as appropropriate&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-472&quot;&gt;&lt;del&gt;CONTROLLER-472&lt;/del&gt;&lt;/a&gt; so not ready to merge but I&apos;d welcome code review.&lt;/p&gt;</comment>
                            <comment id="47715" author="tpantelis" created="Fri, 23 May 2014 00:35:57 +0000"  >&lt;p&gt;Pushed &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/7339/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/7339/&lt;/a&gt; to fix issue in XmlDocumentUtils.&lt;/p&gt;</comment>
                            <comment id="47716" author="jgloncak" created="Tue, 17 Jun 2014 11:41:51 +0000"  >&lt;p&gt;PatchSet9 was devided as follows (merging order in parenthesis):&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-192&quot; title=&quot;Restconf is unable to handle anyxml attributes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-192&quot;&gt;&lt;del&gt;CONTROLLER-192&lt;/del&gt;&lt;/a&gt; - XmlReader improve readability - &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/8037/1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/8037/1&lt;/a&gt; (can be merged anytime)&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-192&quot; title=&quot;Restconf is unable to handle anyxml attributes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-192&quot;&gt;&lt;del&gt;CONTROLLER-192&lt;/del&gt;&lt;/a&gt; Anyxml normalized node - &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/8062/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/8062/&lt;/a&gt; (3. merge) - depends on:&lt;/li&gt;
	&lt;li&gt;Add Anyxml normalized node to yang-data-api - &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/7771/1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/7771/1&lt;/a&gt; (1. merge)&lt;/li&gt;
	&lt;li&gt;AnyXmlNode builders - &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/8061/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/8061/&lt;/a&gt; (2. merge)&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-192&quot; title=&quot;Restconf is unable to handle anyxml attributes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-192&quot;&gt;&lt;del&gt;CONTROLLER-192&lt;/del&gt;&lt;/a&gt; - Anyxml in sal-rest-connector - &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/8067/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/8067/&lt;/a&gt; (4. merge)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Also AnyXmlNode is used in AnyXmlNormalization.normalize as was requested by Tony.&lt;/p&gt;

&lt;p&gt;How should be JSON output which contains anyxml data printed? like XML (isn&apos;t implemented) or like JSON (is implemented by Tom)&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13355" name="file_484.txt" size="3162" author="jgloncak@cisco.com" created="Fri, 7 Mar 2014 14:13:24 +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>484</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=484]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10312"><![CDATA[High]]></customfieldvalue>

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

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