Last modified: 2013-07-25 07:08:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T43281, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41281 - Rendering of file-info-size message broken for a corrupted PDF
Rendering of file-info-size message broken for a corrupted PDF
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
PdfHandler (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-22 22:03 UTC by Smallman
Modified: 2013-07-25 07:08 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Shows what's broken. (225.53 KB, image/png)
2012-10-22 22:03 UTC, Smallman
Details
Another example showing the import of a PDF (62.61 KB, image/png)
2013-03-28 19:22 UTC, Alex deVries
Details

Description Smallman 2012-10-22 22:03:44 UTC
Created attachment 11218 [details]
Shows what's broken.

For the corrupted pdf file at:
https://commons.wikimedia.org/wiki/File:Gerald_Ford_Papers-_Final_Issues_for_Decision,_Army_Corps_of_Engineers-_Puerto_Rico_-_Compact_of_Permanent_Union_%281%29%28Gerald_Ford_Library%29%281554455%29.pdf


The portion which normally says:
Size of this preview: ...
Full resolution ‎...

appears to have the formatting wrong for this portion. It is highlighted in the screenshot.
Comment 1 Sumana Harihareswara 2012-10-23 00:23:45 UTC
I can reproduce the issue.  I used https://commons.wikimedia.org/wiki/File:Gerald_Ford_Papers-_Final_Issues_for_Decision,_Army_Corps_of_Engineers-_Puerto_Rico_-_Compact_of_Permanent_Union_%281%29%28Gerald_Ford_Library%29%281554455%29.pdf?uselang=qqx to determine that the specific message that isn't being rendered correctly is:

(file-info-size: , , (size-megabytes), application/pdf)
Comment 2 Alex deVries 2013-03-28 19:22:12 UTC
Created attachment 12000 [details]
Another example showing the import of a PDF
Comment 3 Alex deVries 2013-03-28 19:23:36 UTC
I have the same problem also, it seems to be with all PDFs and not just this one.

I'm wondering about my version of gs or pdfinfo (8.70 and 3.03).
Comment 4 Bawolff (Brian Wolff) 2013-03-28 22:50:41 UTC
So 2 issues here.

*when metadata fails to be extracted, dimensions should default to 0×0 so the failure is graceful.
* metadata extraction fails for that image (you can tell by looking at iiprop=metadata in the api). This could hust be a broken image but should investigate.

Re comment 3 - if it happens for all pdfs for you probably an issue with pdfinfo command
Comment 5 Alex deVries 2013-03-29 22:09:18 UTC
Ah, I think I figured it out. 

Most of my problems went away when I went from pdfinfo 0.22 to 0.12.4.

My next problem was dealing with an out of memory error when running gs, but messing with ulimit helped with that too.


- A
Comment 6 Gerrit Notification Bot 2013-04-16 21:51:36 UTC
Related URL: https://gerrit.wikimedia.org/r/59530 (Gerrit Change I1a49474309e15808928f877dfc29ae366d028928)
Comment 7 Gerrit Notification Bot 2013-04-16 22:01:34 UTC
Related URL: https://gerrit.wikimedia.org/r/59531 (Gerrit Change I8c956da326e5dc339893a010370d399e97e204fd)
Comment 8 Bawolff (Brian Wolff) 2013-06-27 01:21:31 UTC
patches were merged.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links