Support for HTTPS in SPARQL endpoint

67 zobrazení
Přeskočit na první nepřečtenou zprávu

Eric Weitz

nepřečteno,
24. 6. 2021 8:07:3224.06.21
komu: wikipathways-discuss
Hi WikiPathways,

Could you support HTTPS in the SPARQL endpoint (http://sparql.wikipathways.org)?  Among other benefits, this would enable SPARQL queries directly from JavaScript in a web browser.

It seems CORS is enabled, which is great and necessary.   However, many browsers prohibit "mixed content" -- i.e. loading HTTP resources from an HTTPS domain -- because it is insecure.  My use case for querying the SPARQL endpoint directly from the browser involves an ideogram web component for gene search recommendations.  More use cases are certainly feasible.  

Steps to reproduce a minimal use case:

2.  Open your web browser's Developer Tools (DevTools) 
3.  Go to Console panel in DevTools
4.  Execute this sample code:


5.  Note error message: 


7.  Go to an HTTP domain, e.g. http://example.com
8.  Execute steps 2 - 4
9.  Note no error

The expected behavior is to see no error in step 5.

Thanks for considering this enhancement to widen the audience for WikiPathways!

Best regards,
Eric


Eric Weitz

nepřečteno,
25. 6. 2021 6:10:0725.06.21
komu: wikipathways-discuss
To clarify, those steps describe why lacking HTTPS is a problem.  The expected solution would allow using HTTPS in the SPARQL query, e.g.:


(Note use of "https://" rather than "http://" above.)

Currently, when that JavaScript is run via web browser DevTools Console, it returns an error, net::ERR_CERT_COMMON_NAME_INVALID.

In addition to enabling queries directly from JavaScript in a web browser -- and the useful applications that makes possible -- supporting HTTPS in the SPARQL endpoint would also let users browse the SNORQL UI at https://sparql.wikipathways.org without needing to bypass loud security warnings.

How feasible would it be to support HTTPS in the SPARQL endpoint?

Thanks,
Eric

Egon Willighagen

nepřečteno,
25. 6. 2021 6:13:3125.06.21
komu: wikipathways-discuss
Hi Eric,

I up the urgency of this with our team.

Egon

--
You received this message because you are subscribed to the Google Groups "wikipathways-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wikipathways-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wikipathways-discuss/6dd1894b-a97b-4c82-996d-0681946e1849n%40googlegroups.com.


--
This year I am stepping down as co-Editor-in-Chief of the Journal of Cheminformatics, because of a conflict of interest with Springer Nature. See https://twitter.com/egonwillighagen/status/1403299501947899907 

-----
E.L. Willighagen
Department of Bioinformatics - BiGCaT
Maastricht University (http://www.bigcat.unimaas.nl/)

Eric Weitz

nepřečteno,
25. 6. 2021 6:18:2125.06.21
komu: wikipathways-discuss
I truly appreciate that, Egon!

Eric Weitz

nepřečteno,
1. 7. 2021 8:06:3501.07.21
komu: wikipathways-discuss
I just noticed https://sparql.wikipathways.org and my example HTTPS SPARQL query now work!  Thanks for the quick enhancement, Egon and team.

Egon Willighagen

nepřečteno,
1. 7. 2021 8:19:3801.07.21
komu: wikipathways-discuss

yeah, sorry, this was done earlier this week, but I was too preoccupied with paper submission deadline that I forgot to update you :(

Egon

De Sl

nepřečteno,
23. 3. 2023 6:33:1823.03.23
komu: wikipathways-discuss
Hi Eric,

Yes, the https change should now be part of every release; if you don't see it directly in the SNORQL interface, you could consider a hard page refresh (ctrl-F5) to remove the cached page).

Odpovědět všem
Odpověď autorovi
Přeposlat
0 nových zpráv