[
https://issues.apache.org/jira/browse/FINERACT-2391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nikesh Tawde updated FINERACT-2391:
-----------------------------------
Description:
When a POST request is sent to
*_{{fineract-provider/api/v1/self/registration}}_* it fails with HTTP 500 with
the following log trace.
{code:java}
fineract-development | java.lang.ClassCastException: class java.lang.String
cannot be cast to class org.apache.fineract.useradministration.domain.AppUser
(java.lang.String is in module java.base of loader 'bootstrap';
org.apache.fineract.useradministration.domain.AppUser is in unnamed module of
loader 'app')
fineract-development | at
org.apache.fineract.infrastructure.core.domain.AuditorAwareImpl.getCurrentAuditor(AuditorAwareImpl.java:39)
{code}
I suspect it happens due to *_{{anonymousUser}}_* principal in
*_{{AnonymousAuthenticationFilter}}_* and {{_*getCurrentAuditor*_}} tries to
cast it into {{{}_*AppUser*_{}}}.
was:
When a POST request is sent to
*_{{fineract-provider/api/v1/self/registration}}_* it fails with HTTP 500 with
the following log trace.
{code:java}
fineract-development | java.lang.ClassCastException: class java.lang.String
cannot be cast to class org.apache.fineract.useradministration.domain.AppUser
(java.lang.String is in module java.base of loader 'bootstrap';
org.apache.fineract.useradministration.domain.AppUser is in unnamed module of
loader 'app')
fineract-development | at
org.apache.fineract.infrastructure.core.domain.AuditorAwareImpl.getCurrentAuditor(AuditorAwareImpl.java:39)
{code}
I suspect it happens due to *_{{anonymousUser}}_* principal in
*_{{AnonymousAuthenticationFilter}}_* and getCurrentAuditor tries to cast it
into {{{}_*AppUser*_{}}}.
> Client self-registration fails with HTTP 500
> --------------------------------------------
>
> Key: FINERACT-2391
> URL: https://issues.apache.org/jira/browse/FINERACT-2391
> Project: Apache Fineract
> Issue Type: Bug
> Components: User Management
> Affects Versions: 1.13.0, 1.14.0
> Reporter: Nikesh Tawde
> Priority: Major
> Fix For: 1.13.0, 1.14.0
>
>
> When a POST request is sent to
> *_{{fineract-provider/api/v1/self/registration}}_* it fails with HTTP 500
> with the following log trace.
> {code:java}
> fineract-development | java.lang.ClassCastException: class java.lang.String
> cannot be cast to class org.apache.fineract.useradministration.domain.AppUser
> (java.lang.String is in module java.base of loader 'bootstrap';
> org.apache.fineract.useradministration.domain.AppUser is in unnamed module of
> loader 'app')
> fineract-development | at
> org.apache.fineract.infrastructure.core.domain.AuditorAwareImpl.getCurrentAuditor(AuditorAwareImpl.java:39)
> {code}
> I suspect it happens due to *_{{anonymousUser}}_* principal in
> *_{{AnonymousAuthenticationFilter}}_* and {{_*getCurrentAuditor*_}} tries to
> cast it into {{{}_*AppUser*_{}}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)