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

Francisco Cuandon commented on FINERACT-2391:
---------------------------------------------

{color:#172b4d}Hi guys, my apologies, {color}[~adamsaghy], o{color:#172b4d}nly 
/registration and /registration/user or all the functionality that is part of 
self service would be deleted, because if so the APIs can be disabled, and if 
at any time they are required they can be activated. Applyin secund solution, 
this PR should be merged.{color}

> 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)

Reply via email to