Nikesh Tawde created FINERACT-2391:
--------------------------------------
Summary: 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
Fix For: 1.14.0, 1.13.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)