[
https://issues.apache.org/jira/browse/FINERACT-2391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18028756#comment-18028756
]
Adam Saghy commented on FINERACT-2391:
--------------------------------------
No, the community decision was to have no built-in self service capabilities in
Apache Fineract, rather allow 3rd party solutions on top of Apache Fineract. We
haven`t removed self-service capabilities yet, but the clock is ticking...
> 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)