sul-embed icon indicating copy to clipboard operation
sul-embed copied to clipboard

For location-restricted PDF, empty viewport is shown when not at an authorized IP

Open snydman opened this issue 8 years ago • 3 comments

Expected behavior

When I visit a PURL for a PDF that is location restricted, I should not be able to view or download the PDF, but I should get some indication that the object I am trying to fetch is restricted. The current SUL-Embed, which treats PDF documents only with a file list does the following:

image

Actual behavior

In UV, get an empty viewport :

image

Steps to reproduce the behavior

Go to https://sul-purl-uat.stanford.edu/yv090xk3108 when not in the Music Library IP range.

Browser / Environment

Version 60.0.3112.101 (Official Build) (64-bit) in Mac OSX Yosemite

snydman avatar Aug 18 '17 18:08 snydman

For this same object, I got the same behavior when at the Music Library kiosk machine, which should have been location-okay.

In Firefox, download was possible (which opened the PDF in a separate window), but the PDF itself never loaded in the viewer.

The kiosk machine (Windows) had Firefox and IE loaded. The IE experience was different - PDF loaded within the UV with some sort of Adobe chrome around it, and was saveable through the Adobe chrome, but would not download from the embed download icon.

blalbrit avatar Aug 25 '17 22:08 blalbrit

Thanks for the good data points on this.

mejackreed avatar Aug 26 '17 00:08 mejackreed

There is no IIIF Auth api for non-image objects as @cbeer points out here: https://github.com/sul-dlss/purl/issues/180#issuecomment-327871812

This is likely the reason that UV can't implement this behavior.

mejackreed avatar Sep 07 '17 22:09 mejackreed

Closing this as we do not use UV anymore.

andrewjbtw avatar Jan 28 '25 00:01 andrewjbtw