06 May, 2013
5 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8845 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8844 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8843 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
HTTPRequestInfo.java: Changed statusCode to use AtomicInteger instead of volatile Integer to better protect against concurrency. git-svn-id: https://svn.forgerock.org/opendj/trunk@8842 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…uld be displayed in status command output ConfigFromFile.java, ConfigFromDirContext.java: Added support for HTTPConnectionHandlerCfg. Extracted methods addAll(). Used foreach. ConnectionHandlerDescriptor.java, admin_tool.properties: Added HTTP and HTTPS. StatusCli.java: Removed useless creation of a Set local variable. git-svn-id: https://svn.forgerock.org/opendj/trunk@8841 41b1ffd8-f28e-4786-ab96-9950f0a78031
03 May, 2013
2 commits
-
Warn about non existing HTTP access logger when the HTTP connection handler is starting (was when loggers are initialized). LoggerConfigManager.java, HTTPConnectionHandler.java: Moved the warning about non existing HTTP access logger from LoggerConfigManager.initializeLoggerConfig() to HTTPConnectionHandler.startServer(). HTTPAccessLogger.java: Made getHTTPAccessLogPublishers() public. git-svn-id: https://svn.forgerock.org/opendj/trunk@8839 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Implemented the HTTP access logger by taking inspiration from other loggers. Configured the new logger everywhere other loggers are configured. Logged the HTTP request in several places to cover all cases (happy paths, errors, etc.). config.ldif, 02-config.ldif, HTTPAccessLogPublisherConfiguration.xml, FileBasedHTTPAccessLogPublisherConfiguration.xml, HTTPAccessLogPublisherCfgDefn.properties, FileBasedHTTPAccessLogPublisherCfgDefn.properties: ADDED Added 2 new objectClasses HTTPAccessLogPublisherConfiguration and FileBasedHTTPAccessLogPublisherConfiguration. config.properties: Added new error messages for the HTTP access logger. HTTPAccessLogger.java, HTTPAccessLogPublisher.java, TextHTTPAccessLogPublisher.java, HTTPRequestInfo.java: ADDED HTTPRequestInfo.log() prevents double logging. CollectClientConnectionsFilter.java: Logged the request info when HttpServletResponse.setStatus(), sendAuthenticationFailure() and onFailure() are called. Pushed more data to the HTTPRequestContext + switched to use the more specific HttpServletRequest/HttpServletResponse SdkConnectionAdapter.java: Logged the request info when close() is called. LoggerConfigManager.java, TestCaseUtils.java: Configured the HTTP access logger. InProcessServerController.java: TO BE REMOVED (by Matt on the native packaging branch) Sample log: localhost bjensen [03/May/2013:10:14:54 +0200] "GET /users/_queryFilter=true&_prettyPrint=true HTTP/1.1" 500 "curl/7.27.0" localhost bjensen [03/May/2013:10:15:05 +0200] "GET /users/_queryFilter=true&_prettyPrint=true HTTP/1.1" 200 "curl/7.27.0" localhost [03/May/2013:10:15:14 +0200] "GET /users/_queryFilter=true&_prettyPrint=true HTTP/1.1" 200 "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0" localhost [03/May/2013:10:16:40 +0200] "GET /users/_queryFilter=true&_prettyPrint=true HTTP/1.1" 401 "curl/7.27.0" localhost [03/May/2013:10:16:50 +0200] "GET /users/_queryFilter=true&_prettyPrint=true HTTP/1.1" 200 "curl/7.27.0" localhost [03/May/2013:10:16:51 +0200] "GET /favicon.ico/null HTTP/1.1" 404 "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0" localhost [03/May/2013:10:17:10 +0200] "GET /users/_queryFilter=true&_prettyPrint=true HTTP/1.1" 200 "curl/7.27.0" git-svn-id: https://svn.forgerock.org/opendj/trunk@8832 41b1ffd8-f28e-4786-ab96-9950f0a78031
02 May, 2013
3 commits
-
HTTPClientConnection.java: In ctor, memoized all the fields from the ServletRequest before Grizzly decides to recycle it and throw an IllegalStateException when we later try to access these fields. git-svn-id: https://svn.forgerock.org/opendj/trunk@8829 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8828 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8827 41b1ffd8-f28e-4786-ab96-9950f0a78031
01 May, 2013
7 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8826 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
replayDelAddDifferent() is replication.conflict.double_mod_del_add_multi_1 replayDelAddSame() is replication.conflict.double_mod_del_add_multi_2 git-svn-id: https://svn.forgerock.org/opendj/trunk@8825 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8824 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Some tests are probably superfluous, but do no harm. git-svn-id: https://svn.forgerock.org/opendj/trunk@8823 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
These two tests are equivalent to the replication.conflict.mod_replace_vs_mod_del_multi functional test. git-svn-id: https://svn.forgerock.org/opendj/trunk@8822 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
The main commit (8812) breaks these functional tests: replication.conflict.double_mod_del_add_multi_1 replication.conflict.double_mod_del_add_multi_2 replication.conflict.double_mod_add_multi replication.conflict.double_mod_del_multi replication.conflict.mod_replace_vs_mod_del_multi git-svn-id: https://svn.forgerock.org/opendj/trunk@8821 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
* initial commit of Rest2LDAP support * includes basic unit tests (more to come) * need to re-align memory backend implementation and check against patch operation spec in Javadoc. git-svn-id: https://svn.forgerock.org/opendj/trunk@8820 41b1ffd8-f28e-4786-ab96-9950f0a78031
30 Apr, 2013
6 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8819 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8817 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8816 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8815 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Fixed Checkstyle issue. git-svn-id: https://svn.forgerock.org/opendj/trunk@8814 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
AttrHistoricalMultiple.java, AttrHistoricalSingle.java: Changed comments to javadocs. Fixed condition checking. Inlined local variables and used the field instead. Replaced use of Boolean with boolean. We were looking at this code with Ludo and thought replacing the List with a Map had to be done in conjunction with breaking up AttrValueHistorical class to reduce memory usage (removing stroing unnecessary references). The value field should be used as the key of the Map, and the value of the Map should contain an object with a reference to a ChangeNumber and a boolean indicating whether it is an update or a delete (Since they are mutually exclusive). git-svn-id: https://svn.forgerock.org/opendj/trunk@8813 41b1ffd8-f28e-4786-ab96-9950f0a78031
29 Apr, 2013
4 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8812 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8811 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8810 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8809 41b1ffd8-f28e-4786-ab96-9950f0a78031
26 Apr, 2013
3 commits
-
The test was failing due to concurrent modification exception. Using an iterator now to permit removing items from the map during the iteration. Additional minor cleanup. git-svn-id: https://svn.forgerock.org/opendj/trunk@8808 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8807 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8806 41b1ffd8-f28e-4786-ab96-9950f0a78031
25 Apr, 2013
5 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8805 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8804 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Trying to bring opendj server the most possible under maven. Here maven-antrun-plugin is only used to generate the java files from our resources. I am sure there are many glitches that need to be fixed in this file. We'll fix them over time. It is not ready to be used as prime build system yet. For example, no tests are run yet, or several resources are missing (.properties files, other??). My goal is to bring opendj server under Sonar in order to see code coverage data. Use "mvn -f pom-maven.xml clean install" to compile. build.xml: Renamed compileadmin target to generateadmin.mvn -f pom-maven.xml clean install Added generatesources target depending on dynamicconstants, generatemessages and generateadmin. In generateadmin target, pass down admin.src.dir property to generateadminsubtask. pom-maven.xml: ADDED Inspired from pom.xml. git-svn-id: https://svn.forgerock.org/opendj/trunk@8803 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Consolidated common code for the *Logger classes prior to implementing the HTTP access log. AbstractLogger.java: ADDED Pulled up from the *Logger classes. AccessLogger.java, ErrorLogger.java, DebugLogger.java: Now inherit from AbstractLogger. Removed code pulled up into AbstractLogger: initializeErrorLogger(), isConfigurationAddAcceptable(), applyConfigurationAdd(), applyConfigurationChange(), isConfigurationDeleteAcceptable(), applyConfigurationDelete(), isJavaClassAcceptable(), getErrorPublisher(). Added the loggerStorage static variable. Added a ctor + implemented getJavaClassPropertyDefinition() and getStorage(). LoggerConfigManager.java: Replaced the calls to the various initialize*Logger() methods with calling initializeLogger(). Extracted method getLoggerInstance() and used it in all the other methods. LogPublisherConfiguration.xml: Pulled up the declaration of "java-class" property here from sub configurations. AccessLogPublisherConfiguration.xml, DebugLogPublisherConfiguration.xml, ErrorLogPublisherConfiguration.xml, LogPublisherConfiguration.xml: Replaced the declaration of "java-class" property by a property-override. StaticUtils.java: Added close(Collection<Closeable>) git-svn-id: https://svn.forgerock.org/opendj/trunk@8802 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8801 41b1ffd8-f28e-4786-ab96-9950f0a78031
24 Apr, 2013
5 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8799 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Tons of simplification of code, fix of typos, transformed comments to block. In ReplicationDomain, changed synchronization of Map with a concurrentHashMap. Fixed an error message in LDAPReplicationDomain Removed mods from error message on Assured replication ack timeout (could be too large). Added a log message on critical error (when reading change from RS db). Removed some unused code. git-svn-id: https://svn.forgerock.org/opendj/trunk@8797 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Consolidated common code for the *LogPublisher classes prior to implementing the HTTP access log. LogPublisher.java: ADDED Unify all the *LogPublisher classes. Implements Closeable. AccessLogPublisher.java, DebugLogPublisher.java, ErrorLogPublisher.java: Now implementing LogPublisher. Pulled up isConfigurationAcceptable(), initialize*LogPublisher() renamed to initializeLogPublisher(), close(), getDN(). Removed syntactic/spaces differences between all these classes to better expose their commonalities. Used Set and MAp interfaces rather than comcrete classes. AccessLogger.java, ErrorLogger.java, DebugLogger.java: In isJavaClassAcceptable() and getAccessPublisher(), replaced method invocations via reflection by direct method calls. TextAccessLogPublisher.java, TextAuditLogPublisher.java, TextErrorLogPublisher.java, ThreadFilterTextErrorLogPublisher.java, TextDebugLogPublisher.java, ConsoleDebugLogPublisher.java: Consequence of renaming the initialize*LogPublisher() methods, or generecizing the isConfigurationAcceptable() methods in their parent classes. git-svn-id: https://svn.forgerock.org/opendj/trunk@8792 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@8791 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
CryptoManagerTestCase.java: Replaced use of reflection with use of direct method call. Removed useless parentheses. ExtensionTestUtils.java: ADDED Factorizes common code among Extensions tests cases. EntryDNVirtualAttributeProviderTestCase.java, EntryUUIDVirtualAttributeProviderTestCase.java, GoverningStructureRuleVirtualAttributeProviderTestCase.java, HasSubordinatesVirtualAttributeProviderTestCase.java, NumSubordinatesVirtualAttributeProviderTestCase.java, StructuralObjectClassVirtualAttributeProviderTestCase.java, SubschemaSubentryVirtualAttributeProviderTestCase.java: Moved common code from 6 tests methods to ExtensionTestUtils + made tests delegate to the ExtensionTestUtils static methods. git-svn-id: https://svn.forgerock.org/opendj/trunk@8790 41b1ffd8-f28e-4786-ab96-9950f0a78031