<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:16:08 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-876] Invalid error message for joint ranges</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-876</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;YANG model has a leaf defined as:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;leaf myleaf {&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160; type uint8 {&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160; &#160; &#160; range &quot;0..1 | 128..255&quot;;&lt;/tt&gt;&lt;br/&gt;
&#160; &#160; &#160; &#160; &#160;}&lt;br/&gt;
&lt;tt&gt;}&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;When RPC is being called with invalid myleaf value between 2 and 127 RESTCONF replies with correct error message:&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;{&quot;errors&quot;:\{&quot;error&quot;:[{&quot;error-type&quot;:&quot;protocol&quot;,&quot;error-tag&quot;:&quot;malformed-message&quot;,&quot;error-info&quot;:&quot;Value \&apos;100\&apos; &#160;is not in required ranges [[0..1], [128..255]]&quot;,&quot;error-message&quot;:&quot;Error parsing input: Value \&apos;100\&apos; &#160;is not in required ranges [[0..1], [128..255]]&quot;}]}}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;However if RPC is being called with invalid myleaf value above 255, it replies with invalid error message:&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;{&quot;errors&quot;:\{&quot;error&quot;:[{&quot;error-type&quot;:&quot;protocol&quot;,&quot;error-tag&quot;:&quot;malformed-message&quot;,&quot;error-info&quot;:&quot;Invalid range: 300, expected: [[0..255]].&quot;,&quot;error-message&quot;:&quot;Error parsing input: Invalid range: 300, expected: [[0..255]].&quot;}]}}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>&lt;p&gt;Version: Aluminium SR1&lt;/p&gt;</environment>
        <key id="35721">NETCONF-876</key>
            <summary>Invalid error message for joint ranges</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="1" iconUrl="https://jira.opendaylight.org/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="hjslgfsd7">Valentin Mayamsin</reporter>
                        <labels>
                    </labels>
                <created>Wed, 27 Apr 2022 01:00:26 +0000</created>
                <updated>Thu, 26 May 2022 12:18:28 +0000</updated>
                                                                            <component>restconf-nb</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="71113" author="rovarga" created="Thu, 26 May 2022 12:18:28 +0000"  >&lt;p&gt;The two failures are slightly different, coming from two processing stages:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;the second error comes from parsing the input as an &apos;uint8&apos;, which actually is the first stage which implies an upper bound of 0..255.&lt;/li&gt;
	&lt;li&gt;the first error comes from enforcing type restrictions on the parser value, which is actually the second stage&lt;/li&gt;
&lt;/ul&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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0429r:</customfieldvalue>

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