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

Embedded client in OSF page searching for a PDF fingerprint that does not match the PDF on the page #195

Open
mkdir-washington-edu opened this issue Apr 15, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@mkdir-washington-edu
Copy link
Contributor

Describe the bug
When visiting https://osf.io/preprints/metaarxiv/cd5j9/ annotations appear in the embedded app in Public that belong to a different page.

The page https://osf.io/preprints/metaarxiv/cd5j9/ has a document_id of 1508122. The only annotations on that document_if are in a private group, group.id = 68313. No PDF fingerprint has been recorded on the document_uri table for that document_id, but the Console reports a fingerprint of 22b24cb50f2b8e42ae17629cd0e0166c. /search/ on the page has the following request URL:
https://hypothes.is/api/search?_separate_replies=false&group=__world__&limit=50&order=asc&sort=created&uri=https%3A%2F%2Fosf.io%2Fpreprints%2Fmetaarxiv%2Fcd5j9%2F&uri=urn%3Ax-pdf%3A3b67a8f9a67e369c0b9936dac10cabb6c72d4d56045f9ce4bb6826311993fb16

One of the annotations in Public on that page is: https://hyp.is/TzrxwnVhEemnqNt0a1u6Rg/osf.io/sfc38/. This annotation is associated with document_id = 202207. This document_id is associated with httpx://osf.io/sfc38, httpx://osf.io, and several PDF fingerprints. One of those fingerprints is urn:x-pdf:3b67a8f9a67e369c0b9936dac10cabb6c72d4d56045f9ce4bb6826311993fb16, which is being searched.

So it seems /search/ is looking for the correct URL, but not for the PDF fingerprint that the web Console is picking up, but rather a different fingerprint not currently associated with the URL.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://osf.io/preprints/metaarxiv/cd5j9/
  2. In the embedded client on that page open the Public folder.
  3. See annotations from document_id = 202207
  4. See /search/ on that page.

Expected behavior
I would expect /search/ to use the PDF fingerprint for the PDF embedded on the page.

Screenshots
image

image

Desktop (please complete the following information):

  • Browser: Chrome 89
  • OS: Mac OS 10.14

Additional context
https://twitter.com/BreznauNate/status/1382558665417318401

@mkdir-washington-edu mkdir-washington-edu added the bug Something isn't working label Apr 15, 2021
@mkdir-washington-edu
Copy link
Contributor Author

@mkdir-washington-edu
Copy link
Contributor Author

mkdir-washington-edu commented Apr 21, 2021

https://app.hubspot.com/contacts/6291320/ticket/383286953
Related: someone who helps manage OSF wrote in saying they think the users experiencing this are running an extension interfering with the page. However, since I wrote this issue up the problem now exists in Chrome 89 and Firefox 88 as well as Safari 14.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant