|Anonymous | Login | Signup for a new account||09-03-2015 01:45 CEST|
|Main | My View | View Issues | Docs|
|Viewing Issue Simple Details [ Jump to Notes ]||[ View Advanced ] [ Issue History ] [ Print ]|
|ID||Category||Severity||Reproducibility||Date Submitted||Last Update|
|0000258||[PDFedit] =Other (GUI)=||minor||always||08-25-08 18:07||07-07-09 11:43|
|Summary||0000258: exceptions from incorrectly displayed in GUI|
Some exceptions (e.g. ReadOnlyException when editing read-only file) are not shown in gui and rather scripting error message is displayed:
150 468 371 643
! In script '/usr/local/share/pdfedit/pdfoperator.qs', line 821:
! Error. Exception in Page.appendContentStream : Document is read-only
This should be displayed in GUI, because it is very confusing for user when he doesn't read the command line (which is the case for almost 100% of users).
Martin could you have a look into this issue?
Where are all exceptions handled? I can help with the fix, but I need some rough description of the workflow (from script throwing an exception until gui gets to it).
This is slightly problematic, as exception is thrown "later" when the page is refreshed (which causes the operator objects to "propagate" into the stream, where they fail due to read-onliness) and not immediately when the line is drawn.
I have fixed this by disabling all menu items that can alter the document when PDF is in read-only mode. From perspective of end-user, he can't edit when RO document is opened, so he can't see this bug anymore (unless he opens console and calls commands from there but then he sees that message)
I guess that solves the problem
If you find this fix insufficient, please reopen the bug
> This is slightly problematic, as exception is thrown "later" when the page is
> refreshed (which causes the operator objects to "propagate" into the stream,
> where they fail due to read-onliness) and not immediately when the line is
How is this possible. Change itself should produce an exception because no change is allowed when document is set as read-only.
|08-25-08 18:07||hockm0bm||New Issue|
|08-25-08 18:07||hockm0bm||Status||new => assigned|
|08-25-08 18:07||hockm0bm||Assigned To||=> bilbo|
|08-25-08 18:09||hockm0bm||Note Added: 0000528|
|09-18-08 02:53||bilbo||Status||assigned => resolved|
|09-18-08 02:53||bilbo||Fixed in Version||=> CVS|
|09-18-08 02:53||bilbo||Resolution||open => fixed|
|09-18-08 02:53||bilbo||Note Added: 0000545|
|07-03-09 23:53||bilbo||Status||resolved => closed|
|07-07-09 11:43||hockm0bm||Status||closed => feedback|
|07-07-09 11:43||hockm0bm||Resolution||fixed => reopened|
|07-07-09 11:43||hockm0bm||Note Added: 0000883|