ApiException throws an error in mod search when installing modules
Description
CSP Request Details
None
CSP Rejection Details
None
Potential Workaround
None
Attachments
3
blocks
defines
is blocked by
Checklist
hideTestRail: Results
Activity
Show:

Ann-Marie BreauxJanuary 5, 2022 at 7:48 PM
Hooray!! Thank you so much, and !

Khamidulla AbdulkhakimovJanuary 5, 2022 at 3:21 PM
Hello . Problem was solved. Right now we don't have the problems described in the ticket. Thank you.

Ann-Marie BreauxJanuary 4, 2022 at 9:29 PM
Hi and Do you think this will be accomplished in Sprint 130? It looks like all its blockers have been completed, and this Jira blocks a number of the Folijet Karate tests. Thank you!

Ann-Marie BreauxDecember 21, 2021 at 2:21 PM
Hi It looks like the blocker for this Jira was resolved. Can this one be worked on by Falcon in the current sprint? It's blocking a number of the Folijet Karate Jiras. Thank you!
cc:
Done
Details
Assignee
Pavel FilippovPavel FilippovReporter
Khamidulla AbdulkhakimovKhamidulla AbdulkhakimovLabels
Priority
P3Story Points
2Sprint
NoneDevelopment Team
FalconFix versions
TestRail: Cases
Open TestRail: CasesTestRail: Runs
Open TestRail: Runs
Details
Details
Assignee

Reporter

Labels
Priority
Story Points
2
Sprint
None
Development Team
Falcon
Fix versions
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created December 3, 2021 at 10:42 AM
Updated February 18, 2022 at 6:02 PM
Resolved January 6, 2022 at 1:00 PM
TestRail: Cases
TestRail: Runs
When we run karate tests in the data-import, mod-data-export and mod-search modules, we get this error:
POST request for mod-search-1.6.0-SNAPSHOT.162 /_/tenant failed with 500:{"errors":[ {"message":"[404 Not Found] during [GET] to http://perms/users/b8727404-7f90-439f-a895-1b3d68c573aa/permissions?indexField=userId [PermissionsClient#getUserPermissions(String)]: [No user found by userId b8727404-7f90-439f-a895-1b3d68c573aa]","type":"NotFound","code":"unknown_error"}],"total_records":1}
You can see more details in the attached test.log file.
After studying the problem in more detail, I came to the conclusion that the mod-auth token throws the current exception:
ERROR MainVerticle Unsupported JWT format
INFO DockerModuleHandle mod-authtoken-2.10.0-SNAPSHOT.95 org.folio.auth.authtokenmodule.BadSignatureException: Could not verify token eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkaWt1X2FkbWluIiwidXNlcl9pZCI6IjAxZDQxOWExLTdkNjgtNWVhNi1hNWJjLWQwN2JhNTE1MTIyMiIsImlhdCI6MTYzODI3MDgxOSwidGVuYW50IjoiZGlrdSJ9.xmfa-0r3BsephpKY0MXUrrTMnpycPg5qw7ah-Ri61R4
More details in the attached okapi.log file.
All modules are deployed without problems except mod-search, after looking at the logs I noticed that the module cannot correctly handle the error associated with Unsupported JWT format:
WARN org.folio.search.controller.ApiExceptionHandler - Handling exception
feign.FeignException$NotFound: [404 Not Found] during [GET] to http://perms/users/908981a4-8f01-4b3f-9988-9f23106b5c7f/permissions?indexField=userId PermissionsClient#getUserPermissions(String): [No user found by userId 908981a4-8f01-4b3f-9988-9f23106b5c7f]
at feign.FeignException.clientErrorStatus(FeignException.java:201) ~[feign-core-10.10.1.jar!/:?]
at feign.FeignException.errorStatus(FeignException.java:177) ~[feign-core-10.10.1.jar!/:?]
at feign.FeignException.errorStatus(FeignException.java:169) ~[feign-core-10.10.1.jar!/:?]
at feign.codec.ErrorDecoder$Default.decode(ErrorDecoder.java:92) ~[feign-core-10.10.1.jar!/:?]
More details in the attached mod-search.log file.
At the moment, three test modules related to mod-search (data-import, mod-data-export, mod-search) do not work. data-import and mod-data-export do not deploy mod-search directly, but when you try to deploy the mod-data-export required module, the modules are also lifted (mod-search is enabled in the Module Descriptor for the specified one).