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

HTTP redirects to downloaded content not applied, downloads fail #102

Open
nmtoken opened this issue Jul 9, 2024 · 3 comments
Open

HTTP redirects to downloaded content not applied, downloads fail #102

nmtoken opened this issue Jul 9, 2024 · 3 comments
Labels
under analysis A first analysis is being performed

Comments

@nmtoken
Copy link

nmtoken commented Jul 9, 2024

Related to #95 where the suggestion was to use Edge browser...

I'm using Edge and have the same issue.

For example on page: https://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceCategory/infoManagementService

The links for available formats are all http://

XML Registry
XML ISO 19135
RDF/XML
JSON
CSV
ATOM
ROR

and clicking on the link results in browser refusing to download unsafe content.

workaround is to copy and amend the link, but fix would be to change the link in the page to omit the protocol like :// so http goes to http and https goes to https

@arantzaetxebarria arantzaetxebarria added the under analysis A first analysis is being performed label Jul 10, 2024
@iratigarzon
Copy link

Dear @nmtoken,

Thank you for the proposal. We will consider changing the link depending on the protocol the user is accessing with. In the meantime, I will provide some screenshots to guide you on downloading the format using Edge.

When you click on the download icon, the following message will appear: "infoManagementService.en.rdf can't be downloaded securely."

Captura de pantalla 2024-07-11 091259

However, if you right-click on the message, you will see three dots with more options. One of these options is to keep the file.

captura2

Click on "Keep" to start the download.

Best regards,

Irati

@nmtoken
Copy link
Author

nmtoken commented Jul 11, 2024

@iratigarzon thanks for pointing out that there is an alternative workaround around for the issue, using Edge. It is though an issue.

Most users will expect that when they click on a link to download content from an EU registry they will be able to trust the result and not get a warning.

@nmtoken
Copy link
Author

nmtoken commented Jul 11, 2024

fix would be to change the link in the page to omit the protocol like :// so http goes to http and https goes to https

Apologies, looking at an example I have it would actually be // not :// at the beginning of the URL.

Consider the following test page:

If I browse it as http://ogc.bgs.ac.uk/BGS_ESA_EN_Terrafirma/ the example ogcapi link takes me to http://ogc.bgs.ac.uk/cgi-bin/TFL-PSI/ows/tfl0/ogcapi and if I browse it as https://ogc.bgs.ac.uk/BGS_ESA_EN_Terrafirma/ the link takes me to https://ogc.bgs.ac.uk/cgi-bin/TFL-PSI/ows/tfl0/ogcapi

We have in the source HTML (line 38)
<p><b>Home</b> <a href="//ogc.bgs.ac.uk/cgi-bin/TFL-PSI/ows/tfl0/ogcapi">//ogc.bgs.ac.uk/cgi-bin/TFL-PSI/ows/tfl0/ogcapi</a></p>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
under analysis A first analysis is being performed
Projects
None yet
Development

No branches or pull requests

3 participants