<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:09:21 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-280] Binding v2 generator exception: Failed to find leafref target</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-280</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;During generating sources for this model:&lt;/p&gt;

&lt;p&gt;module test {&lt;/p&gt;

&lt;p&gt;    yang-version 1;&lt;br/&gt;
    namespace &quot;urn:opendaylight:params:xml:ns:yang:test&quot;;&lt;br/&gt;
    prefix &quot;test&quot;;&lt;/p&gt;

&lt;p&gt;    revision &quot;2017-02-24&quot; &lt;/p&gt;
{
        description &quot;Initial revision of test model.&quot;;
    }

&lt;p&gt;    container testContainer {&lt;br/&gt;
        list testList {&lt;br/&gt;
            leaf testLeaf {&lt;br/&gt;
                type enumeration {&lt;br/&gt;
                    enum enum1 &lt;/p&gt;
{
                        value 1;
                    }
&lt;p&gt;                    enum enum2 &lt;/p&gt;
{
                        value 2;
                    }
&lt;p&gt;                }&lt;br/&gt;
            }&lt;br/&gt;
        }&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;    notification testLeafrefNotification {&lt;br/&gt;
        leaf tesLeafref {&lt;br/&gt;
            type leafref &lt;/p&gt;
{
                path &quot;/test:testContainer/test:testList/test:testLeaf&quot;;
            }
&lt;p&gt;        }&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;The exception is:&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.mdsal.binding.javav2.maven.api.gen.plugin.CodeGeneratorImpl generator             &lt;br/&gt;
java.lang.IllegalArgumentException: Failed to find leafref target: /test:testContainer/test:testList/test:testLeaf in module test (QNameModule&lt;/p&gt;
{ns=urn:openda
ylight:params:xml:ns:yang:test, rev=2017-02-24}
&lt;p&gt;)                                                                                                            &lt;br/&gt;
        at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145)                                                                       &lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.generator.yang.types.TypeProviderImpl.provideTypeForLeafref(TypeProviderImpl.java:675)                     &lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.generator.yang.types.TypeProviderImpl.javaTypeForLeafrefOrIdentityRef(TypeProviderImpl.java:612)           &lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.generator.yang.types.TypeProviderImpl.javaTypeForSchemaDefType(TypeProviderImpl.java:440)                  &lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.generator.yang.types.TypeProviderImpl.javaTypeForSchemaDefinitionType(TypeProviderImpl.java:149)           &lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.generator.impl.GenHelperUtil.resolveLeafSchemaNodeAsMethod(GenHelperUtil.java:658)                         &lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.generator.impl.GenHelperUtil.addSchemaNodeToBuilderAsMethod(GenHelperUtil.java:526)                        &lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.generator.impl.GenHelperUtil.resolveDataSchemaNodes(GenHelperUtil.java:220)                                &lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.generator.impl.GenHelperUtil.resolveNotification(GenHelperUtil.java:436)                                   &lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.generator.impl.ModuleToGenType.notificationsToGenType(ModuleToGenType.java:147)                            &lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.generator.impl.ModuleToGenType.generate(ModuleToGenType.java:54)                                           &lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.generator.impl.BindingGeneratorImpl.generateTypes(BindingGeneratorImpl.java:126)                           &lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.maven.api.gen.plugin.CodeGeneratorImpl.generateSources(CodeGeneratorImpl.java:77)                          &lt;br/&gt;
        at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.generateSourcesWithOneGenerator(YangToSourcesProcessor.java:333)           &lt;br/&gt;
        at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.generateSources(YangToSourcesProcessor.java:275)                           &lt;br/&gt;
        at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.execute(YangToSourcesProcessor.java:96)                                    &lt;br/&gt;
        at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.conditionalExecute(YangToSourcesProcessor.java:117)                        &lt;br/&gt;
        at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesMojo.execute(YangToSourcesMojo.java:121)                                             &lt;br/&gt;
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)                                                &lt;br/&gt;
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)                                                                  &lt;br/&gt;
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)                                                                  &lt;br/&gt;
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)                                                                  &lt;br/&gt;
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)                                         &lt;br/&gt;
        at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:200)                             &lt;br/&gt;
        at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:196)                             &lt;br/&gt;
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)           &lt;br/&gt;
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)                                                                          &lt;br/&gt;
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)           &lt;br/&gt;
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)                                                                  &lt;br/&gt;
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)                                                                  &lt;br/&gt;
        at java.lang.Thread.run(Thread.java:748)                              &lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; yang-to-sources: One or more code generators failed, including failed list(generatorClass=exception) &lt;/p&gt;
{org.opendaylight.mdsal.binding.javav2.maven.api.gen.plugin.CodeGeneratorImpl=java.lang.IllegalArgumentException}

