<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:54:17 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-780] decimal64 fraction digits sub statement</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-780</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;For data type with following yang schema:&lt;/p&gt;

&lt;p&gt;typedef pm-data-type {&lt;br/&gt;
    type union {&lt;br/&gt;
      type uint64;&lt;br/&gt;
      type decimal64 &lt;/p&gt;
{
        fraction-digits 2;
      }
&lt;p&gt;      type decimal64 &lt;/p&gt;
{
        fraction-digits 17;
       }
&lt;p&gt;    }&lt;br/&gt;
  }&lt;/p&gt;


&lt;p&gt;ODL is thowing the following error:&lt;/p&gt;

&lt;p&gt;java.lang.IllegalArgumentException: Invalid data &quot;-99.9&quot; for union type.&lt;br/&gt;
at org.opendaylight.yangtools.yang.data.util.AbstractStringUnionCodec.serialize(AbstractStringUnionCodec.java:47)&lt;br/&gt;
at org.opendaylight.yangtools.yang.data.codec.gson.JSONStringUnionCodec.serializeToWriter(JSONStringUnionCodec.java:30)&lt;br/&gt;
at org.opendaylight.yangtools.yang.data.codec.gson.JSONNormalizedNodeStreamWriter.writeValue(JSONNormalizedNodeStreamWriter.java:208)&lt;br/&gt;
at org.opendaylight.yangtools.yang.data.codec.gson.JSONNormalizedNodeStreamWriter.leafNode(JSONNormalizedNodeStreamWriter.java:98)&lt;br/&gt;
at org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeWriter.wasProcessAsSimpleNode(NormalizedNodeWriter.java:152)&lt;/p&gt;

&lt;p&gt;can you please help.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="23200">YANGTOOLS-780</key>
            <summary>decimal64 fraction digits sub statement</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="dhbh">Dhruv Bhardwaj</reporter>
                        <labels>
                    </labels>
                <created>Wed, 31 May 2017 21:52:13 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:59 +0000</updated>
                            <resolved>Fri, 27 Jul 2018 18:43:33 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="44431" author="pkajsa" created="Thu, 1 Jun 2017 09:58:22 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;the value &apos;-99.9&apos; does not match any of specified fraction-digits in the union type, so therefore the error occurs. For more details about fraction digits please see &lt;a href=&quot;https://tools.ietf.org/html/rfc7950#section-9.3.4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://tools.ietf.org/html/rfc7950#section-9.3.4&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;BR.&lt;/p&gt;</comment>
                            <comment id="44432" author="pkajsa" created="Thu, 1 Jun 2017 11:36:25 +0000"  >&lt;p&gt;Based on the discussion in yang-dev mailing list I reopened the bug..&lt;/p&gt;</comment>
                            <comment id="44433" author="rovarga" created="Thu, 1 Jun 2017 23:21:32 +0000"  >&lt;p&gt;Hello Dhruv,&lt;/p&gt;

&lt;p&gt;can you enable logging on org.opendaylight.yangtools.yang.data.util.AbstractStringUnionCodec, please?&lt;/p&gt;

&lt;p&gt;it should allow us to understand what went down in the sub-codec, i.e. there should be messages matching:&lt;/p&gt;

&lt;p&gt;                LOG.debug(&quot;Data {} did not match for {}&quot;, data, type, e);&lt;/p&gt;

&lt;p&gt;which would pinpoint the source of the trouble.&lt;/p&gt;</comment>
                            <comment id="44434" author="rovarga" created="Thu, 1 Jun 2017 23:27:19 +0000"  >&lt;p&gt;Also, what version of ODL have you seen this?&lt;/p&gt;</comment>
                            <comment id="44435" author="db929a@att.com" created="Thu, 1 Jun 2017 23:31:50 +0000"  >&lt;p&gt;I used carbon.&lt;br/&gt;
Will update with logs soon.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                            <comment id="64304" author="rovarga" created="Fri, 27 Jul 2018 18:43:33 +0000"  >&lt;p&gt;No feedback, hence closing as cannot reproduce. If this issue crops up, feel free to reopen.&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>8573</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=8573]]></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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i029c7:</customfieldvalue>

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