#17 Problem with HTTPS redirection

v1.0 (example)
open
nobody
Core bug (7)
5
2012-11-12
2012-11-12
belmontemartin
No

Version: 2.1.0

* certificate installed and redirection configured (C&P configuration used:)

From server.xml:

<Connector port="80" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />

<Connector port="443" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true" SSLEnabled="true" keyAlias="root"
keystoreFile=".keystore" keypass="******"
clientAuth="false" sslProtocol="TLS"/>

From web.xml:

<!-- Automatic redirect from HTTP to HTTPS -->
<security-constraint>
<web-resource-collection>
<web-resource-name>Entire Application</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>

Redirection and certificate works but it shows following error in catalina.out:

Nov 12, 2012 6:16:02 PM org.onecmdb.ui.gwt.desktop.server.service.model.ConfigurationFactory loadConfigFile
INFO: OK - Configuration loaded...
Nov 12, 2012 6:16:02 PM org.onecmdb.ui.gwt.desktop.server.service.content.ContentParserFactory getAdaptor
INFO: Adapt file 'OneCMDB_Core/Configuration/onecmdb.xml' to 'java.util.Properties' with 'org.onecmdb.ui.gwt.desktop.server.service.content.PropertyAdaptor'
Nov 12, 2012 6:16:02 PM org.onecmdb.ui.gwt.desktop.server.service.model.CMDBWebServiceFactory getOneCMDBWebService
INFO: OneCMDB WSDL URL 'http://localhost:80/webservice/onecmdb'
Nov 12, 2012 6:16:02 PM org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded
INFO: Redirect requested but followRedirects is disabled
Nov 12, 2012 6:16:02 PM org.onecmdb.ui.gwt.desktop.server.service.model.ModelServiceImpl autenticate
INFO: autenticate(username=admin, pwd=*******) --> token=null
Nov 12, 2012 6:16:02 PM org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded
INFO: Redirect requested but followRedirects is disabled

(See attachment)

I tried with <url-pattern>/onecmdb*</url-pattern>

and it works, but redirection does not.

Discussion

  • belmontemartin
    belmontemartin
    2012-11-12

    clientrpc

     
    Attachments