Closed baskaufs closed 2 years ago
Yes, I think you've diagnosed the issue correctly. We have switched over the domain name, but we now need to import the SSL certificate. Right now, we're not authenticating properly via SSL, leading the browser to reject our request. I believe we need to import the SSL (see https://aws.amazon.com/certificate-manager/), which likely means another request to Cloud IT.
@baskaufs @CliffordAnderson Looking into this presently. I'll let you know if I have any questions, Steve. Thanks as always for your very thorough diagnosis.
Andy got the redirect to work and one can now query directly in a browser and via Python HTTP requests. However, when making requests using Javascript, there are CORS problems like this:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://sparql.vanderbilt.edu/sparql?query=SELECT%20DISTINCT%20%3Fgenus%20WHERE%20%7B%3Fpage%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2Fcreator%3E%20%22bioimages.vanderbilt.edu%22.%3Fpage%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2Freferences%3E%20%3Forganism.%3Fidentification%20%3Chttp%3A%2F%2Fpurl.org%2Fdsw%2Fidentifies%3E%20%3Forganism.%3Fidentification%20%3Chttp%3A%2F%2Frs.tdwg.org%2Fdwc%2Fterms%2Fgenus%3E%20%3Fgenus.%7DORDER%20BY%20ASC(%3Fgenus). (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.
This seems to be resolved now with the CORS setup:
Access-Control-Allow-Headers left blank
Access-Control-Allow-Origin set as *
(Matthew Dillingham helped us figure this out.)
I belive that the request to map the sparql.vanderbilt.edu subdomain over to the Neptune one has already been completed. However, querying to the sparql.vanderbilt.edu subdomain still doesn't work.
Querying the Neptune endpoint directly works fine:
Querying via the sparql.vanderbilt.edu endpoint produces this error when the query is made programatically:
Pasting the query
directly in a browser produces these results:
Note: the results are the same regardless of whether the SSH tunnel is open or not.
Based on the errors, it appears that there is some problem with the security certificate, but not the actual subdomain mapping. @CliffordAnderson @awesolek2 do you have any ideas about how we should go about fixing this?