<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:56:24 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>[YANGTOOLS-1522] XML parser omits leading/trailing whitespace in string values</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-1522</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;tested with karaf 18.1&lt;/p&gt;

&lt;p&gt;In yang model we have a leaf declared as the following&lt;/p&gt;

&lt;p&gt;&#160;&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;leaf myLeaf { &#160; &#160;&#160;
 &#160;type string {
 &#160; &#160;length &quot;1..4&quot;;
 &#160;}
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Case 1)&lt;/p&gt;

&lt;p&gt;The leaf is filled with the value=&quot;&#160;&#160;&#160; &quot;&lt;/p&gt;

&lt;p&gt;i.e. with four empty spaces:&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;myLeaf&amp;gt;&#160;&#160;&#160; &amp;lt;/myLeaf&amp;gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;ODL raises an error for this case,&lt;/p&gt;

&lt;p&gt;because all spaces are removed and the length constraint is not satisfied.&lt;/p&gt;

&lt;p&gt;Case 2)&lt;/p&gt;

&lt;p&gt;The leaf is filled with four empty encoded spaces, each space is encoded using a xml entity, using &amp;amp; plus #160;&lt;/p&gt;

&lt;p&gt;ODL does not raise error,&lt;/p&gt;

&lt;p&gt;but the json return by ODL&lt;/p&gt;

&lt;p&gt;contains non printable characters,&lt;/p&gt;

&lt;p&gt;the encode spaces are not decoded back to plain spaces ...&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="37126">YANGTOOLS-1522</key>
            <summary>XML parser omits leading/trailing whitespace in string values</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</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="rovarga">Robert Varga</assignee>
                                    <reporter username="brigam">Maurizio Brigandi&apos;</reporter>
                        <labels>
                    </labels>
                <created>Thu, 20 Jul 2023 09:10:26 +0000</created>
                <updated>Fri, 21 Jul 2023 15:12:14 +0000</updated>
                            <resolved>Fri, 21 Jul 2023 15:12:14 +0000</resolved>
                                                    <fixVersion>11.0.1</fixVersion>
                    <fixVersion>9.0.9</fixVersion>
                    <fixVersion>10.0.9</fixVersion>
                                    <component>codecs</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10300">
                    <name>Issue split</name>
                                            <outwardlinks description="split to">
                                        <issuelink>
            <issuekey id="37128">YANGTOOLS-1523</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|i045uf:</customfieldvalue>

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