Web browser: ---
            Bug ID: 59986
           Summary: PDFHandler doesn't redirect gs stderr, so errors in
                    that stage not reported
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Keywords: easy
          Severity: normal
          Priority: Unprioritized
         Component: PdfHandler
    Classification: Unclassified
   Mobile Platform: ---

Marking easy, as this is probably a straightforward bug to fix.

Currently PDFHandler runs gs and convert in a pipeline (See
PdfHandler::doTransform). It sticks 2>&1 on the end of the command to catch
error output, however that doesn't apply to the whole pipeline, only the last
command. Hence ghostscript (gs) errors are missed.

Recommended fix: remove the 2>&1, and instead of calling wfShellExec, call
wfShellExecWithStderr. (This will also catch errors for other commands, like
the resource limit things, so its better than using 2>&1 anyways).

You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to