xwikisas / macro-pdfviewer

0 stars 4 forks source link

Improve the display of error messages #39

Open trrenty opened 2 years ago

trrenty commented 2 years ago

When encountering a pdf error, the displayed text is very hard to decipher as a non-technical user.

For example:

  1. An user, user1, displays a pdf from DocumentA on DocumentB and uses Delegate my view right to pass down his view rights. Another user, user2, that doesn't have the view rights for DocumentA edits DocumentB, causing an error to occur. The same error will appear if user2 follows the steps of user1.

This happens because we pass the view rights of the author of DocumentB to whoever has rights on DocumentA.

The error at hand doesn't mention anything resembling my previous statement. image

  1. A user tries to display a pdf using an external link (pdf from another website). This will cause an error if the CORS has not been properly set up to allow resources coming from the aforementioned website. image

The users should be properly informed of what is the cause of these errors so they can fix them.