You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by GitBox <gi...@apache.org> on 2026/08/10 14:24:44 UTC
[GH] (ofbiz-framework/secured-upload-metadata-npe-fix): Workflow run "Java CI with Gradle" is working again!
The GitHub Actions job "Java CI with Gradle" on ofbiz-framework.git/secured-upload-metadata-npe-fix has succeeded.
Run started by GitHub user mridulpathak (triggered by mridulpathak).
Head commit for run:
599a6fe1b94aae773c734bd24580c057a3568f69 / Mridul Pathak <mr...@hotwaxsystems.com>
Fixed: noWebshellInMetadata NPEs when readMetadata can't parse the file
Imaging.guessFormat() only checks a file's magic number, so a malformed
file that still starts with a valid PNG/JPEG/GIF/TIFF signature reaches
noWebshellInMetadata(). When ImageMetadataReader.readMetadata() then
fails to parse it, metadata stayed null and the following
metadata.getDirectories() call threw an unhandled NullPointerException
instead of rejecting the upload cleanly. Confirmed with a minimal
8-byte file containing only the PNG signature. Returns false in the
catch block so the file is rejected the same way any other unparseable
upload is.
Report URL: https://github.com/apache/ofbiz-framework/actions/runs/31397489391
With regards,
GitHub Actions via GitBox