23 May, 2013
7 commits
-
HTTPS was wrongly configured: code was configuring an SSLEngine that was then never used. Changed the code to configure an SSLEngineConfigurator that is passed down to Grizzly HTTP server. (Un)surprisingly I hit a bug on my Linux Mint: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/1006776 I had to modify /etc/java-6-openjdk/security/java.security so it uses the sun Elliptic Curve implementation by changing the line security.provider.9=sun.security.pkcs11.SunPKCS11 ${java.home}/lib/security/nss.cfg to security.provider.9=sun.security.ec.SunEC #security.provider.10=sun.security.pkcs11.SunPKCS11 ${java.home}/lib/security/nss.cfg HTTPConnectionHandler.java: Replaced instance members sslContext and sslEngine with sslEngineConfigurator. Renamed createSSLEngine() into createSSLEngineConfigurator(). In createSSLContext(), removed the try / catch block duplicated with the one in createSSLEngineConfigurator(). As a consequence, the following methods changed: configureSSL(), getEnabledSSLCipherSuites(), getEnabledSSLProtocols(), getSSLEngine(), isConfigurationAcceptable(), startHttpServer(). git-svn-id: https://svn.forgerock.org/opendj/trunk@8901 41b1ffd8-f28e-4786-ab96-9950f0a78031 -
The fallback mechanism leaves validation to complete with a warning rather than a failure. Builds fine for me locally git-svn-id: https://svn.forgerock.org/opendj/trunk@8900 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8899 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8898 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
OPENDJ-842 On Windows, the setup command hangs when the length of the install path is too long Code review and initial idea: violette Now that the application starts with the single bootstrap jar, MacOS X can take advantage of this by referencing it statically in the plist files. In other words, it is no longer necessary to build the plist files dynamically. Info.plist: Hardcoded the path to bootstrap.jar build.xml: Removed the code that appended the jars to the **/Info.plist files for MacOS X. git-svn-id: https://svn.forgerock.org/opendj/trunk@8897 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8896 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
OPENDJ-914 Upgrade should add Based HTTP Access Logger to config.ldif - HTTP connection handler and the based HTTP access logger are now added to upgrade. - The http-config.json is added to the config file during upgrade. - Simplified UpgradeTasks.java - Added new messages. - Fixed javadoc for unit test. git-svn-id: https://svn.forgerock.org/opendj/trunk@8895 41b1ffd8-f28e-4786-ab96-9950f0a78031
22 May, 2013
5 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8894 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
OPENDJ-858 Add stats tracking to HTTP client connections The value output by the "cs-uri-query" extended log format was incorrect, the URL parameters should have been separated by a question mark character '?' instead of a slash character '/'. HTTPClientConnection.java: Used a question mark character '?' to build the uri query. git-svn-id: https://svn.forgerock.org/opendj/trunk@8893 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Thanks Matt & Ludo :) git-svn-id: https://svn.forgerock.org/opendj/trunk@8892 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Protected the HTTP Connection Handler against a failing initialization: after two consecutive startup failures, the HTTP connection handler will be disabled, errors will be logged and alerts will be output. HTTPConnectionHandler.java: Added instance member enabled to decouple the enable/disable state from the config. Implemented getAlerts() method. In startHttpServer(), moved the try / catch block and the call to notify() to the run() method. In run(), handle failing initialization. In stopHttpServer(), added a null check in case of failed intitialization. Extracted method cleanUpHttpServer(). ServerConstants.java: Added alerts for HTTP connection handler. protocol*.properties: Modified the name of the LDAP specific properties to be more generic. LDAPConnectionHandler.java Consequence of the change to protocol.properties. git-svn-id: https://svn.forgerock.org/opendj/trunk@8891 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8890 41b1ffd8-f28e-4786-ab96-9950f0a78031
21 May, 2013
9 commits
-
Added documentation. git-svn-id: https://svn.forgerock.org/opendj/trunk@8889 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
* set the default window size to 100K * indicate that the properties may be deprecated in future releases * tag properties as advanced. Reviewed manually by Ludo. git-svn-id: https://svn.forgerock.org/opendj/trunk@8888 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Added documentation. git-svn-id: https://svn.forgerock.org/opendj/trunk@8887 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Added documentation. git-svn-id: https://svn.forgerock.org/opendj/trunk@8886 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
OPENDJ-858 (CR-1702) Add stats tracking to HTTP client connections In HTTP access log, changed the name of the non standard "datetime" field to "x-datetime". Added the "x-etime" field that outputs as a number. Added validation for the log format that outputs error messages. FileBasedHTTPAccessLogPublisherConfiguration.xml, FileBasedHTTPAccessLogPublisherConfiguration.properties: Renamed the "datetime" field to "x-datetime" + added the "x-etime" field. Improved the description of the ds-cfg-log-format. TextHTTPAccessLogPublisher.java, config.properties: Extracted constants for all supported field names. Added ALL_SUPPORTED_FIELDS constant. Changed logFormatFields instance member from String[] to List<String>. Added validateLogFormat() which can output new error messages and called it from applyConfigurationChange() and initializeLogPublisher(). Added subtract(). HTTPClientConnection.java, HTTPRequestInfo.java: Added instance member totalProcessingTime. In sendResponse(), added to the totalProcessingTime + extracted method getProcessingTime(). Added getTotalProcessingTime(). git-svn-id: https://svn.forgerock.org/opendj/trunk@8885 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…d as internal operations. SdkConnectionAdapter.java: In close(), marked the UnbindOperationBasis as being an internal/inner operation. git-svn-id: https://svn.forgerock.org/opendj/trunk@8884 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8883 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
* use synchronized set for storing connections because request cancellation can cause a re-entrant update of the connection set if the connection is closed * simplify notification and avoid locking when removing connections. git-svn-id: https://svn.forgerock.org/opendj/trunk@8882 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…ions when it should be Code review: matthew AbstractTextAccessLogPublisher.java: Fixed the bug by coming back a bit to what the old code was doing (it is not totally comparable). AbstractTextAccessLogPublisherTest.java: Updated the test. git-svn-id: https://svn.forgerock.org/opendj/trunk@8881 41b1ffd8-f28e-4786-ab96-9950f0a78031
19 May, 2013
1 commit
-
…install path is too long resource/bin/_script-util.bat Fixed the classpath on Windows (removed double quotes on bootstrap.jar). git-svn-id: https://svn.forgerock.org/opendj/trunk@8880 41b1ffd8-f28e-4786-ab96-9950f0a78031
17 May, 2013
4 commits
-
…install path is too long UpgradeUtils.java: Fixed the code "fixed" by the plugin. git-svn-id: https://svn.forgerock.org/opendj/trunk@8879 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…install path is too long In order to avoid getting errors like "The input line is too long" on windows, a common way to fix this is to provide a "bootstrap" empty jar which contains only a MANIFEST.MF file listing all the application's jars in the "Class-Path" attribute. This URL describes well enough the problem: http://ant.apache.org/manual/Tasks/manifestclasspath.html build.xml: In "prepackage" target, build bootstrap.jar. _script-util.bat, _script-util.sh: Replaced appending all the jars under libs with just the bootstrap jar. Utilities.java, Utils.java, UpgradeUtils.java: In getInstallPathFromClasspath(), extracted getInstallPath() and simplified its code a lot. Installation.java, Installation.java: Changed OPEN_DS_JAR_RELATIVE_PATHS into OPEN_DJ_BOOTSTRAP_JAR_RELATIVE_PATH. git-svn-id: https://svn.forgerock.org/opendj/trunk@8878 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8877 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8876 41b1ffd8-f28e-4786-ab96-9950f0a78031
16 May, 2013
2 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8875 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
- Modified RPM/Deb scripts - Modify RPM build number. git-svn-id: https://svn.forgerock.org/opendj/trunk@8874 41b1ffd8-f28e-4786-ab96-9950f0a78031
15 May, 2013
4 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8873 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Code review: csovant Jars now appear only once in the classpath (they were appearing twice). INSTALL_ROOT and INSTANCE_ROOT represented the same absolute paths despite having different relative paths, resulting in the jars appended twice to the classpath. After this change, the paths are using the absolute paths instead of the relative paths. _script-util.bat: Fixed jars appearing twice in the classpath git-svn-id: https://svn.forgerock.org/opendj/trunk@8872 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8871 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
- make-ldif / encode-password / ldifsearch & ldifmodify are subject to version verification between unpack/upgrade.(They are disabled at this step). git-svn-id: https://svn.forgerock.org/opendj/trunk@8870 41b1ffd8-f28e-4786-ab96-9950f0a78031
14 May, 2013
8 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8869 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Added support for ds-cfg-num-request-handlers in the HTTPConnectionHandler configuration to bring it at par with the LDAPConnectionHandler configuration. 02-config.ldif, HTTPConnectionHandlerConfiguration.xml, HTTPConnectionHandlerCfgDefn.properties: Added ds-cfg-num-request-handlers. HTTPConnectionHandler.java: Set the SelectorRunnersCount in grizzly based on the numRequestHandlers property. LDAPConnectionHandler.java, ConnectionHandler.java: Moved getNumRequestHandlers() from LDAPConnectionHandler to ConnectionHandler. git-svn-id: https://svn.forgerock.org/opendj/trunk@8868 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8867 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…uration of the password policy is explicitly set as expected for the test. git-svn-id: https://svn.forgerock.org/opendj/trunk@8866 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…ons across the product * change SDK dependencies from 3.0.0-SNAPSHOT to 2.5.0-SNAPSHOT. git-svn-id: https://svn.forgerock.org/opendj/trunk@8865 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…ons across the product * update project version to 2.5.0-SNAPSHOT (development version leading to 2.6.0). git-svn-id: https://svn.forgerock.org/opendj/trunk@8864 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8863 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Now monitoring total etime for each supported HTTP method. While implementing this, I noticed that HTTPRequestInfo was duplicating fields in HTTPClientConnection and adding little more. I moved the missing data in HTTPRequestInfo to HTTPClientConnection and transformed the HTTPRequestInfo class into an interface to keep zero coupling between logging and HTTPClientConnection. HTTPRequestInfo.java: Transformed this class into an interface. Renamed getRemoteHost() to getClientHost() and getRemoteAddress() to getClientAddress(). HTTPClientConnection.java Now implements HTTPRequestInfo. Moved several fields from HTTPRequestInfo here + added missing getters and setters. In sendResponse(), calling HTTPStatistics.updateRequestMonitoringData(). Added log(). TextHTTPAccessLogPublisher.java: Consequence of the changes to HTTPRequestInfo. Also added support for the "c-port", "s-ip", "s-computername", and "s-port" fields. CollectClientConnectionsFilter.java, SdkConnectionAdapter.java: Consequence of the changes to HTTPRequestInfo. HTTPStatistics.java: Renamed instance members nbRequests to requestMethodsTotalCount and nbRequestsTotalCount to requestsTotalCount. Added requestMethodsTotalTime instance member. Completed the constructor, clearStatistics(), getMonitorData(). Fixed clearStatistics(). Added addAll(), updateRequestMonitoringData(). 02-config.ldif: Added attributes for monitoring the total etime of HTTP requests. Renumbered some previously added attributes to follow what is done for LDAP operations etime. git-svn-id: https://svn.forgerock.org/opendj/trunk@8862 41b1ffd8-f28e-4786-ab96-9950f0a78031