Jjanes has uploaded a new change for review. https://gerrit.wikimedia.org/r/132510
Change subject: PostgreSQL: decode image.img_metadata ...................................................................... PostgreSQL: decode image.img_metadata The img_metadata field was not being decoded from bytea into text. This change to core fixes the reported problem with PdfHandler against 1.22.6, origin/REL1_23 and git head. Bug: 59147 Change-Id: I285a317a57a29713af1f7f630b340278bd5400da (cherry picked from commit 8c62609dc877b6ed687e9a3835cfc24fb87e5be2) --- M includes/filerepo/file/LocalFile.php 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/10/132510/1 diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index fe769be..d18f42e 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -423,6 +423,8 @@ $decoded['timestamp'] = wfTimestamp( TS_MW, $decoded['timestamp'] ); + $decoded['metadata'] = $this->repo->getSlaveDB()->decodeBlob( $decoded['metadata'] ); + if ( empty( $decoded['major_mime'] ) ) { $decoded['mime'] = 'unknown/unknown'; } else { -- To view, visit https://gerrit.wikimedia.org/r/132510 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I285a317a57a29713af1f7f630b340278bd5400da Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_22 Gerrit-Owner: Jjanes <jeff.ja...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits