<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:53:20 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-471] Use of reference keyword in a YANG extension causes YangSyntaxErrorException</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-471</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;Here is a small example of a yang file to demonstrate the problem. It includes the extension in the same module for brevity. The Yangtools version is 0.6.5-Helium-SR3.&lt;/p&gt;

&lt;p&gt;module extension-with-reference {&lt;br/&gt;
    namespace &quot;http://example.com/extension-with-reference&quot;;&lt;br/&gt;
    prefix &quot;ewr&quot;;&lt;/p&gt;

&lt;p&gt;    description&lt;br/&gt;
        &quot;Simple example to see an extension with reference&quot;;&lt;/p&gt;

&lt;p&gt;    extension myalias &lt;/p&gt;
{
        argument &quot;descriptor&quot;;
    }

&lt;p&gt;    container foo {&lt;br/&gt;
        ewr:myalias some-alias &lt;/p&gt;
{
            description &quot;...&quot;;
            reference &quot;...&quot;;
        }
&lt;p&gt;    }&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;This causes following exception:&lt;/p&gt;

&lt;p&gt;org.opendaylight.yangtools.yang.model.parser.api.YangSyntaxErrorException: extraneous input &apos;reference&apos; expecting &lt;/p&gt;
{&apos;}
&lt;p&gt;&apos;, &apos;yin-element&apos;, &apos;yang-version&apos;, &apos;when&apos;, &apos;value&apos;, &apos;uses&apos;, &apos;units&apos;, &apos;unique&apos;, &apos;typedef&apos;, &apos;type&apos;, &apos;submodule&apos;, &apos;status&apos;, &apos;rpc&apos;, &apos;revision-date&apos;, &apos;revision&apos;, &apos;require-instance&apos;, &apos;refine&apos;, &apos;range&apos;, &apos;presence&apos;, &apos;prefix&apos;, &apos;position&apos;, &apos;pattern&apos;, &apos;path&apos;, &apos;output&apos;, &apos;organization&apos;, &apos;ordered-by&apos;, &apos;notification&apos;, &apos;namespace&apos;, &apos;must&apos;, &apos;module&apos;, &apos;min-elements&apos;, &apos;max-elements&apos;, &apos;mandatory&apos;, &apos;list&apos;, &apos;length&apos;, &apos;leaf-list&apos;, &apos;leaf&apos;, &apos;key&apos;, &apos;input&apos;, &apos;include&apos;, &apos;import&apos;, &apos;if-feature&apos;, &apos;identity&apos;, &apos;grouping&apos;, &apos;fraction-digits&apos;, &apos;feature&apos;, &apos;deviate&apos;, &apos;deviation&apos;, &apos;extension&apos;, &apos;error-message&apos;, &apos;error-app-tag&apos;, &apos;enum&apos;, &apos;description&apos;, &apos;default&apos;, &apos;container&apos;, &apos;contact&apos;, &apos;config&apos;, &apos;choice&apos;, &apos;case&apos;, &apos;bit&apos;, &apos;belongs-to&apos;, &apos;base&apos;, &apos;augment&apos;, &apos;anyxml&apos;, IDENTIFIER} in module extension-with-reference on line 15 character 12&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.impl.YangErrorListener.syntaxError(YangErrorListener.java:30)&lt;br/&gt;
	at org.antlr.v4.runtime.ProxyErrorListener.syntaxError(ProxyErrorListener.java:57)&lt;br/&gt;
	at org.antlr.v4.runtime.Parser.notifyErrorListeners(Parser.java:367)&lt;br/&gt;
	at org.antlr.v4.runtime.DefaultErrorStrategy.reportUnwantedToken(DefaultErrorStrategy.java:255)&lt;br/&gt;
	at org.antlr.v4.runtime.DefaultErrorStrategy.sync(DefaultErrorStrategy.java:197)&lt;br/&gt;
	at org.opendaylight.yangtools.antlrv4.code.gen.YangParser.identifier_stmt(YangParser.java:330)&lt;br/&gt;
	at org.opendaylight.yangtools.antlrv4.code.gen.YangParser.container_stmt(YangParser.java:5274)&lt;br/&gt;
	at org.opendaylight.yangtools.antlrv4.code.gen.YangParser.data_def_stmt(YangParser.java:9809)&lt;br/&gt;
	at org.opendaylight.yangtools.antlrv4.code.gen.YangParser.body_stmts(YangParser.java:10002)&lt;br/&gt;
	at org.opendaylight.yangtools.antlrv4.code.gen.YangParser.module_stmt(YangParser.java:10805)&lt;br/&gt;
	at org.opendaylight.yangtools.antlrv4.code.gen.YangParser.yang(YangParser.java:170)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.parseYangSource(YangParserImpl.java:656)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.parseYangSources(YangParserImpl.java:641)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.parseSourcesToBuilders(YangParserImpl.java:385)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.resolveSources(YangParserImpl.java:378)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.parseYangModelSources(YangParserImpl.java:350)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.parseSources(YangParserImpl.java:195)&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="22891">YANGTOOLS-471</key>
            <summary>Use of reference keyword in a YANG extension causes YangSyntaxErrorException</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="martin.ciglan">Martin Ciglan</assignee>
                                    <reporter username="claudia.hwang@ontology.com">Claudia Hwang</reporter>
                        <labels>
                    </labels>
                <created>Thu, 25 Jun 2015 09:08:12 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:34 +0000</updated>
                            <resolved>Wed, 26 Aug 2015 14:36:40 +0000</resolved>
                                                                        <due>Thu, 13 Aug 2015 00:00:00 +0000</due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="43422" author="claudia.hwang@ontology.com" created="Tue, 30 Jun 2015 15:29:36 +0000"  >&lt;p&gt;(In reply to Martin Ciglan from comment #1)&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; *** This bug has been marked as a duplicate of &lt;a href=&quot;https://jira.opendaylight.org/browse/YANGTOOLS-223&quot; title=&quot;Yangtools fails to parse module with description following a YANG extension&quot; class=&quot;issue-link&quot; data-issue-key=&quot;YANGTOOLS-223&quot;&gt;&lt;del&gt;YANGTOOLS-223&lt;/del&gt;&lt;/a&gt; ***&lt;/p&gt;

&lt;p&gt;The bug is similar but is not the same. &lt;a href=&quot;https://jira.opendaylight.org/browse/YANGTOOLS-223&quot; title=&quot;Yangtools fails to parse module with description following a YANG extension&quot; class=&quot;issue-link&quot; data-issue-key=&quot;YANGTOOLS-223&quot;&gt;&lt;del&gt;YANGTOOLS-223&lt;/del&gt;&lt;/a&gt; fixes a problem with the &apos;description&apos; keyword in yang extensions. I get an exception when using the &apos;reference&apos; keyword.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/browse/YANGTOOLS-223&quot; title=&quot;Yangtools fails to parse module with description following a YANG extension&quot; class=&quot;issue-link&quot; data-issue-key=&quot;YANGTOOLS-223&quot;&gt;&lt;del&gt;YANGTOOLS-223&lt;/del&gt;&lt;/a&gt; has been marked as fixed, while I see the exception with the &apos;reference&apos; keyword in Helium-SR3.&lt;/p&gt;</comment>
                            <comment id="43423" author="martin.ciglan" created="Wed, 19 Aug 2015 08:43:43 +0000"  >&lt;p&gt;Hi&lt;/p&gt;

&lt;p&gt;I had a look again and for sure, reference stmt is not added into unknown stmt as sub-stmt, so I can confirm this bug in yangtools Helium branch.&lt;/p&gt;</comment>
                            <comment id="43424" author="martin.ciglan" created="Fri, 21 Aug 2015 12:57:39 +0000"  >&lt;p&gt;fix pushed:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/25571/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/25571/&lt;/a&gt;&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>3859</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=3859]]></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="10325"><![CDATA[Lithium-2]]></customfieldvalue>

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

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