Bug 37041 - Logging into addbiblio.pl triggers a 403
Summary: Logging into addbiblio.pl triggers a 403
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 24879
Blocks:
  Show dependency treegraph
 
Reported: 2024-06-06 01:09 UTC by David Cook
Modified: 2024-06-06 01:30 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Cook 2024-06-06 01:09:08 UTC
As Michal Kula noted on Mattermost, trying to log into http://localhost:8081/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=9908 in main will yield a bizarre HTTP response that includes headers for a 403 response and a 200 response...

This is partially due to bug 37040, but it's mostly due to a bug in addbiblio.pl where the form builder is generating a 403 that gets printed before the 200 response somehow...
Comment 1 David Cook 2024-06-06 01:17:25 UTC
If I capture STDOUT around a subsection of build_tabs(), I get 10 of these messages in STDOUT:

[2024/06/06 01:12:47] [WARN] Status: 403 Forbidden
Content-Type: text/plain; charset=ISO-8859-1

Status: 403 Forbidden
Content-Type: text/plain; charset=ISO-8859-1

--

I suspect is has something to do with these warnings:

[2024/06/06 00:08:33] [WARN] ERROR: Plugin marc21_orgcode.pl: ARRAY(0x561ffb8bfa98) at /kohadevbox/koha/Koha/UI/Form/Builder/Biblio.pm line 222.
[2024/06/06 00:08:33] [WARN] ERROR: Plugin marc21_field_005.pl: ARRAY(0x561ffb8cdb60) at /kohadevbox/koha/Koha/UI/Form/Builder/Biblio.pm line 222.
Comment 2 David Cook 2024-06-06 01:30:27 UTC
Looks like a regression caused by bug 24879 

Note that I'm not planning on working on this one.