<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:09:01 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>[MDSAL-204] yang-to-source error on description</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-204</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;yang-to-sources runs into issues for the following sample YANG file:&lt;/p&gt;

&lt;p&gt;module acme {&lt;br/&gt;
  yang-version 1;&lt;br/&gt;
  namespace &quot;urn:acme:simple:test&quot;;&lt;br/&gt;
  prefix acme;&lt;br/&gt;
  organization &quot;acme&quot;;&lt;br/&gt;
  revision &quot;2016-10-31&quot;;&lt;/p&gt;

&lt;p&gt;  container acme {&lt;br/&gt;
    leaf route-distinguisher {&lt;br/&gt;
      description&lt;br/&gt;
        &quot;&amp;lt;ip-addr:comm-val&amp;gt;|&amp;lt;2byte-asnumber:ext-comm-val&amp;gt;|&amp;lt;4byte-asnummber:comm-&lt;br/&gt;
val&amp;gt;&quot;;&lt;/p&gt;

&lt;p&gt;      type string &lt;/p&gt;
{
        length &quot;1..21&quot;;
      }
&lt;p&gt;    } //route-distinguisher&lt;br/&gt;
  }  // container&lt;br/&gt;
}  // module&lt;/p&gt;

&lt;p&gt;Following issue is reported:&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 generate sources with org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl generator&lt;br/&gt;
java.lang.StringIndexOutOfBoundsException: String index out of range: -1&lt;br/&gt;
        at java.lang.AbstractStringBuilder.charAt(AbstractStringBuilder.java:237)&lt;br/&gt;
        at java.lang.StringBuilder.charAt(StringBuilder.java:76)&lt;br/&gt;
        at org.opendaylight.yangtools.sal.java.api.generator.BaseTemplate.formatToParagraph(BaseTemplate.java:562)&lt;br/&gt;
        at org.opendaylight.yangtools.sal.java.api.generator.BaseTemplate.formatDataForJavaDoc(BaseTemplate.java:464)&lt;/p&gt;

&lt;p&gt;Using PYANG this YANG file is processed/validated without any issues.&lt;/p&gt;

&lt;p&gt;The issue is related to the description string. When removing parts from the description, file can be processed without problems:&lt;/p&gt;

&lt;p&gt;   leaf route-distinguisher {&lt;br/&gt;
      description&lt;br/&gt;
        &quot;&amp;lt;ip-addr:comm-val&amp;gt;|&amp;lt;2byte-asnumber:ext-comm-val&amp;gt;&quot;;&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27026">MDSAL-204</key>
            <summary>yang-to-source error on description</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="sven.wisotzky@nokia.com">Sven Wisotzky</reporter>
                        <labels>
                    </labels>
                <created>Mon, 31 Oct 2016 08:55:39 +0000</created>
                <updated>Fri, 9 Mar 2018 18:00:17 +0000</updated>
                            <resolved>Mon, 7 Nov 2016 15:59:05 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="54508" author="martin.ciglan" created="Wed, 2 Nov 2016 08:14:06 +0000"  >&lt;p&gt;moving to yangtools, looks like lexer issue&lt;/p&gt;</comment>
                            <comment id="54509" author="pkajsa" created="Thu, 3 Nov 2016 13:07:11 +0000"  >&lt;p&gt;We tested the attached model and it is not a lexer issue. The problem occurs in BaseTemplate by generation of javadoc, hence moved back to md-sal.&lt;/p&gt;</comment>
                            <comment id="54510" author="martin.ciglan" created="Mon, 7 Nov 2016 13:36:17 +0000"  >&lt;p&gt;fix pushed:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/48055&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/48055&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;should be cherry-picked to Boron eventually&lt;/p&gt;</comment>
                            <comment id="54511" author="martin.ciglan" created="Mon, 7 Nov 2016 14:11:05 +0000"  >&lt;p&gt;stable/boron:&lt;/p&gt;

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

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

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