Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After decryption failure, password prompt no longer given #2556

Closed
rocketraman opened this issue Jan 11, 2013 · 5 comments · Fixed by #2570 or #3060
Closed

After decryption failure, password prompt no longer given #2556

rocketraman opened this issue Jan 11, 2013 · 5 comments · Fixed by #2570 or #3060

Comments

@rocketraman
Copy link

Open an encrypted PDF and enter the incorrect password. Then try to open the same PDF again. It no longer attempts to open and decrypt the PDF until the page is refreshed.

@yurydelendik
Copy link
Contributor

I cannot replicate the issue. My steps:

  1. Type "http://async5.org/moz/passwordOU.pdf" is the browser and click GO icon;
  2. Enter incorrect password and click OK;
  3. Notice error;
  4. Type "http://async5.org/moz/passwordOU.pdf" is the browser and click GO icon;

I see the password input box. What's your steps?

@rocketraman
Copy link
Author

Perhaps its a problem with the viewer at the page: http://mozilla.github.com/pdf.js/web/viewer.html

I am using the "Open File" button to open a local PDF using the viewer.

  1. Open http://mozilla.github.com/pdf.js/web/viewer.html.
  2. Open File, select passwordOU.pdf
  3. Enter incorrect password
  4. Viewer displays error bar
  5. Open File, select passwordOU.pdf

Nothing happens after step #5.

@brendandahl
Copy link
Contributor

The issue seems to be fixed for when workers are disabled, but chrome seems to have the behavior mentioned above.

@saebekassebil
Copy link
Contributor

We failed to catch exception.code === 'incorrectpassword'. This is taken care of in #3060

@brendandahl
Copy link
Contributor

Fixed by the above PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants