remove hardcoding of http
In the following files, the http-protocol is hardcoded as part of the URL. In the case that GeoNetwork is provided through HTTPS only, this behaviour is not wanted.
Therefore I suggest that next to the URL and the port, the protocol (http and https) is also made configurable. Of course, for compatibility reasons, http would be default.
The following files contain the http protocol as hardcoded part of the URL:
SettingInfo.java (line 80)
DataManager.java (line 903 and 2902)
XmlResolver.java (line 73 and 74) (in jeeves.utils)
metadata-iso19115.xsl
metadata-iso19139.xsl
header.xsl
kml.xsl
metadata-show-embedded.xsl
metadata-show.xsl
portal-sitemap.xsl
search-suggestions.xsl
Attached patch for trunk.
To configure https, login as administrator and in System Settings > Server configure the protocol to https and the port to the https port.
Note that SSL certificates must be installed also in the JVM keystore. For example, the print metadata uses java to make https requests to get thumbnails and if not installed the certificates in JVM keystore images can not be retrieved.
The next tutorial worked for me: http://artur.ejsmont.org/blog/content/how-to-import-self-signed-ssl-certificate-to-java-keystore-adding-https-certificate