<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:53:32 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-537] Yang parsing succeeds with missing &apos;}&apos; in leaf</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-537</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;If you omit the ending &apos;}&apos; for a leaf statement, parsing succeeds and code is generated, or at least some of it as in some cases Java compilation may fail. &lt;/p&gt;

&lt;p&gt;Example: in the mdsal project, go to mdsal/model/ietf/ietf-restconf and do mvn clean. Open src/main/yang/ietf-restconf&amp;#64;2013-10-19.yang. On line 189, remove the ending &apos;}&apos;:&lt;/p&gt;

&lt;p&gt;        leaf edit-id &lt;/p&gt;
{
          type string;
          description
            &quot;Arbitrary string index for the edit.
             Error messages returned by the server pertaining
             to a specific edit will be identified by this
             value.&quot;;
        }
&lt;p&gt; --&amp;gt; line 189&lt;/p&gt;

&lt;p&gt;Run mvn and you should see yang parsing succeed and files generated but a Java compilation error.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="22957">YANGTOOLS-537</key>
            <summary>Yang parsing succeeds with missing &apos;}&apos; in leaf</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="-1">Unassigned</assignee>
                                    <reporter username="tpantelis">Tom Pantelis</reporter>
                        <labels>
                    </labels>
                <created>Tue, 27 Oct 2015 22:40:38 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:40 +0000</updated>
                            <resolved>Sat, 31 Oct 2015 20:13:24 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="43621" author="rovarga" created="Wed, 28 Oct 2015 09:12:43 +0000"  >&lt;p&gt;There is also a report of the following:&lt;/p&gt;

&lt;p&gt;2)&lt;br/&gt;
opendaylight-user@root&amp;gt;feature:install odl-integration-compatible-with-all &lt;br/&gt;
line 93:0 extraneous input &apos;}&apos; expecting &lt;/p&gt;
{&amp;lt;EOF&amp;gt;, SEP}&lt;br/&gt;
line 124:13 extraneous input &apos;,&apos; expecting {&apos;}&apos;, SEP, IDENTIFIER}&lt;br/&gt;
line 93:0 extraneous input &apos;}&apos; expecting {&amp;lt;EOF&amp;gt;, SEP}
&lt;p&gt;line 124:13 extraneous input &apos;,&apos; expecting &lt;/p&gt;
{&apos;}&apos;, SEP, IDENTIFIER}&lt;br/&gt;
opendaylight-user@root&amp;gt;line 124:13 extraneous input &apos;,&apos; expecting {&apos;}
&lt;p&gt;&apos;, SEP, IDENTIFIER}&lt;/p&gt;

&lt;p&gt;Which seems to be related.&lt;/p&gt;</comment>
                            <comment id="43622" author="tpantelis" created="Wed, 28 Oct 2015 10:05:22 +0000"  >&lt;p&gt;With the old parser you get:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; Failed to execute goal org.opendaylight.yangtools:yang-maven-plugin:0.7.2-SNAPSHOT:generate-sources (default) on project ietf-restconf: yang-to-sources: Unable to parse yang files from /home/mininet/ODL/lithium/yangtools/model/ietf/ietf-restconf/src/main/yang: Failed to parse yang data: extraneous input &apos;leaf&apos; expecting &lt;/p&gt;
{&apos;}
&lt;p&gt;&apos;, &apos;when&apos;, &apos;units&apos;, &apos;type&apos;, &apos;status&apos;, &apos;reference&apos;, &apos;must&apos;, &apos;mandatory&apos;, &apos;if-feature&apos;, &apos;description&apos;, &apos;default&apos;, &apos;config&apos;, IDENTIFIER}&lt;/p&gt;</comment>
                            <comment id="43623" author="rovarga" created="Sat, 31 Oct 2015 11:23:10 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/29025&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/29025&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="43624" author="tpantelis" created="Sat, 31 Oct 2015 20:13:24 +0000"  >&lt;p&gt;I tried ietf-restconf syntax error example again and I see the error reported by the syntax paerser:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; no viable alternative at input &apos;&amp;lt;EOF&amp;gt;&apos; in module ietf-restconf on line 690 character 2&lt;br/&gt;
org.opendaylight.yangtools.yang.model.parser.api.YangSyntaxErrorException: no viable alternative at input &apos;&amp;lt;EOF&amp;gt;&apos; in module ietf-restconf on line 690 character 2&lt;/p&gt;

&lt;p&gt;However I also see this exception afterwards:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; yang-to-sources: Unable to parse yang files from /home/mininet/ODL/mdsal/model/ietf/ietf-restconf/src/main/yang&lt;br/&gt;
java.lang.NullPointerException&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.YangStatementSourceImpl.writeLinkage(YangStatementSourceImpl.java:82)&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.stmt.reactor.SourceSpecificContext.loadStatements(SourceSpecificContext.java:295)&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.stmt.reactor.BuildGlobalContext.loadPhaseStatements(BuildGlobalContext.java:208)&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.stmt.reactor.BuildGlobalContext.buildEffective(BuildGlobalContext.java:174)&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.stmt.reactor.CrossSourceStatementReactor$BuildAction.buildEffective(CrossSourceStatementReactor.java:107)&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.stmt.reactor.CrossSourceStatementReactor$BuildAction.buildEffective(CrossSourceStatementReactor.java:125)&lt;br/&gt;
        at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.processYang(YangToSourcesProcessor.java:167)&lt;br/&gt;
        at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.execute(YangToSourcesProcessor.java:92)&lt;br/&gt;
        at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesMojo.execute(YangToSourcesMojo.java:116)&lt;/p&gt;

&lt;p&gt;The NPE is what is reported in the summary by maven:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; Failed to execute goal org.opendaylight.yangtools:yang-maven-plugin:0.8.0-SNAPSHOT:generate-sources (binding) on project ietf-restconf: yang-to-sources: Unable to parse yang files from /home/mininet/ODL/mdsal/model/ietf/ietf-restconf/src/main/yang: NullPointerException -&amp;gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;Help 1&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Even though the parser failed the invalid syntax, an NPE should not occur - it looks sloppy.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="19348">INTDIST-42</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_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4539</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=4539]]></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="10351"><![CDATA[Beryllium-M5]]></customfieldvalue>

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

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