&lt;p&gt;This exception is thrown when notification contains leafref to leaf which is enumeration.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27102">MDSAL-280</key>
            <summary>Binding v2 generator exception: Failed to find leafref target</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="han.jie@zte.com.cn">Jie Han</assignee>
                                    <reporter username="andrej.zan">Andrej Z&#225;&#328;</reporter>
                        <labels>
                    </labels>
                <created>Mon, 31 Jul 2017 09:51:53 +0000</created>
                <updated>Fri, 9 Mar 2018 18:00:22 +0000</updated>
                            <resolved>Mon, 14 Aug 2017 21:24:57 +0000</resolved>
                                                                    <component>Binding V2 codegen</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="54729" author="han.jie@zte.com.cn" created="Thu, 3 Aug 2017 10:15:41 +0000"  >&lt;p&gt;Fixed by this patch:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/61085&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/61085&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="54730" author="rovarga" created="Mon, 14 Aug 2017 09:48:33 +0000"  >&lt;p&gt;Carbon: &lt;a href=&quot;https://git.opendaylight.org/gerrit/61602&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/61602&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="54731" author="anipbu" created="Mon, 14 Aug 2017 17:32:00 +0000"  >&lt;p&gt;A patch was submitted to revert the changes and fix this bug in Carbon SR2:&lt;/p&gt;

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

&lt;p&gt;To better assess the impact of this bug and fix, could someone from your team please help us identify the following:&lt;br/&gt;
Regression: Is this bug a regression of functionality/performance/feature compared to Carbon?&lt;br/&gt;
Severity: Could you elaborate on the severity of this bug?  Is this a BLOCKER such that we cannot release Carbon SR2 without it?&lt;br/&gt;
Workaround: Is there a workaround such that we can write a release note instead?&lt;br/&gt;
Testing: Could you also elaborate on the testing of this patch?  How extensively has this patch been tested?  Is it covered by any unit tests or system tests?  &lt;br/&gt;
Impact: Does this fix impact any dependent projects?&lt;/p&gt;</comment>
                            <comment id="54732" author="rovarga" created="Mon, 14 Aug 2017 19:10:22 +0000"  >&lt;p&gt;Regression:&lt;/p&gt;

&lt;p&gt;No.&lt;/p&gt;

&lt;p&gt;Severity:&lt;/p&gt;

&lt;p&gt;The issue prevents Binding v2 from being adopted by our end users, &lt;/p&gt;

&lt;p&gt;Workaround:&lt;/p&gt;

&lt;p&gt;None.&lt;/p&gt;

&lt;p&gt;Testing:&lt;/p&gt;

&lt;p&gt;The patch includes a unit test for the specific failure and has not introduced any detectable regression.&lt;/p&gt;

&lt;p&gt;Impact:&lt;/p&gt;

&lt;p&gt;The fix for this issue has no effect on downstream projects within the Simultaneous Release. The presence of this issue blocks adoption of a Carbon feature by our end users. Given the timeline (our next Carbon deliverable is SR3 on 11/9), I believe it is crucial we deliver the fix in SR2.&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>8910</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=8910]]></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="10337"><![CDATA[Carbon-SR2]]></customfieldvalue>

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

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