PDFedit Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000355 [PDFedit] =Other (Commandline)= minor always 05-20-10 18:05 05-24-10 23:52
Reporter varunhiremath View Status public  
Assigned To bilbo
Priority normal Resolution fixed  
Status resolved   Product Version 0.4.3
Summary 0000355: pdfedit refuses to open read-only files
Description I received this bug report in Debian:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=579707 [^]

"""
Take any pdf file, and if it is not writable by the user, pdfedit will refuse to open it.

$ wget http://www.vacadsci.org/handbook/AppendixD.pdf [^] -O AppendixD.pdf
$ chmod a-w AppendixD.pdf
$ pdfedit AppendixD.pdf
2:KERNEL:cpdf.cc:getInstance:2350: Unable to open file "AppendixD.pdf" in mode=rb+ (reason=Permission denied)

"""

Additional Information Not sure if this is a bug or if pdfedit is intended to work like this.
Attached Files  gui-enable-read-only_files.patch [^] (2,762 bytes) 05-20-10 21:54

- Relationships
has duplicate 0000209resolved bilbo GUI Gui is not able to open read-only document 

- Notes
(0001080)
hockm0bm
05-20-10 21:55

I have suggested gui-enable-read-only_files.patch as a fix. Let's see what Martin who is responsible for gui says. I guess that we will just get the patch but if you feel that you need a fix as soon as possible feel free to get it until we release a new version which will contain the fix.

Thanks for reporting this issue.
 
(0001082)
bilbo
05-24-10 23:52

Fixed in CVS. GUI now retries with read-only mode when read-write/advanced mode fails. Also, the fact that document is opened in read-only mode is now also indicated in window title.
 

- Issue History
Date Modified Username Field Change
05-20-10 18:05 varunhiremath New Issue
05-20-10 19:38 hockm0bm Status new => assigned
05-20-10 19:38 hockm0bm Assigned To  => hockm0bm
05-20-10 21:54 hockm0bm File Added: gui-enable-read-only_files.patch
05-20-10 21:55 hockm0bm Note Added: 0001080
05-20-10 21:58 hockm0bm Relationship added has duplicate 0000209
05-24-10 20:53 hockm0bm Assigned To hockm0bm => bilbo
05-24-10 23:52 bilbo Status assigned => resolved
05-24-10 23:52 bilbo Fixed in Version  => CVS
05-24-10 23:52 bilbo Resolution open => fixed
05-24-10 23:52 bilbo Note Added: 0001082