@@ -28,8 +28,32 @@ void processUrl(String url) throws SwordError {
28
28
} catch (URISyntaxException ex ) {
29
29
throw new SwordError (UriRegistry .ERROR_BAD_REQUEST , "Invalid URL syntax: " + url );
30
30
}
31
+ /**
32
+ * @todo: figure out another way to check for http. We used to use
33
+ * javaNetUri.getScheme() but now that we are using "ProxyPass /
34
+ * ajp://localhost:8009/" in Apache it's always http rather than https.
35
+ *
36
+ * http://serverfault.com/questions/6128/how-do-i-force-apache-to-use-https-in-conjunction-with-ajp
37
+ * http://stackoverflow.com/questions/1685563/apache-webserver-jboss-ajp-connectivity-with-https
38
+ * http://stackoverflow.com/questions/12460422/how-do-ensure-that-apache-ajp-to-tomcat-connection-is-secure-encrypted
39
+ */
31
40
if (!"https" .equals (javaNetUri .getScheme ())) {
32
- throw new SwordError (UriRegistry .ERROR_BAD_REQUEST , "https is required but protocol was " + javaNetUri .getScheme ());
41
+ /**
42
+ * @todo figure out how to prevent this stackstrace from showing up
43
+ * in Glassfish logs:
44
+ *
45
+ * Unable to populate SSL attributes
46
+ * java.lang.IllegalStateException: SSLEngine is null at
47
+ * org.glassfish.grizzly.ssl.SSLSupportImpl
48
+ *
49
+ * SSLOptions +StdEnvVars +ExportCertData ?
50
+ *
51
+ * [#GLASSFISH-20694] Glassfish 4.0 and jk Unable to populate SSL
52
+ * attributes - Java.net JIRA -
53
+ * https://java.net/jira/browse/GLASSFISH-20694
54
+ */
55
+ logger .info ("https is required but protocol was " + javaNetUri .getScheme ());
56
+ // throw new SwordError(UriRegistry.ERROR_BAD_REQUEST, "https is required but protocol was " + javaNetUri.getScheme());
33
57
}
34
58
this .port = javaNetUri .getPort ();
35
59
String [] urlPartsArray = javaNetUri .getPath ().split ("/" );
0 commit comments