Bug 1281242

Summary: [abrt] pdfshuffler: pdfshuffler.py:1037:__init__:GError: The local file URI 'file:///tmp/tmpgBtSp8pdfshuffler/04_YSZ-COD-#2105681-XRD-pattern.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: 21CC: mail
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/2ab9c3c5ee9fd6175f17c9d14fa5b61e0304e4a4
Whiteboard: abrt_hash:3ced911acd41be5fe1651d8d90561cd59a988628
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-15 13:07:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description aten 2015-11-12 06:09:17 UTC
Description of problem:
1. drug-n-dropped a pdf page into an existing window.
1. pdfshuffler keeps runnig but abrt has been triggered

Version-Release number of selected component:
pdfshuffler-0.6.0-5.fc21

Additional info:
reporter:       libreport-2.3.0
cmdline:        /usr/bin/python2 /usr/bin/pdfshuffler
executable:     /usr/bin/pdfshuffler
kernel:         4.1.6-100.fc21.x86_64
runlevel:       N 5
type:           Python
uid:            1001

Truncated backtrace:
pdfshuffler.py:1037:__init__:GError: The local file URI 'file:///tmp/tmpgBtSp8pdfshuffler/04_YSZ-COD-#2105681-XRD-pattern.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/tmpgBtSp8pdfshuffler/04_YSZ-COD-#2105681-XRD-pattern.pdf' may not include a '#'

Local variables in innermost frame:
nfile: 3
tmp_dir: '/tmp/tmpgBtSp8pdfshuffler'
f: <__main__.GLocalFile at 0x7fbc62db3690: file:///home/korneta/YSZ-COD-%232105681-XRD-pattern.pdf>
self: <pdfshuffler.pdfshuffler.PDF_Doc instance at 0x7fbc62df5680>
file_prefix: 'file://'
filename: '/home/korneta/YSZ-COD-#2105681-XRD-pattern.pdf'
expected_mime_type: 'application/pdf'
mime_type: 'application/pdf'

Comment 1 aten 2015-11-12 06:09:21 UTC
Created attachment 1093024 [details]
File: backtrace

Comment 2 aten 2015-11-12 06:09:22 UTC
Created attachment 1093025 [details]
File: environ

Comment 3 Fabian Affolter 2015-11-15 13:07:52 UTC
This is an upstream bug. Check https://sourceforge.net/p/pdfshuffler/bugs/40/ for details and progress.