You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Adam Saghy (Jira)" <ji...@apache.org> on 2025/10/09 12:29:00 UTC

[jira] [Commented] (FINERACT-2391) Client self-registration fails with HTTP 500

    [ https://issues.apache.org/jira/browse/FINERACT-2391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18028747#comment-18028747 ] 

Adam Saghy commented on FINERACT-2391:
--------------------------------------

[~nick9822] Go ahead, but self service API and capabilities are marked as deprecated and unmaintained in Apache Fineract.

> 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*_{}}}.
> FYI, I have fixed it. Happy to raise PR.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)