Project

General

Profile

« Previous | Next » 

Revision 9809

Added by Jing Tao over 8 years ago

Use the method getContextURL rather than getSecureContextURL in the getCapacities method.
So if the server doesn't support sll, the getCapacities will return a baseURL with http.

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
1091 1091

  
1092 1092
            // Set the properties of the node based on configuration information and
1093 1093
            // calls to current status methods
1094
            String serviceName = SystemUtil.getSecureContextURL() + "/" + PropertyService.getProperty("dataone.serviceName");
1094
            String serviceName = SystemUtil.getContextURL() + "/" + PropertyService.getProperty("dataone.serviceName");
1095 1095
            Node node = new Node();
1096 1096
            node.setBaseURL(serviceName + "/" + nodeTypeString);
1097 1097
            node.setDescription(nodeDesc);

Also available in: Unified diff