https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8412
Bug ID: 8412
Summary: Warning in pdf handler if Crypt::RC4 is not installed
Product: Spamassassin
Version: 4.0.3
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Libraries
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: Undefined
Created attachment 6076
--> https://bz.apache.org/SpamAssassin/attachment.cgi?id=6076&action=edit
Die earlier if Crypt::RC4 is not installed
Running t/handler_pdf.t without Crypt::RC4 installed results in:
Sep 11 03:53:13.027 [3528459] warn: pdfinfo2: encrypted PDFs not supported,
required module Crypt::RC4 missing
Sep 11 03:53:13.027 [3528459] warn: pdfinfo2: ASCII85-encoded PDF streams not
supported, required module Convert::Ascii85 missing
Sep 11 03:53:14.251 [3528517] warn: pdfinfo2: encrypted PDFs not supported,
required module Crypt::RC4 missing
Sep 11 03:53:14.251 [3528517] warn: pdfinfo2: ASCII85-encoded PDF streams not
supported, required module Convert::Ascii85 missing
Sep 11 03:53:15.464 [3528566] warn: pdfinfo2: encrypted PDFs not supported,
required module Crypt::RC4 missing
Sep 11 03:53:15.465 [3528566] warn: pdfinfo2: ASCII85-encoded PDF streams not
supported, required module Convert::Ascii85 missing
Not found: pdf_encrypted_blank_pw = 1.0 PDF_BLANK_PW at
t/handler_pdf.t line 142.
# Failed test at t/SATest.pm line 934.
Not found: pdf_encrypted = 1.0 PDF_ENCRYPTED at t/handler_pdf.t line
142.
# Failed test at t/SATest.pm line 934.
Not found: pdf_uri_detail_enc = 1.0 PDF_GOOGLE at t/handler_pdf.t
line 142.
# Failed test at t/SATest.pm line 934.
Not found: pdf_present_enc = 1.0 PDF_PRESENT at t/handler_pdf.t line
142.
# Failed test at t/SATest.pm line 934.
Output can be examined in: log/handler_pdf.96DFk7/d.handler_pdf/11
Sep 11 03:53:16.670 [3528623] warn: pdfinfo2: encrypted PDFs not supported,
required module Crypt::RC4 missing
Sep 11 03:53:16.670 [3528623] warn: pdfinfo2: ASCII85-encoded PDF streams not
supported, required module Convert::Ascii85 missing
# Looks like you failed 4 tests of 19.
t/handler_pdf.t ...................
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/19 subtests
the attached patch stop encryption checks if Crypt::RC4 is not installed
instead of breaking later.
--
You are receiving this mail because:
You are the assignee for the bug.