Bug 690573

Summary: [abrt] pdfshuffler-0.5-2.fc14: pdf.py:803:_decrypt:NotImplementedError: only algorithm code 1 and 2 are supported
Product: [Fedora] Fedora Reporter: nubnoj6
Component: pdfshufflerAssignee: Fabian Affolter <mail>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: mail
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:ef7cb6ee
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-26 14:07:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace none

Description nubnoj6 2011-03-24 17:09:11 UTC
abrt version: 1.1.17
architecture: i686
cmdline: /usr/bin/python /usr/bin/pdfshuffler
component: pdfshuffler
executable: /usr/bin/pdfshuffler
kernel: 2.6.35.11-83.fc14.i686
package: pdfshuffler-0.5-2.fc14
reason: pdf.py:803:_decrypt:NotImplementedError: only algorithm code 1 and 2 are supported
release: Fedora release 14 (Laughlin)
time: 1300986430
uid: 500

backtrace
-----
pdf.py:803:_decrypt:NotImplementedError: only algorithm code 1 and 2 are supported

Traceback (most recent call last):
  File "/usr/bin/pdfshuffler", line 411, in choose_export_pdf_name
    self.export_to_file(file_out)
  File "/usr/bin/pdfshuffler", line 434, in export_to_file
    if (pdfdoc_inp.decrypt('')!=1): # Workaround for lp:#355479
  File "/usr/lib/python2.7/site-packages/pyPdf/pdf.py", line 794, in decrypt
    return self._decrypt(password)
  File "/usr/lib/python2.7/site-packages/pyPdf/pdf.py", line 803, in _decrypt
    raise NotImplementedError, "only algorithm code 1 and 2 are supported"
NotImplementedError: only algorithm code 1 and 2 are supported

Local variables in innermost frame:
self: <pyPdf.pdf.PdfFileReader object at 0x92d688c>
password: ''
encrypt: {'/O': 'S\x15-\xa8\x13\x14)\xf8a\xaf\x95\xf1\x94_\x9b\xf8\xd1\xcb\xbc\xbd\x94\xb1f_\t\xe0G;\xa8\xae\xeaf', '/Filter': '/Standard', '/Length': 128, '/StrF': '/StdCF', '/CF': {'/StdCF': {'/Length': 16, '/AuthEvent': '/DocOpen', '/CFM': '/AESV2'}}, '/StmF': '/StdCF', '/V': 4, '/U': '\xcfd9\r\x10\x1e0\x17\xd1\xe4\x8bk\xc3\xa1.o\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', '/R': 4, '/P': -1340}

How to reproduce
-----
1.b
2.
3.

Comment 1 nubnoj6 2011-03-24 17:09:14 UTC
Created attachment 487397 [details]
File: backtrace

Comment 2 Fabian Affolter 2011-03-26 14:07:41 UTC
According your report you are trying to open a file that is encrypted with an unsupported algorithm. Please open a feature request at the upstream location of pdfshuffler [1].

Thanks

[1] http://sourceforge.net/projects/pdfshuffler/