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

Hypothesis recording URLs for www.lifescied.org that don't work when visiting in context (extension or Via) #1358

Open
mkdir-washington-edu opened this issue May 11, 2022 · 0 comments
Labels

Comments

@mkdir-washington-edu
Copy link

mkdir-washington-edu commented May 11, 2022

Related

EPUBS

Related to #1356

Related to #709

PDFs

Related to #1358

Related to #1360

Bug report form

Steps to reproduce

  1. Visit https://www.lifescied.org/doi/epdf/10.1187/cbe.16-03-0125
  2. Create annotation
  3. From the Activity Page visit annotation in context
  4. See error:
    Unexpected server response.
    PDF.js v2.14.137 (build: 27e738dff)
    Message: Unexpected server response (403) while retrieving PDF "https://www.lifescied.org/doi/pdfdirect/10.1187/cbe.16-03-0125?hmac=1652291030-iO2ANjHjvxu3q%2B4CHgiZWBq%2FfWf2Ujn1xtJxrlCDhIM%3D".

Visiting https://www.lifescied.org/doi/pdfdirect/10.1187/cbe.16-03-0125?hmac=1652291030-iO2ANjHjvxu3q%2B4CHgiZWBq%2FfWf2Ujn1xtJxrlCDhIM%3D gives the error "Failed to load PDF document."

Expected behaviour

The PDF opens with the annotation selected for in-context viewing.

Actual behaviour

Users get the "Unexpected server response." error which doesn't tell them much about what happened there.

Browser/system information

macOS 11.6.5
Chrome 100

Additional details

Support ticket: https://app.hubspot.com/contacts/6291320/ticket/905817203/

Related

Related to #1360

  • It seems at least superficially we're running into a similar issue because the URL saved for the PDF differs from the user's expected location

Ideas

  • Hypothesis could capture the URL where the PDF is displayed instead of the current URL (where it's stored perhaps?).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants