<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:10:00 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-518] leafref path outside of augmented scope can not be resolved</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-518</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;The following two models:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;module a {
  yang-version 1.1;
  namespace &quot;a&quot;;
  prefix a;

  container a-cont {
    leaf a-leaf-cont {
      type string;
    }
    container a-cont2 {
      leaf a-leaf-cont2 {
        type string;
      }
    }
  }
}


module b {
  yang-version 1.1;
  namespace &quot;b&quot;;
  prefix b;
  import a {
    prefix a;
  }

  augment &quot;/a:a-cont/a:a-cont2&quot; {
    description
      &quot;An augmentation of a leafref typed leaf with path to outside
       of the augmented scope and back to the module a&quot;;
    container b-cont {
      leaf b-aug-leaf {
        type leafref {
          path &quot;../../../a-leaf-cont&quot;;
        }
      }
    }
  }
}&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;result in AbstractTypeProvider.provideTypeForLeafref() failing&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;&#160;
[ERROR] yang-to-sources: Unable to generate sources with org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl generator
 java.lang.IllegalArgumentException: Failed to find leafref target: ../../../a-leaf-cont in module a (QNameModule{ns=b})
 at com.google.common.base.Preconditions.checkArgument (Preconditions.java:459)
 at org.opendaylight.mdsal.binding.yang.types.AbstractTypeProvider.provideTypeForLeafref (AbstractTypeProvider.java:550)
 at org.opendaylight.mdsal.binding.yang.types.AbstractTypeProvider.javaTypeForLeafrefOrIdentityRef (AbstractTypeProvider.java:299)
 at org.opendaylight.mdsal.binding.yang.types.AbstractTypeProvider.javaTypeForSchemaDefinitionType (AbstractTypeProvider.java:193)
 at org.opendaylight.mdsal.binding.generator.impl.AbstractTypeGenerator.resolveLeafSchemaNodeAsMethod (AbstractTypeGenerator.java:1350)
 at org.opendaylight.mdsal.binding.generator.impl.AbstractTypeGenerator.addSchemaNodeToBuilderAsMethod (AbstractTypeGenerator.java:1051)
 at org.opendaylight.mdsal.binding.generator.impl.AbstractTypeGenerator.resolveDataSchemaNodes (AbstractTypeGenerator.java:1004)
 at org.opendaylight.mdsal.binding.generator.impl.AbstractTypeGenerator.containerToGenType (AbstractTypeGenerator.java:302)
 at org.opendaylight.mdsal.binding.generator.impl.AbstractTypeGenerator.addSchemaNodeToBuilderAsMethod (AbstractTypeGenerator.java:1055)
 at org.opendaylight.mdsal.binding.generator.impl.AbstractTypeGenerator.augSchemaNodeToMethods (AbstractTypeGenerator.java:1032)
 at org.opendaylight.mdsal.binding.generator.impl.AbstractTypeGenerator.addRawAugmentGenTypeDefinition (AbstractTypeGenerator.java:936)
 at org.opendaylight.mdsal.binding.generator.impl.AbstractTypeGenerator.addRawAugmentGenTypeDefinition (AbstractTypeGenerator.java:950)
 at org.opendaylight.mdsal.binding.generator.impl.AbstractTypeGenerator.augmentationToGenTypes (AbstractTypeGenerator.java:801)
 at org.opendaylight.mdsal.binding.generator.impl.AbstractTypeGenerator.allAugmentsToGenTypes (AbstractTypeGenerator.java:375)
 at java.util.ArrayList.forEach (ArrayList.java:1257)
 at org.opendaylight.mdsal.binding.generator.impl.AbstractTypeGenerator.&amp;lt;init&amp;gt; (AbstractTypeGenerator.java:203)
 at org.opendaylight.mdsal.binding.generator.impl.CodegenTypeGenerator.&amp;lt;init&amp;gt; (CodegenTypeGenerator.java:32)
 at org.opendaylight.mdsal.binding.generator.impl.BindingGeneratorImpl.generateTypes (BindingGeneratorImpl.java:64)
 at org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl.generateSources (CodeGeneratorImpl.java:70)
 at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.generateSourcesWithOneGenerator (YangToSourcesProcessor.java:383)
 at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.generateSources (YangToSourcesProcessor.java:332)
 at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.conditionalExecute (YangToSourcesProcessor.java:159)
 at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesMojo.execute (YangToSourcesMojo.java:127)
 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="32444">MDSAL-518</key>
            <summary>leafref path outside of augmented scope can not be resolved</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <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="10001">Won&apos;t Do</resolution>
                                        <assignee username="rovarga">Robert Varga</assignee>
                                    <reporter username="miro.kovac">Miroslav Kovac</reporter>
                        <labels>
                    </labels>
                <created>Fri, 28 Feb 2020 12:57:22 +0000</created>
                <updated>Mon, 11 Dec 2023 21:09:48 +0000</updated>
                            <resolved>Mon, 11 Dec 2023 21:09:48 +0000</resolved>
                                                                    <component>Binding codegen</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="67920" author="rovarga" created="Fri, 28 Feb 2020 14:00:09 +0000"  >&lt;p&gt;Hmm, is that actually a correct YANG model?&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
      leaf b-aug-leaf {
        type leafref {
          path &lt;span class=&quot;code-quote&quot;&gt;&quot;../../../a-leaf-cont&quot;&lt;/span&gt;;
        }
      }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;should really be:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;      leaf b-aug-leaf {
        type leafref {
          path &quot;../../../a:a-leaf-cont&quot;;
        }
      }&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;i.e. the way it is written it points to b:a-leaf-cont, which obviously does not exist&lt;/p&gt;</comment>
                            <comment id="72907" author="rovarga" created="Mon, 11 Dec 2023 21:09:48 +0000"  >&lt;p&gt;This is actually a bug in the model. It really points to &apos;../../../b:a-leaf-cont&apos;, which does not exist.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="31515">MDSAL-426</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="32445">MDSAL-528</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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03r93:</customfieldvalue>

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