Bug 40006 - Upgrading install.pl shows code vs HTML
Summary: Upgrading install.pl shows code vs HTML
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Installation and upgrade (web-based installer) (show other bugs)
Version: 25.05
Hardware: All All
: P5 - low minor
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-27 19:22 UTC by Shane Sammons
Modified: 2025-05-29 01:56 UTC (History)
3 users (show)

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


Attachments
Screen segment of Chrome browser showing code vs HTML output (30.82 KB, image/png)
2025-05-27 19:22 UTC, Shane Sammons
Details
Revised screen showing its the browser NOT source code (77.74 KB, image/png)
2025-05-28 12:04 UTC, Shane Sammons
Details
Images of Chrome's View Source (82.98 KB, image/png)
2025-05-28 12:06 UTC, Shane Sammons
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shane Sammons 2025-05-27 19:22:25 UTC
Created attachment 182806 [details]
Screen segment of Chrome browser showing code vs HTML output

When upgrading from version 23 (sorry I did it by accident, so I didn't not the subversion) after entering the credentials from the .xml file and proceeding to update the database, install.pl shows code above the HTML code, and I believe this breaks the HTML structure, viewing the page source it looked the same as the page, less in Chrome it puts line numbers on the left.

Here is what appears about the HTML tags.
0E0
Status: 200 OK
Set-Cookie: CGISESSID=af07240f027e658abfa81c3155df289f; path=/; HttpOnly; SameSite=Lax
Date: Tue, 27 May 2025 19:03:47 GMT
Cache-control: no-cache
Content-script-type: text/javascript
Content-style-type: text/css
Pragma: no-cache
X-frame-options: SAMEORIGIN
Content-Type: text/html; charset=UTF-8
Comment 1 Jonathan Druart 2025-05-28 09:40:26 UTC
Looks ok for me.
Comment 2 Shane Sammons 2025-05-28 12:04:57 UTC
Created attachment 182814 [details]
Revised screen showing its the browser NOT source code

This is what I saw in the browser, it is code, not rendered HTML
Comment 3 Shane Sammons 2025-05-28 12:06:10 UTC
Created attachment 182815 [details]
Images of Chrome's View Source

Here it is rendered the exact same way with view source as the HTML page.
Comment 4 David Cook 2025-05-29 01:56:07 UTC
Hmm that's interesting. That suggests that two sets of HTTP headers were generated...  with a 0E0 in between them it seems...

It sounds like you have an atypical installation if you're getting to this screen. If you're not able to run the database update, you could just rollback the code anyway.