<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 22:29:01 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 add field=key&field=summary to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>FOLIO Jira</title>
    <link>https://folio-org.atlassian.net</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>1001.0.0-SNAPSHOT</version>
        <build-number>100246</build-number>
        <build-date>07-02-2024</build-date>
    </build-info>

<item>
            <title>[MODUSERSKC-8] (PoC env) Token validation error when resetting password</title>
                <link>https://folio-org.atlassian.net/browse/MODUSERSKC-8</link>
                <project id="10260" key="MODUSERSKC">mod-users-keycloak</project>
                    <description>&lt;p&gt;&lt;b&gt;Overview:&lt;/b&gt; Token validation error when resetting password&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Preconditions:&lt;/b&gt;&#160;&lt;/p&gt;

&lt;p&gt;On PoC env:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;a user exists in the system (POST /users-keycloak/users)&lt;/li&gt;
	&lt;li&gt;given user has credentials created (POST /authn/credentials)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;b&gt;Steps to Reproduce:&lt;/b&gt;&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Generate password reset link for a user from Preconditions (POST /users-keycloak/password-reset/link)&lt;/li&gt;
	&lt;li&gt;Copy access token from the link generated at previous Step (copy everything after &quot;password/&quot;)&lt;/li&gt;
	&lt;li&gt;Reset password for user (POST /users-keycloak/password-reset/reset) using copied access token&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&lt;b&gt;Expected Results:&lt;/b&gt; Reset request yielded success response&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Actual Results:&lt;/b&gt; Response with status &quot;422&quot; and token validation error in body:&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;
{
&#160; &#160; &lt;span class=&quot;code-quote&quot;&gt;&quot;errors&quot;&lt;/span&gt;: [
&#160; &#160; &#160; &#160; {
&#160; &#160; &#160; &#160; &#160; &#160; &lt;span class=&quot;code-quote&quot;&gt;&quot;message&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;Invalid token.&quot;&lt;/span&gt;,
&#160; &#160; &#160; &#160; &#160; &#160; &lt;span class=&quot;code-quote&quot;&gt;&quot;code&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;link.invalid&quot;&lt;/span&gt;
&#160; &#160; &#160; &#160; }
&#160; &#160; ],
&#160; &#160; &lt;span class=&quot;code-quote&quot;&gt;&quot;total_records&quot;&lt;/span&gt;: 1
}&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;b&gt;Additional Information:&lt;/b&gt;&lt;br/&gt;
See attached screencast: &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;/rest/api/3/attachment/content/63842&quot; title=&quot;PoC_reset_password_token_validation_error.mp4 attached to MODUSERSKC-8&quot; data-attachment-type=&quot;file&quot; data-attachment-name=&quot;PoC_reset_password_token_validation_error.mp4&quot; data-media-services-type=&quot;file&quot; data-media-services-id=&quot;47935061-159d-4621-a695-d546987d3c3a&quot; rel=&quot;noreferrer&quot;&gt;PoC_reset_password_token_validation_error.mp4&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Interested parties:&lt;/b&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="79193">MODUSERSKC-8</key>
            <summary>(PoC env) Token validation error when resetting password</summary>
                <type id="10001" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium">Bug</type>
                                            <priority id="10005" iconUrl="https://dev.folio.org/assets/jira-priority/tbd.svg">TBD</priority>
                        <status id="6" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10003">Done</resolution>
                                                        <assignee accountid="712020:72e9e005-8aea-4bc1-9fcc-65e108c2d39b">Oleksandr Oliinyk</assignee>
                                                                <reporter accountid="61af2efff24150007266ea04">Yauhen Viazau</reporter>
                                    <labels>
                            <label>back-end</label>
                            <label>epam-eureka</label>
                    </labels>
                <created>Mon, 15 Jan 2024 12:28:57 +0000</created>
                <updated>Fri, 26 Jan 2024 03:18:27 +0000</updated>
                            <resolved>Fri, 26 Jan 2024 03:18:27 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                                                            <comment id="188036" author="712020:72e9e005-8aea-4bc1-9fcc-65e108c2d39b" created="Mon, 15 Jan 2024 12:42:55 +0000"  >&lt;p&gt;Seems like the issue is related to upgrading Keycloak to 23&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;
ERROR [org.keycloak.protocol.oidc.mappers.ScriptBasedOIDCProtocolMapper] (executor-thread-7646) Error during execution of ProtocolMapper script: org.keycloak.scripting.ScriptExecutionException: Could not execute script &lt;span class=&quot;code-quote&quot;&gt;&apos;token-mapper-script_Password reset action mapper&apos;&lt;/span&gt; problem was: TypeError: &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; has no such function &lt;span class=&quot;code-quote&quot;&gt;&quot;getDecodedFormParameters&quot;&lt;/span&gt; in &amp;lt;eval&amp;gt; at line number 2 &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                                                            <comment id="188037" author="61af2efff24150007266ea04" created="Fri, 19 Jan 2024 15:15:35 +0000"  >&lt;p&gt;Tested on Eureka PoC environment - works as expected &lt;img class=&quot;emoticon&quot; src=&quot;/images/icons/emoticons/check.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;Using API calls from the description, password reset link can be generated, and then token from it can be used to rest password. User can then login using new password.&lt;/p&gt;

&lt;p&gt;See screencast: &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;/rest/api/3/attachment/content/63841&quot; title=&quot;MODUSERSKC-8_fixed_poc.mp4 attached to MODUSERSKC-8&quot; data-attachment-type=&quot;file&quot; data-attachment-name=&quot;MODUSERSKC-8_fixed_poc.mp4&quot; data-media-services-type=&quot;file&quot; data-media-services-id=&quot;60af589f-05b6-41d7-99f3-404fb5774aee&quot; rel=&quot;noreferrer&quot;&gt;MODUSERSKC-8_fixed_poc.mp4&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;The same also is working in case the user does not have credentials yet&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="63841" name="MODUSERSKC-8_fixed_poc.mp4" size="7559406" author="61af2efff24150007266ea04" created="Fri, 19 Jan 2024 15:12:09 +0000"/>
                            <attachment id="63842" name="PoC_reset_password_token_validation_error.mp4" size="12891421" author="61af2efff24150007266ea04" created="Mon, 15 Jan 2024 12:38:09 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummarycf">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10057" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Development Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10149"><![CDATA[Eureka]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10063" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>PO Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10106" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>RCA Group</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10385"><![CDATA[Related dependency upgrade]]></customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="230">Eureka Sprint 44</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10044" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10024" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>[CHART] Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 15 Jan 2024 12:42:55 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10025" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>[CHART] Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>