| Summary: | Search for patron - error | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Igor A. Sychev <Igor.A.Sychev> |
| Component: | Patrons | Assignee: | Bugs List <koha-bugs> |
| Status: | RESOLVED INVALID | QA Contact: | Testopia <testopia> |
| Severity: | enhancement | ||
| Priority: | P5 - low | CC: | david, gmcharlt, jonathan.druart, kyle, paul.derscheid |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | --- |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
|
Description
Igor A. Sychev
2025-06-04 03:50:44 UTC
502 is "bad gateway". Did you restart the services (memcached, apache2, koha-common)? Also: which version of Koha? I can't replicate on the current main (using koha-testing-docker). I was restarting all the services. I also did a reboot. 24.11.03 25.05.00 4. Patrons found for: Standard starting with 'Сычев' Result: Сычев, Игорь Алексеевич Сычева, Анастасия Андреевна Assumption. The error occurs if only one patron is found in the search results. Update Koha 24.11.07 and 25.05.02 Perhaps some data is missing? What should I pay attention to? For what it is worth (and I don't know the answer to why this is happening), testing on the current main using koha-testing-docker: 1. I created these patrons in the 'Patron' category (no other data added, apart from adding a card number): 1.1 Surname = Остапенко 1.2 Surname = Остапенко Firstname = Эвелина 1.3 Surname = Шимко Firstname = Остап 1.4 Surname = Сычев Firstname = Игорь Алексеевич 1.5 Surname = Сычева Firstname = Анастасия Андреевна 2. The DefaultPatronSearchFields system preference is set to the default: "firstname|preferred_name|middle_name|surname|othernames|cardnumber|userid" 3. If I do the first search in the description comment, I get a 500 server error in a pop-up window and a "Processing..." message. Search result, using the search in the sidebar with Search field = as per search, Search type = Starts with, Category =Any, Library = Any): Search: - Search: Остапенко - Search field: Standard Result - pop-up message: Something went wrong when loading the table. 500: Internal Server Error. Expected integer - got boolean. Expected integer - got boolean. Browser developer tools console error: Got 500 (Internal Server Error) DataTables warning: table id=memberresultst - Ajax error. For more information about this error, please see https://datatables.net/tn/7 Error logs: ==> /var/log/koha/kohadev/plack-api-error.log <== [2025/08/29 23:15:43] [WARN] OpenAPI >>> GET api/v1/patrons [{"message":"Expected integer - got boolean.","path":"\/body\/0\/privacy_guarantor_checkouts"},{"message":"Expected integer - got boolean.","path":"\/body\/1\/privacy_guarantor_checkouts"}] I get similar messages for the other searches, except there may be more "Expected integer - got boolean" messages. (In reply to David Nind from comment #7) > Error logs: > ==> /var/log/koha/kohadev/plack-api-error.log <== > [2025/08/29 23:15:43] [WARN] OpenAPI >>> GET api/v1/patrons > [{"message":"Expected integer - got > boolean.","path":"\/body\/0\/privacy_guarantor_checkouts"},{"message": > "Expected integer - got > boolean.","path":"\/body\/1\/privacy_guarantor_checkouts"}] This should be fixed by commit aea3b3c7002630489190fe6ea582757e1497b692 Bug 39835: (follow-up) Fix API specs to check for boolean modified: api/v1/swagger/definitions/patron.yaml @ api/v1/swagger/definitions/patron.yaml:323 @ properties: type: integer description: patron's privacy settings related to their checkout history privacy_guarantor_checkouts: - type: integer + type: boolean Can you confirm you get this error even after `yarn api:bundle && restart_all`? I can't replicate the error at all today, I even tried on 24.11.x! Closing, please reopen if still valid. |