<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:08:35 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>[AAA-85] authEnabled=false always leads to 401</title>
                <link>https://jira.opendaylight.org/browse/AAA-85</link>
                <project id="10102" key="AAA">aaa</project>
                    <description>&lt;p&gt;Up to now, editing etc/org.opendaylight.aaa.authn.cfg file to contain authEnabled=false has lead to every request to be considered authorized.&lt;br/&gt;
But in current Beryllium snapshots, the same edit leads to every request to be considered NOT authorized.&lt;/p&gt;

&lt;p&gt;This is either a regression in functionality, or a new feature which misses documentation (&lt;a href=&quot;https://jira.opendaylight.org/browse/AAA-84&quot; title=&quot;Document differences between Li and Be auth-related config files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;AAA-84&quot;&gt;&lt;del&gt;AAA-84&lt;/del&gt;&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Steps to reproduce:&lt;br/&gt;
0. Start ODL.&lt;br/&gt;
1. feature:install odl-restconf&lt;br/&gt;
2. curl -v 127.0.0.1:8181/restconf/modules&lt;/p&gt;

&lt;p&gt;It does not matter whether the edit was done just before step 2 or any other time before.&lt;br/&gt;
It does not matter which restconf URI is used.&lt;br/&gt;
When the line is edited to authEnabled=true at runtime, requests with correct credentials (admin:admin by default) work.&lt;/p&gt;

&lt;p&gt;Another reproduction, in Sandbox: &lt;a href=&quot;https://jenkins.opendaylight.org/releng/job/aaa-csit-verify-1node-authn/10/robot/report/log.html#s1-s1-t6-k2-k11-k4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/releng/job/aaa-csit-verify-1node-authn/10/robot/report/log.html#s1-s1-t6-k2-k11-k4&lt;/a&gt;&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="22336">AAA-85</key>
            <summary>authEnabled=false always leads to 401</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="10001">Won&apos;t Do</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="vrpolak">Vratko Polak</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Jan 2016 12:01:03 +0000</created>
                <updated>Thu, 21 Mar 2019 11:56:45 +0000</updated>
                            <resolved>Wed, 20 Jan 2016 14:22:24 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="42320" author="vrpolak" created="Mon, 11 Jan 2016 13:13:32 +0000"  >&lt;p&gt;Pasting what the 401 verbose output looks like. Judging from WWW-Authenticate value, this is not from UnauthorizedException.&lt;br/&gt;
The output always looks like that, no matter if it is caused by this Bug or by missing credentials.&lt;/p&gt;

&lt;p&gt;$ curl -v -u &apos;admin:admin&apos; 127.0.0.1:8181/restconf/modules ;echo&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;About to connect() to 127.0.0.1 port 8181 (#0)&lt;/li&gt;
	&lt;li&gt;Trying 127.0.0.1...&lt;/li&gt;
	&lt;li&gt;connected&lt;/li&gt;
	&lt;li&gt;Connected to 127.0.0.1 (127.0.0.1) port 8181 (#0)&lt;/li&gt;
	&lt;li&gt;Server auth using Basic with user &apos;admin&apos;&lt;br/&gt;
&amp;gt; GET /restconf/modules HTTP/1.1&lt;br/&gt;
&amp;gt; Authorization: Basic YWRtaW46YWRtaW4=&lt;br/&gt;
&amp;gt; User-Agent: curl/7.27.0&lt;br/&gt;
&amp;gt; Host: 127.0.0.1:8181&lt;br/&gt;
&amp;gt; Accept: &lt;b&gt;/&lt;/b&gt;&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;lt; HTTP/1.1 401 Unauthorized&lt;br/&gt;
&amp;lt; Set-Cookie: rememberMe=deleteMe; Path=/restconf; Max-Age=0; Expires=Sun, 10-Jan-2016 11:55:24 GMT&lt;/li&gt;
	&lt;li&gt;Authentication problem. Ignoring this.&lt;br/&gt;
&amp;lt; WWW-Authenticate: BASIC realm=&quot;application&quot;&lt;br/&gt;
&amp;lt; Content-Length: 0&lt;br/&gt;
&amp;lt; Server: Jetty(8.1.15.v20140411)&lt;br/&gt;
&amp;lt;&lt;/li&gt;
	&lt;li&gt;Connection #0 to host 127.0.0.1 left intact&lt;/li&gt;
	&lt;li&gt;Closing connection #0&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="42321" author="vrpolak" created="Tue, 12 Jan 2016 09:40:38 +0000"  >&lt;p&gt;This is what log looks like, attached segment where request without -u was sent at 09:30:51 and request with admin:admin at 09:30:54.&lt;/p&gt;

&lt;p&gt;Crucial reports seem to be these ones:&lt;/p&gt;

&lt;p&gt;2016-01-12 09:30:51,721 | DEBUG | restconf/modules | BasicHttpAuthenticationFilter    | 233 - org.apache.shiro.web - 1.2.3 | Authentication required: sending 401 Authentication challenge response.&lt;/p&gt;

&lt;p&gt;2016-01-12 09:30:54,942 | INFO  | restconf/modules | TokenAuthRealm                   | 236 - org.opendaylight.aaa.shiro - 0.3.0.SNAPSHOT | Unknown OAuth2 Token Access Request&lt;br/&gt;
org.apache.shiro.authc.AuthenticationException: Could not validate the token admin&lt;br/&gt;
        at org.opendaylight.aaa.shiro.realm.TokenAuthRealm.validate(TokenAuthRealm.java:248)&lt;span class=&quot;error&quot;&gt;&amp;#91;236:org.opendaylight.aaa.shiro:0.3.0.SNAPSHOT&amp;#93;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;Common  precondition seem to be this one:&lt;/p&gt;

&lt;p&gt;2016-01-12 09:30:51,719 | TRACE | restconf/modules | PathMatchingFilter               | 233 - org.apache.shiro.web - 1.2.3 | Filter &apos;authcBasic&apos; is enabled for the current request under path &apos;/**&apos; with config &lt;span class=&quot;error&quot;&gt;&amp;#91;null&amp;#93;&lt;/span&gt;.  Delegating to subclass implementation for &apos;onPreHandle&apos; check.&lt;/p&gt;</comment>
                            <comment id="42326" author="vrpolak" created="Tue, 12 Jan 2016 09:40:38 +0000"  >&lt;p&gt;Attachment karaf_20160112.log has been added with description: Segment of karaf.log&lt;/p&gt;</comment>
                            <comment id="42322" author="rgoulding" created="Tue, 12 Jan 2016 17:53:24 +0000"  >&lt;p&gt;Some semantics have changed such that this config file may not work the same way anymore.  An equivalent change should work;&lt;/p&gt;

&lt;p&gt;In shiro.ini (&lt;a href=&quot;https://github.com/opendaylight/aaa/blob/99de61dde20da19d8ad050fea85ce31eb8d62b17/aaa-shiro/src/main/resources/shiro.ini&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/opendaylight/aaa/blob/99de61dde20da19d8ad050fea85ce31eb8d62b17/aaa-shiro/src/main/resources/shiro.ini&lt;/a&gt;) do the following:&lt;/p&gt;

&lt;p&gt;Change &quot;/** = authcBasic&quot; to &quot;/** = anon&quot;&lt;/p&gt;

&lt;p&gt;Sorry for not documenting this;  I will dig deeper when I get the chance.  This should help immediately and I&apos;ll push some documentation to describe this.&lt;/p&gt;</comment>
                            <comment id="42323" author="rgoulding" created="Tue, 12 Jan 2016 18:06:45 +0000"  >&lt;p&gt;Also, you can install odl-restconf-noauth which will not activate the AAA service.&lt;/p&gt;</comment>
                            <comment id="42324" author="vrpolak" created="Thu, 14 Jan 2016 15:16:00 +0000"  >&lt;p&gt;&amp;gt; Change &quot;/** = authcBasic&quot; to &quot;/** = anon&quot;&lt;/p&gt;

&lt;p&gt;This works.&lt;/p&gt;

&lt;p&gt;With this information, I guess this can be marked as WONTFIX.&lt;/p&gt;</comment>
                            <comment id="42325" author="rgoulding" created="Wed, 20 Jan 2016 14:22:24 +0000"  >&lt;p&gt;Documentation related to how to turn AAA off is included in the wiki here now:&lt;br/&gt;
&lt;a href=&quot;https://wiki.opendaylight.org/view/AAA:Turn_aaa_off&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://wiki.opendaylight.org/view/AAA:Turn_aaa_off&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12948" name="karaf_20160112.log" size="34683" author="vrpolak" created="Tue, 12 Jan 2016 09:40:38 +0000"/>
                    </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>4922</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=4922]]></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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i02407:</customfieldvalue>

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