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

PDF protected by cookie-based login does not load #1287

Closed
cndouglas opened this issue Sep 26, 2018 · 10 comments · Fixed by brave/brave-core#744
Closed

PDF protected by cookie-based login does not load #1287

cndouglas opened this issue Sep 26, 2018 · 10 comments · Fixed by brave/brave-core#744
Assignees
Labels
priority/P2 A bad problem. We might uplift this to the next planned release. QA Pass-Linux QA Pass-macOS QA Pass-Win64 QA/Yes release-notes/exclude

Comments

@cndouglas
Copy link
Contributor

Description

If you try to load a PDF on a website that requires a login, the PDF does not load. Sometimes, it asks for you to login again. If you try to login, the login dialog just pops up again (as if the login failed). If you cancel the login, the PDF fails to load, with a 401 error.

Steps to Reproduce

  1. Go to a website that requires a login to access a PDF.
  2. Try to open the PDF file.

Actual result:

Sometimes it shows the login dialog:

It always shows an error:

Expected result:

The PDF should load correctly.

Reproduces how often:

Always.

Brave version (chrome://version info)

Brave | 0.55.6 Chromium: 70.0.3538.16 (Official Build) dev(64-bit)
Revision | 16ed95b41bb05e565b11fb66ac33c660b721f778-refs/branch-heads/3538@{#306}
OS | Mac OS X
JavaScript | V8 7.0.276.9
Flash | (Disabled)
User Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.16 Safari/537.36

Reproducible on current release:

I don't think so.

Website problems only:

  • Does the issue resolve itself when disabling Brave Shields? No, Brave Shields cannot be disabled on a PDF page.
  • Is the issue reproducible on the latest version of Chrome? No, because Chrome uses a different PDF extension.

Additional Information

@bbondy bbondy added the priority/P2 A bad problem. We might uplift this to the next planned release. label Sep 30, 2018
@bbondy bbondy modified the milestones: Releasable builds 0.55.x, 1.x Backlog Sep 30, 2018
@Brave-Matt
Copy link

@cndouglas
Copy link
Contributor Author

A workaround is to download the PDF with the PDF JS toolbar download button:

@srirambv
Copy link
Contributor

+1 from @bitcoinuser via #1757
Brave Browser Version 0.55.18 Chromium: 70.0.3538.67 (Versão oficial) 64 bits
OS: Ubuntu 64

PDF.js v2.0.673 (compilação: 31012570)
Mensagem: Missing PDF "https://pje.tjdft.jus.br/pje/downloadBinario.seam".

captura de tela de 2018-10-20 17-48-16

@diracdeltas diracdeltas changed the title PDF protected by login does not load PDF protected by cookie-based login does not load Oct 30, 2018
@bbondy bbondy modified the milestones: 1.x Backlog, 0.57.x - Dev Oct 30, 2018
@bsclifton
Copy link
Member

Updated to 0.56.x after uplift request was approved by brave/brave-core#780 and code was merged to 0.56.x 😄

@LaurenWags
Copy link
Member

LaurenWags commented Nov 8, 2018

Verified passed with

Brave 0.56.10 Chromium: 70.0.3538.77 (Official Build) (64-bit)
Revision 0f6ce0b0cd63a12cb4eccea3637b1bc9a29148d9-refs/branch-heads/3538@{#1039}
OS Mac OS X

Verification passed on

Brave 0.56.10 Chromium: 70.0.3538.77 (Official Build) (64-bit)
Revision 0f6ce0b0cd63a12cb4eccea3637b1bc9a29148d9-refs/branch-heads/3538@{#1039}
OS Linux
  • Verified able to download PDF from a site that required cookie based login

Verification passed on

Brave 0.56.10 Chromium: 70.0.3538.77 (Official Build) (64-bit)
Revision 0f6ce0b0cd63a12cb4eccea3637b1bc9a29148d9-refs/branch-heads/3538@{#1039}
OS Windows

Used test plan: brave/brave-core#780

@bitcoinuser
Copy link

I still reproduce this issue on Brave version: Versão 0.56.12 Chromium: 70.0.3538.77 (Versão oficial) 64 bits

@bbondy
Copy link
Member

bbondy commented Nov 10, 2018

@bitcoinuser what are you seeing? I think you're likely seeing a separate version, possibly Linux only or something like that?

@bitcoinuser
Copy link

I reported the issue here: #2092

@bbondy
Copy link
Member

bbondy commented Nov 29, 2018

Resetting QA flags for this issue because the implementation is a different fix for 0.57.x and beyond for this issue.

@kjozwiak
Copy link
Member

kjozwiak commented Dec 4, 2018

Went through verification using the following build under macOS 10.14 x64 - PASSED

Brave 0.57.12 Chromium: 71.0.3578.75 (Official Build) (64-bit)
Revision 06ef00b5279f93f8e0c1e73acedd49d7dcc09767-refs/branch-heads/3578@{#836}
OS Mac OS X
  • logged in my personal banking account and ensured that I could view the PDF's without any issues

Verification Passed on

Brave 0.57.16 Chromium: 71.0.3578.80 (Official Build) (64-bit)
Revision 2ac50e7249fbd55e6f517a28131605c9fb9fe897-refs/branch-heads/3578@{#860}
OS Windows
  • Verified the STR mentioned in issue

Verification passed on

Brave 0.57.17 Chromium: 71.0.3578.80 (Official Build) (64-bit)
Revision 2ac50e7249fbd55e6f517a28131605c9fb9fe897-refs/branch-heads/3578@{#860}
OS Linux
  • Verified by logging into a paid service and generated PDF reciept

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/P2 A bad problem. We might uplift this to the next planned release. QA Pass-Linux QA Pass-macOS QA Pass-Win64 QA/Yes release-notes/exclude
Projects
None yet
Development

Successfully merging a pull request may close this issue.