<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:15:54 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>[NETCONF-786] ODL does not consider error-msg statement in yang file at RESTCONF</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-786</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;&lt;b&gt;Describe the bug&lt;/b&gt;&lt;br/&gt;
ODL returns default error (or generated by itself) to client.&lt;/p&gt;

&lt;p&gt;I have yang file like this:&lt;br/&gt;
&lt;a href=&quot;https://user-images.githubusercontent.com/10077290/123244465-a1642f80-d4ec-11eb-9127-53b86a28190a.png&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://user-images.githubusercontent.com/10077290/123244465-a1642f80-d4ec-11eb-9127-53b86a28190a.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If i make request like this:&lt;br/&gt;
&lt;a href=&quot;https://user-images.githubusercontent.com/10077290/123244677-d1133780-d4ec-11eb-94c2-f5b27a62d97a.png&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://user-images.githubusercontent.com/10077290/123244677-d1133780-d4ec-11eb-94c2-f5b27a62d97a.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I got this error:&lt;br/&gt;
&lt;a href=&quot;https://user-images.githubusercontent.com/10077290/123244752-dff9ea00-d4ec-11eb-8042-b5ae8fbac791.png&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://user-images.githubusercontent.com/10077290/123244752-dff9ea00-d4ec-11eb-8042-b5ae8fbac791.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But if make request with other netconf client, i got correct error:&lt;br/&gt;
&lt;a href=&quot;https://user-images.githubusercontent.com/10077290/123245020-1f283b00-d4ed-11eb-9510-74c30bbf3dde.png&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://user-images.githubusercontent.com/10077290/123245020-1f283b00-d4ed-11eb-9510-74c30bbf3dde.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Expected behavior&lt;/b&gt;&lt;br/&gt;
We should see error message which is in the yang file&lt;/p&gt;</description>
                <environment></environment>
        <key id="34121">NETCONF-786</key>
            <summary>ODL does not consider error-msg statement in yang file at RESTCONF</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="10000">Done</resolution>
                                        <assignee username="rovarga">Robert Varga</assignee>
                                    <reporter username="kageja">Onur GURSOY</reporter>
                        <labels>
                            <label>restconf</label>
                    </labels>
                <created>Thu, 24 Jun 2021 11:39:37 +0000</created>
                <updated>Thu, 8 Jul 2021 10:40:25 +0000</updated>
                            <resolved>Tue, 29 Jun 2021 10:35:07 +0000</resolved>
                                                    <fixVersion>2.0.0</fixVersion>
                    <fixVersion>1.13.3</fixVersion>
                                    <component>restconf-nb</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="69323" author="rovarga" created="Thu, 24 Jun 2021 12:48:18 +0000"  >&lt;p&gt;It would seem the exception handling code does not recognize YangInvalidValueException, or more specifically yang.common.YangError being attached to an exception.&lt;/p&gt;</comment>
                            <comment id="69324" author="JIRAUSER13706" created="Thu, 24 Jun 2021 18:00:31 +0000"  >&lt;p&gt;you&apos;re master, you&apos;re right. In that case, what we can do ? we can release hottfix or we should wait next release date? I guess, it can be 27 July, right? Or we can release a patch unofficial?&lt;/p&gt;

&lt;p&gt;Btw, you can describe that where is the exception handling code ? you know that there are many project and source of the ODL.Maybe, I can try to help.&lt;/p&gt;

&lt;p&gt;Many thanks,&lt;/p&gt;

&lt;p&gt;With My Best Regards,&lt;/p&gt;</comment>
                            <comment id="69325" author="rovarga" created="Mon, 28 Jun 2021 12:40:14 +0000"  >&lt;p&gt;The error handling is quite tricky here, but &lt;a href=&quot;https://git.opendaylight.org/gerrit/c/netconf/+/96683&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/c/netconf/+/96683&lt;/a&gt; should work for this particular case.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="34125">YANGTOOLS-1300</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="34126">YANGTOOLS-1301</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|i03yfb:</customfieldvalue>

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