ACM Digital Library translator fails when HTTPS Everywhere is enabled
Saving from the ACM Digital Library reliably fails when the Firefox Add-On HTTPS Everywhere is enabled. There are no error messages reported to the console, which is why I did not submit an error report. The symptom is an empty white box in the lower right corner, which disappears after ~60sec, presumably when the request for the resources which HTTP Everywhere redirects times out.
Reproducible: always
Steps to reproduce:
1. Install the HTTPS Everywhere add-on (https://www.eff.org/https-everywhere)
2. Try saving any item from ACM Digital Library (e.g. https://dl.acm.org/citation.cfm?id=567085, but I tried various, it is *not* an item-specific issue)
Disabling HTTPS Everywhere (which is obviously not an option for me) reliably solves the issue.
Reproducible: always
Steps to reproduce:
1. Install the HTTPS Everywhere add-on (https://www.eff.org/https-everywhere)
2. Try saving any item from ACM Digital Library (e.g. https://dl.acm.org/citation.cfm?id=567085, but I tried various, it is *not* an item-specific issue)
Disabling HTTPS Everywhere (which is obviously not an option for me) reliably solves the issue.
I doubt we can do much about this. The translator is very clean code, there aren't any hardcoded http or so in there, so if it doesn't work with https everywhere that most likely means the acm site doesn't play well with https everywhere.
What the translator does is switch the site to single-field mode and then export the bibtex and download it - I'd be curious if that works if you do it manually with the add-on enabled.
I've now managed to get some errors logged to the console, which seems to relate to an image rather than the PDF. I'm seeing this error a few dozen times:
Timestamp: 24/07/12 09:50:18
Error: [Exception... "'Image HTTP->HTTPS redirection to https://dl.acm.org/images/ACM_mini.jpg' when calling method: [nsIContentPolicy::shouldLoad]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]
I doubt it's caused by zotero though, since when I clear the console and try to save the citation to zotero no errors are logged.
Also clicking on the PDF link and then selecting "Save to Zotero" from the context menu works fine. It's really the translator that fails it seems.
http://www.zotero.org/support/debug_output
but the error log seems to indicate that it is indeed the site that's not working well with https everywhere. Since Zotero's translator makes additional http(s) requests it could well be that something breaks on the way, but I really can't think of anything we could do about that. You can try reporting this to ACM and https everywhere.
This time the white box did not disappear - left it running for > 30min and it's still there.
I'll report to ACM and HTTPS Everywhere. Presumably they'll also want some debug information.
Here's the relevant debug output: That last error is from HTTPS Everywhere. Simon might have some ideas here, but if that error doesn't happen under any other circumstances I'd guess that this has something to do with the translator sandbox.
Also, for reference, kynan's post to the HTTPS Everywhere tracker: https://trac.torproject.org/projects/tor/ticket/6499
Thanks to the HTTPS Everywhere and Mozilla folks who are working on it.