Installation of reference validator on own computer using Tomcat #760
-
How can the reference validator installed locally (as in, on a Windows desktop computer), if using Docker is not an option, and if anything that needs administrator rights should be avoided? According to the deployment options in the training material, not using Docker is still a valid (and supported?) option. The purpose is mainly to validate metadata quickly and locally. What I have done so far:
So far, so good, I can start a test checking a metadata record. However, then I run into
Which is related to #311, #319, #401 and perhaps more issues. As far as I can see, a "(reverse?) proxy" has to be set up, to deal with requests to So now my questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
If anybody has a workaround, that would be fine too. Would it help, to update the test for the metadata locally? Changing e.g. http://inspire.ec.europa.eu to https://inspire.ec.europa.eu ? |
Beta Was this translation helpful? Give feedback.
-
Dear @heidivanparys Thank you for opening this issue and sharing your feedback. As it has been commented in previous issues, the redirection of INSPIRE codelists from HTTP to HTTPS is not supported in the WAR file directly, as it contains Java source code that should not handle this situations to keep the tool as generic as possible. To help the community with this, we included a redirection mechanism in the Docker image, that would setup a proxy server along with the validator, to intercept any request to HTTP INSPIRE domain and send it to the HTTPS endopoint. Anyone that wants to deploy the validator in Tomcat (or any other servlet like Jetty or Wildfly), needs to establish the redirection system in their infrastructure. This can be achieved using virtual domains in Apache server responding to http://inspire.ec.europa.eu/ and redirecting to https://inspire.ec.europa.eu/, as it is done in the Docker image; but is up the system administrators to decide what is the best option. You can check the contents in the latest release to see how we achieved this inside the We are going to try to come up with a comprehensive guide to establish a proxy mechanism and solve the redirection issue when deploying the WAR file directly. Of course, a workaround can be to modify the references in the metadata from HTTP to HTTPS, and avoid the 302 redirection code when requesting the codelists. |
Beta Was this translation helpful? Give feedback.
-
Dear @carlospzurita , I have one question concering this one:
Do you mean in the metadata or/and ETS for metadata? In my opinion if one modifies the references in the metadata 302 redirection won't be automatically avoided in all cases and it is also not conformant to TG 2.0 in some cases, because this is only correct for the other INSPIRE resource (https://inspire.ec.europa.eu/) and not for INSPIRE registry resources (https://inspire.ec.europa.eu/registry). This a bit complicated because many INSPIRE Registry ressources have URL like this one: http://inspire.ec.europa.eu/theme. metadata ETS (I assume in this case HTTPS redirect will also occur) And I am also not sure if your statement is according to this statement: Could somebody clarify this? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
-
Dear @DeordD You are right that my explanation can result confusing. The workaround I was referring was to modify the references on the loaded ETS and any URI that needs to be requested to the registry from HTTP to HTTPS present on the metadata record. This is of course, and I want to stress it, a temporal workaround and it doesn't constitute in any way an official validation. The only way to get an official validation is using the released ETS as they appear in the production instance. |
Beta Was this translation helpful? Give feedback.
-
Dear @carlospzurita , thanks a lot for the clarification, nice support and efforts concerning INSPIRE validator! |
Beta Was this translation helpful? Give feedback.
-
Dear @heidivanparys, were you able to apply the workaround suggested by carlospzurita? |
Beta Was this translation helpful? Give feedback.
-
I don't remember all the details, but we managed to get a local installation up and running. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your feedback. |
Beta Was this translation helpful? Give feedback.
Dear @heidivanparys
Thank you for opening this issue and sharing your feedback.
As it has been commented in previous issues, the redirection of INSPIRE codelists from HTTP to HTTPS is not supported in the WAR file directly, as it contains Java source code that should not handle this situations to keep the tool as generic as possible.
To help the community with this, we included a redirection mechanism in the Docker image, that would setup a proxy server along with the validator, to intercept any request to HTTP INSPIRE domain and send it to the HTTPS endopoint.
Anyone that wants to deploy the validator in Tomcat (or any other servlet like Jetty or Wildfly), needs to establish the redirect…