Bug 1371986

Summary: [abrt] pdfshuffler: pdfshuffler.py:1037:__init__:GError: The local file URI 'file:///tmp/tmpzDjNw5pdfshuffler/01_korneta-resume-references-ID#2016-3900.pdf' may not include a '#'
Product: [Fedora] Fedora Reporter: aten <atenrok>
Component: pdfshufflerAssignee: Fabian Affolter <mail>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: mail
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/2ab9c3c5ee9fd6175f17c9d14fa5b61e0304e4a4
Whiteboard: abrt_hash:ae53a15b53d4d1f29f70f775c0e3aebc67b563b0;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-18 09:43:31 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
File: environ none

Description aten 2016-08-31 15:33:37 UTC
Description of problem:
tried to open a pdf document by dragging it into pdf-shuffler window. The document created by exporting from Libre Office 

Version-Release number of selected component:
pdfshuffler-0.6.0-7.fc23

Additional info:
reporter:       libreport-2.6.4
cmdline:        /usr/bin/python2 /usr/bin/pdfshuffler
executable:     /usr/bin/pdfshuffler
kernel:         4.6.5-200.fc23.x86_64
runlevel:       N 5
type:           Python
uid:            1001

Truncated backtrace:
pdfshuffler.py:1037:__init__:GError: The local file URI 'file:///tmp/tmpzDjNw5pdfshuffler/01_korneta-resume-references-ID#2016-3900.pdf' may not include a '#'

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pdfshuffler/pdfshuffler.py", line 828, in sw_dnd_received_data
    self.add_pdf_pages(filename)
  File "/usr/lib/python2.7/site-packages/pdfshuffler/pdfshuffler.py", line 418, in add_pdf_pages
    pdfdoc = PDF_Doc(filename, self.nfile, self.tmp_dir)
  File "/usr/lib/python2.7/site-packages/pdfshuffler/pdfshuffler.py", line 1037, in __init__
    self.document = poppler.document_new_from_file (file_prefix + self.copyname, None)
GError: The local file URI 'file:///tmp/tmpzDjNw5pdfshuffler/01_korneta-resume-references-ID#2016-3900.pdf' may not include a '#'

Local variables in innermost frame:
nfile: 0
tmp_dir: '/tmp/tmpzDjNw5pdfshuffler'
f: <__main__.GLocalFile at 0x7fc724872b40: file:///home/korneta/_documents/JOB_applications/2016-Cree-Research_Scientist-Durham/final_submission/korneta-resume-references-ID%232016-3900.pdf>
self: <pdfshuffler.pdfshuffler.PDF_Doc instance at 0x7fc724842830>
file_prefix: 'file://'
filename: '/home/korneta/_documents/JOB_applications/2016-Cree-Research_Scientist-Durham/final_submission/korneta-resume-references-ID#2016-3900.pdf'
expected_mime_type: 'application/pdf'
mime_type: 'application/pdf'

Comment 1 aten 2016-08-31 15:33:41 UTC
Created attachment 1196448 [details]
File: backtrace

Comment 2 aten 2016-08-31 15:33:42 UTC
Created attachment 1196449 [details]
File: environ