eclipse / kapua

Eclipse Public License 2.0
227 stars 160 forks source link

FIX: 500 Internal Error is shown trying to call /{scopeId}/users/{userId}/credentials/password/_reset endpoint #4098

Closed Agnul97 closed 3 months ago

Agnul97 commented 3 months ago

Investigating the issue, I found the problem: An attempt to cast the parameter “usedId” received via API from the UserId type to the KapuaEid type. Fixing this solved the problem

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 16.80%. Comparing base (b7a46c7) to head (da4ef24). Report is 6 commits behind head on develop.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/eclipse/kapua/pull/4098/graphs/tree.svg?width=650&height=150&src=pr&token=1P4N4CApH8&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse)](https://app.codecov.io/gh/eclipse/kapua/pull/4098?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse) ```diff @@ Coverage Diff @@ ## develop #4098 +/- ## ========================================== Coverage 16.80% 16.80% Complexity 22 22 ========================================== Files 2019 2019 Lines 52378 52378 Branches 4415 4415 ========================================== Hits 8800 8800 Misses 43180 43180 Partials 398 398 ``` | [Files](https://app.codecov.io/gh/eclipse/kapua/pull/4098?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse) | Coverage Δ | | |---|---|---| | [...uthentication/credential/shiro/CredentialImpl.java](https://app.codecov.io/gh/eclipse/kapua/pull/4098?src=pr&el=tree&filepath=service%2Fsecurity%2Fshiro%2Fsrc%2Fmain%2Fjava%2Forg%2Feclipse%2Fkapua%2Fservice%2Fauthentication%2Fcredential%2Fshiro%2FCredentialImpl.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse#diff-c2VydmljZS9zZWN1cml0eS9zaGlyby9zcmMvbWFpbi9qYXZhL29yZy9lY2xpcHNlL2thcHVhL3NlcnZpY2UvYXV0aGVudGljYXRpb24vY3JlZGVudGlhbC9zaGlyby9DcmVkZW50aWFsSW1wbC5qYXZh) | `100.00% <100.00%> (ø)` | |