<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:08:41 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-121] Deleting a user and recreating it fails using the aaa-cli-jar</title>
                <link>https://jira.opendaylight.org/browse/AAA-121</link>
                <project id="10102" key="AAA">aaa</project>
                    <description>&lt;p&gt;Creating a user, delete the user, and recreate the same user fails with:&lt;/p&gt;

&lt;p&gt;Aborting due to IDMStoreException (use -X to see full stack trace): org.opendaylight.aaa.h2.persistence.StoreException: SQL Exception : org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: &quot;PRIMARY_KEY_7 ON PUBLIC.GRANTS(GRANTID) VALUES (&apos;tim@sdn@user@sdn@sdn&apos;, 1)&quot;; SQL statement:&lt;br/&gt;
insert into grants  (grantid,domainid,userid,roleid) values(?,?,?,?) &lt;span class=&quot;error&quot;&gt;&amp;#91;23505-191&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Please see attachment for full trace.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="22372">AAA-121</key>
            <summary>Deleting a user and recreating it fails using the aaa-cli-jar</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="vorburger">Michael Vorburger</assignee>
                                    <reporter username="trozet">Tim Rozet</reporter>
                        <labels>
                    </labels>
                <created>Tue, 4 Apr 2017 21:19:25 +0000</created>
                <updated>Thu, 21 Mar 2019 11:56:47 +0000</updated>
                            <resolved>Wed, 5 Apr 2017 20:56:05 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="42379" author="trozet@redhat.com" created="Tue, 4 Apr 2017 21:19:25 +0000"  >&lt;p&gt;Attachment aaa_bug.txt has been added with description: log&lt;/p&gt;</comment>
                            <comment id="42377" author="vorburger" created="Wed, 5 Apr 2017 10:28:41 +0000"  >&lt;p&gt;+Ryan&lt;/p&gt;

&lt;p&gt;Confirming (just reproduced) that this appears to be a bug in AAA&lt;/p&gt;

&lt;p&gt;It&apos;s not actually in the (&quot;my&quot;) aaa-cli-jar code, but in the underlying aaa-h2-store code that calls into... it looks like users actually aren&apos;t cleaned out properly on delete - the entry/ies in the grant table would have to be deleted too?&lt;/p&gt;

&lt;p&gt;I&apos;ll try to propose a change that fixes this...&lt;/p&gt;</comment>
                            <comment id="42378" author="vorburger" created="Wed, 5 Apr 2017 11:20:30 +0000"  >&lt;p&gt;&amp;gt; in the underlying aaa-h2-store code that calls into... it looks like &lt;br/&gt;
&amp;gt; users actually aren&apos;t cleaned out properly on delete - the entry/ies&lt;/p&gt;

&lt;p&gt;turns out this was kinda specific to aaa-cli-jar actually... the aaa-cli for the Karaf commands is slightly &quot;lower level&quot;, and while its remove-user would suffer from the same exception, the design choice there seems to be to let administrators have to do remove-grant manually.  &lt;/p&gt;

&lt;p&gt;In aaa-cli-jar this is, intentionally, simplified (you just say -a to get an admin user, without being exposed to grants &amp;amp; roles), it made sense to make the --deleteUser automatically clear out the role grants, because the --newUser originally implicitly created them also.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://wiki.opendaylight.org/view/AAA:Changing_Account_Passwords#aaa-cli-jar&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://wiki.opendaylight.org/view/AAA:Changing_Account_Passwords#aaa-cli-jar&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;gt; I&apos;ll try to propose a change that fixes this...&lt;/p&gt;

&lt;p&gt;==&amp;gt; &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/54350/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/54350/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12949" name="aaa_bug.txt" size="3057" author="trozet" created="Tue, 4 Apr 2017 21:19:25 +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>8157</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=8157]]></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|i02487:</customfieldvalue>

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