Previously, LMS app users could host a PDF on box.com and point Hypothesis to the direct-link URL to allow the PDF to be annotated.
Currently, when attempting to annotate a PDF using the direct-link URL, PDF.js throws an error: Message: Unexpected server response (409) while retrieving PDF
User reported this in their Sakai instance. I have replicated in our Canvas instance:
Note: The ability to generate a direct-link URL in box.com (bypassing box.com's web viewer) requires a business account.
Expected behavior
PDF should open successfully in Hypothesis viewer and allow for annotation.
Note: Box.com direct-link URLs go through 3 server redirects, resulting in a final URL that downloads the PDF. Using that final redirected URL for the LMS assignment, rather than the original, allows the PDF to load in Hypothesis successfully.
Previously, LMS app users could host a PDF on box.com and point Hypothesis to the direct-link URL to allow the PDF to be annotated.
Currently, when attempting to annotate a PDF using the direct-link URL, PDF.js throws an error:
Message: Unexpected server response (409) while retrieving PDF
User reported this in their Sakai instance. I have replicated in our Canvas instance:
Note: The ability to generate a direct-link URL in box.com (bypassing box.com's web viewer) requires a business account.
HS Ticket: https://app.hubspot.com/contacts/6291320/ticket/307222030 HAR file attached to ticket.
To Reproduce
I've created an example assignment in Canvas: https://hypothesis.instructure.com/courses/92/assignments/1478
Expected behavior PDF should open successfully in Hypothesis viewer and allow for annotation.
Note: Box.com direct-link URLs go through 3 server redirects, resulting in a final URL that downloads the PDF. Using that final redirected URL for the LMS assignment, rather than the original, allows the PDF to load in Hypothesis successfully.
I've created another Canvas assignment that shows successful loading of PDF using the final URL: https://hypothesis.instructure.com/courses/92/assignments/1489