[ehb54/us3lims_dbinst] be6acc: Fix captcha HTTP 500 with ImageMagick >= 6.9.13-45...
Branch: refs/heads/ehb54-issue-478 Home: https://github.com/ehb54/us3lims_dbinst Commit: be6acc68a2b464dff4ce478789f909a4b662fe40 https://github.com/ehb54/us3lims_dbinst/commit/be6acc68a2b464dff4ce478789f90... Author: ehb54 <brookes@uthscsa.edu> Date: 2026-09-10 (Thu, 10 Sep 2026) Changed paths: M cap_bg.jpg M create_captcha.php Log Message: ----------- Fix captcha HTTP 500 with ImageMagick >= 6.9.13-45 (empty EXIF in cap_bg.jpg) cap_bg.jpg carried an empty EXIF profile (6-byte header + 14-byte TIFF body with zero entries). ImageMagick 6.9.13-45+ fails WriteImage() when SyncExifProfile() rejects an EXIF body shorter than 16 bytes, without raising an exception, so Imagick::getImageBlob() throws the generic "empty or invalid image" error and create_captcha.php returns 500. - strip all metadata from cap_bg.jpg losslessly (jpegtran -copy none; pixels unchanged) - call stripImage() after loading the background so any future background file is safe regardless of its metadata Fixes ehb54/ultrascan-tickets#1057 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Commit: a137fd83ac9ef3eaf650eabdfaeafa2ddd40f42b https://github.com/ehb54/us3lims_dbinst/commit/a137fd83ac9ef3eaf650eabdfaeaf... Author: emre brookes <ehb54@users.noreply.github.com> Date: 2026-10-01 (Thu, 01 Oct 2026) Changed paths: M cap_bg.jpg M create_captcha.php Log Message: ----------- Merge pull request #71 from ehb54/ehb54-issue-1057 Fix captcha HTTP 500 with ImageMagick >= 6.9.13-45 (empty EXIF in cap_bg.jpg) Commit: 7072404682a66f4f3adb7962e2a699606c29f523 https://github.com/ehb54/us3lims_dbinst/commit/7072404682a66f4f3adb7962e2a69... Author: ehb54 <brookes@uthscsa.edu> Date: 2026-10-05 (Mon, 05 Oct 2026) Changed paths: M 2DSA-CG_2.php M 2DSA_2.php M DMGA_2.php M GA_3.php M PCSA_2.php M lib/utility.php Log Message: ----------- Keep large batch submissions alive past the web server proxy timeout The submit pages write every HPCAnalysisRequest row up front, then submit one job per loop pass inside the browser request. With output_buffering on, the per-job progress lines reached the web server only about every 44 jobs. When that gap exceeded Apache's proxy timeout, the request was dropped and PHP aborted the loop at its next flush. The remaining requests were left unsubmitted, with no result row, no email and no message. Flush each progress line as it is written. Only the top buffer is flushed, so the autoflow submitone.php output capture keeps working. Let the submit loop finish regardless of the client or web server with ignore_user_abort( true ) and set_time_limit( 0 ). Fixes ehb54/ultrascan-tickets#1115 Fixes ehb54/ultrascan-tickets#884 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Commit: ca9fdbdddfe9689d7d15e3031c473aa084616206 https://github.com/ehb54/us3lims_dbinst/commit/ca9fdbdddfe9689d7d15e3031c473... Author: emre brookes <ehb54@users.noreply.github.com> Date: 2026-10-05 (Mon, 05 Oct 2026) Changed paths: M 2DSA-CG_2.php M 2DSA_2.php M DMGA_2.php M GA_3.php M PCSA_2.php M lib/utility.php Log Message: ----------- Merge pull request #78 from ehb54/ehb54-issue-1115 Keep large batch submissions alive past the web server proxy timeout Commit: 4c6c046e1abb670e7b7216547a07b7f0f737e6da https://github.com/ehb54/us3lims_dbinst/commit/4c6c046e1abb670e7b7216547a07b... Author: ehb54 <brookes@uthscsa.edu> Date: 2026-10-05 (Mon, 05 Oct 2026) Changed paths: M DMGA_2.php M GA_3.php M lib/utility.php Log Message: ----------- Show submit progress on GA/DMGA pages; skip non-flushable buffers GA_3.php and DMGA_2.php wrote nothing during their submit loops. On a batch longer than Apache's proxy timeout the request was dropped and the user got an error page instead of the confirmation page. Jobs were still all submitted. Give both pages the same progress display as 2DSA_2.php, flushing after each line. flush_output() called ob_flush() on any open buffer. A buffer started without PHP_OUTPUT_HANDLER_FLUSHABLE makes that raise a notice, so flush the top buffer only when it is flushable. Fixes ehb54/ultrascan-tickets#1121 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Commit: a7a4922556ce772592ce5fb47ec7c14b550750c9 https://github.com/ehb54/us3lims_dbinst/commit/a7a4922556ce772592ce5fb47ec7c... Author: emre brookes <ehb54@users.noreply.github.com> Date: 2026-10-05 (Mon, 05 Oct 2026) Changed paths: M DMGA_2.php M GA_3.php M lib/utility.php Log Message: ----------- Merge pull request #79 from ehb54/ehb54-issue-1121 Show submit progress on GA/DMGA pages; skip non-flushable buffers Commit: 589ee8ca9849a1c1f9445dfebb3e22aa687a7f36 https://github.com/ehb54/us3lims_dbinst/commit/589ee8ca9849a1c1f9445dfebb3e2... Author: aaron-auc <aaron@aucsolutions.com> Date: 2026-10-05 (Mon, 05 Oct 2026) Changed paths: M 2DSA-CG_2.php M 2DSA_2.php M DMGA_2.php M GA_3.php M PCSA_2.php M cap_bg.jpg M create_captcha.php M lib/utility.php Log Message: ----------- Merge branch 'main' into ehb54-issue-478, keeping each submission page on submit_progress() instead of the JS progress UI, with GA_3 and DMGA_2 gaining submit_progress for the first time Compare: https://github.com/ehb54/us3lims_dbinst/compare/ff3f275c746d...589ee8ca9849 To unsubscribe from these emails, change your notification settings at https://github.com/ehb54/us3lims_dbinst/settings/notifications
participants (1)
-
aaron-auc