Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#448 closed defect (fixed)

remove hardcoding of http

Reported by: schaubr Owned by: geonetwork-devel@…
Priority: major Milestone: v2.6.5
Component: General Version: v2.6.2
Keywords: Cc:

Description

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

Attachments (1)

https_support.patch (34.1 KB ) - added by josegar74 13 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by fxp, 13 years ago

Milestone: v2.6.3Future release

by josegar74, 13 years ago

Attachment: https_support.patch added

comment:2 by josegar74, 13 years ago

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

comment:3 by josegar74, 13 years ago

Resolution: fixed
Status: newclosed

comment:4 by ianwallen, 12 years ago

Milestone: Future releasev2.6.5
Note: See TracTickets for help on using tickets.