question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PDFs fail to load if behind basic auth

See original GitHub issue

Carried over from https://github.com/brave/browser-laptop/issues/8702

If a pdf file is behind basic auth, then it fails to display with our pdfjs extension.

Steps to reproduce:

  1. Download this script and extract it to your home directory SimpleHTTPAuth.py.zip. Create a pdf file named type.pdf in the same directory.

  2. Start it python SimpleHTTPAuth.py 9001 u:p

  3. Navigate to http://localhost:9001/type.pdf

Note it works in Chrome with pdfjs but not in Brave built in.

CC @diracdeltas

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
bbondycommented, Nov 1, 2018

@tpeacock19 the one you ran into is not related to basic auth and is fixed here: https://github.com/brave/brave-browser/issues/1287 It’ll be included in 0.57.x but I’ll see if we can get it in 0.56.x which is about a week away.

0reactions
btlechowskicommented, Dec 14, 2018

Verification passed on

Brave 0.58.11 Chromium: 71.0.3578.80 (Official Build) beta (64-bit)
Revision 2ac50e7249fbd55e6f517a28131605c9fb9fe897-refs/branch-heads/3578@{#860}
OS Windows 7 x64

Used STR from OP.

Verification passed on

Brave 0.58.12 Chromium: 71.0.3578.80 (Official Build) (64-bit)
Revision 2ac50e7249fbd55e6f517a28131605c9fb9fe897-refs/branch-heads/3578@{#860}
OS Linux

Verified passed with

Brave 0.58.12 Chromium: 71.0.3578.80 (Official Build) (64-bit)
Revision 2ac50e7249fbd55e6f517a28131605c9fb9fe897-refs/branch-heads/3578@{#860}
OS Mac OS X
  • Verified steps from description
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error = Invalid PDF structure, while viewing and downloading ...
Carried over from brave/browser-laptop#8702 If a pdf file is behind basic auth, then it fails to display with our pdfjs extension. Steps to....
Read more >
Troubleshoot viewing PDF files on the web - Adobe Support
Troubleshoot viewing PDF files on the web ; Open Reader or Acrobat. Choose Help > Check for Updates. Acrobat 9 and earlier: If...
Read more >
node.js - Handling HTML PDFs with Auth Required Images
A request to something like GET /user/images/<imageId> will fail due to the session not being set when the request is made inside the...
Read more >
Authentication and Authorization - Apache HTTP Server
Possible problems. Because of the way that Basic authentication is specified, your username and password must be verified every time you request a...
Read more >
Network error loading pdf | Help Desk - E2Pdf
Hi, "Basic Auth" must not affect the functionality of plugin if you were authenticated, however if you are using some 3rd party plugins...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found