22 Sep, 2014

1 commit


15 Jul, 2014

1 commit


07 May, 2014

1 commit

  • * Add new package org.opends.server.replication.server.changelog.file 
     containing the log file implementation 
    
    * The new package contains the following classes :
    ** Classes implementing the log - independant from changelog and built from scratch
      - LogFile : implementation of log based on a single file
      - LogWriter : writer for the log
      - LogReaderPool : pool of readers for the log
      - Record : a (key, value) log record
      - RecordParser : interface for the convertion from record to bytes and bytes to record
      - DecodingException : exception thrown when record decoding fails
    ** Classes implementing the changelog API, based on the log implementation. 
     - FileChangelogDB
     - FileChangeNumberIndexDB
     - FileChangeNumberIndexDBCursor
     - FileReplicaDB
     - FileReplicaDBCursor
     - ReplicationEnvironment
    
    * Add unit tests for org.opends.server.replication.server.changelog.file package
    
    * Add new attribute 'ds-cfg-replication-db-implementation' in 
     ds-cfg-replication-server (ServerReplicationConfig class), allowing
     to choose the db implementation to use for changelog in directory server: 
     either je or log file. Default is 'je'.
    
    * Add new option 'org.opends.test.replicationDbImpl' for test target in build.xml
     to choose the db implementation to for changelog when running the tests.
     Default is 'log' (log file).
    
    * Update all replication unit tests to allow the selection of changelog db implementation
     to use in tests.
     
    * Fix the ReferentialIntegerityPluginTestCase to do better cleanup at end of test in
     order to avoid side-effect on other tests.
    
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@10713 41b1ffd8-f28e-4786-ab96-9950f0a78031
    nicolas.capponi@forgerock.com
     

30 Jan, 2014

1 commit


13 Jan, 2014

1 commit


13 Dec, 2013

1 commit

  • 
    Most of the replace was done by global search replace from Eclipse via regular expressions.
    Individual files had incorrect headers or badly formatted ones, so some of them have been done manually by replacing the content between CDDL HEADER START and CDDL HEADER END.
    Some headers were quoting "trunk/opends/resource/legal-notices/CDDLv1_0.txt" while it should have been "legal-notices/CDDLv1_0.txt".
    
    
    Removed:
    - resource/legal-notices/OpenDS.LICENSE
    
    The following required manual changes:
    - build.xml
    - ext/checkstyle/opendj.sourceheader
    - resource/admin/java-utilities.xsl
    - src/build-tools/org/opends/build/tools/ProcessFilesForPackages.java
    - src/build-tools/windows/*
    - src/pkg/opends-dsml-gateway_proto.py
    - src/pkg/opends_proto.py
    - src/server/org/opends/server/util/ServerConstants.java
    - tests/staf-tests/functional-tests/shared/data/aci/aci_targattrfilter/add_aci18.ldif
    - tests/staf-tests/build.bat
    
    An incorrect header mentionning "exclude" instead of "include" in the copyright header existed for: tests/staf-tests/functional-tests/testcases/backends/backup/**/*
    
    Some files have no copyright headers at all. I did not update them. Here is some of them (more exist):
    - tests/staf-tests/functional-tests/shared/data/core/psearch/**/*.ref
    - tests/staf-tests/functional-tests/shared/data/core/psearch/**/delete.ldif
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@9984 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     

05 Dec, 2013

1 commit


03 Oct, 2013

1 commit

  • These changes are adding a new optional configuration parameter : rmi-port, to allow specifying a fixed port for the RMI connection underlying JMX. This is required when managing applications need to connect to OpenDJ through a firewall.
    CR-2429.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@9655 41b1ffd8-f28e-4786-ab96-9950f0a78031
    ludo
     

11 Jun, 2013

2 commits


14 May, 2013

2 commits

  • 
    
    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
    JnRouvignac
     
  • 
    
    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
    JnRouvignac
     

13 May, 2013

2 commits

  • Added support for monitoring statistics of the HTTP connection handler:
    It monitors: total number of requests, and number of delete, get, patch, post and put requests.
    It also monitors the internal LDAP operations to display how the server is performing.
    
    
    HTTPConnectionHandler.java, HTTPClientConnection.java, CollectClientConnectionsFilter.java, SdkConnectionAdapter.java:
    Added support for statistics.
    
    config.ldif, HTTPConnectionHandlerConfiguration.xml, HTTPConnectionHandlerCfgDefn.properties:
    Added "keep-stats" property.
    
    02-config.ldif:
    Added attributes "ds-mon-http-*" for monitoring HTTP statistics.
    
    LDAPStatistics.java:
    Changed getMonitorData() return type to List.
    Made createAttribute protected.
    
    HTTPStatsProbe.java, HTTPStatistics.java: ADDED
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@8859 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     
  • HTTPConnectionHandler.java, HTTPClientConnection.java, CollectClientConnectionsFilter.java, SdkConnectionAdapter.java:
    Added support for statistics.
    
    02-config.ldif, config.ldif, HTTPConnectionHandlerConfiguration.xml, HTTPConnectionHandlerCfgDefn.properties:
    Added "keep-stats" property.
    
    02-config.ldif:
    Added attributes "ds-mon-http-*" for monitoring HTTP statistics.
    
    LDAPStatistics.java:
    Changed getMonitorData() return type to List.
    Made createAttribute protected.
    
    HTTPStatsProbe.java, HTTPStatistics.java: ADDED
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@8857 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     

03 May, 2013

1 commit

  • 
    
    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
    JnRouvignac
     

22 Apr, 2013

1 commit

  • 
    
    Limited the number of concurrent operations per client connection.
    
    
    
    SdkConnectionAdapter.java:
    Changed the queueing strategy to BoundedWorkQueueStrategy.
    
    BoundedWorkQueueStrategy.java: ADDED
    
    AbandonOperationWrapper.java, xtendedOperationWrapper.java, UnbindOperationWrapper.java: ADDED
    
    DirectoryServer.java:
    Extracted checkCanEnqueueRequest() from enqueueRequest().
    Added tryEnqueueRequest().
    
    WorkQueue.java:
    Pulled computeNumWorkerThreads() here from sub classes.
    Added abstract method trySubmitOperation().
    Added abstract getter getNumWorkerThreads().
    
    ParallelWorkQueue.java:
    Implemented trySubmitOperation() and getter getNumWorkerThreads().
    Renamed getNumWorkerThreads() to computeNumWorkerThreads() + moved it to WorkQueue.
    
    TraditionalWorkQueue.java:
    Implemented trySubmitOperation() and getter getNumWorkerThreads().
    Renamed getNumWorkerThreads() to computeNumWorkerThreads() + moved it to WorkQueue.
    Extacted overloaded method submitOperation(Operation, boolean) from submitOperation(Operation).
    
    
    
    ClientConnection.java, JmxClientConnection.java, HTTPClientConnection.java, InternalClientConnection.java, MockClientConnection.java, LDAPClientConnection.java:
    Added abstract method isConnectionValid() + implemented it in subclasses.
    
    
    
    02-config.ldif, HTTPConnectionHandlerConfiguration.xml:
    Added property max-concurrent-ops-per-connection
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@8775 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     

12 Apr, 2013

1 commit

  • Added the possibility for the HTTP Connection Handler to accept unauthenticated requests.
    
    CollectClientConnectionsFilter.java:
    Extracted method getAuthenticationInfo() and added support for unauthenticated requests here.
    
    CollectClientConnectionsFilterTest.java:
    Added tests.
    
    HTTPConnectionHandler.java:
    Added acceptUnauthenticatedRequests().
    
    config.ldif, 02-config.ldif, HTTPConnectionHandlerConfiguration.xml, HTTPConnectionHandlerCfgDefn.properties:
    Added property 'ds-cfg-authentication-required' with default 'true' to HTTP Connection Handler
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@8733 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     

25 Mar, 2013

1 commit

  • Added support for using the Rest2LDAP servlet from OpenDJ HTTPConnectionHandler.
    
    
    
    HTTPConnectionHandler.java:
    Added support for using the Rest2LDAP servlet + removed the FakeServlet.
    Added the JSON_MAPPER constant to parse the JSON config file for Rest2LDAP.
    Added getClientConnectionsMap() getter.
    Added getConnectionFactory() method, heavily inspired from org.forgerock.opendj.rest2ldap.servlet.Rest2LDAPConnectionFactoryProvider.getConnectionFactory().
    In startHttpServer(), silenced Grizzly logging + set the IOThreadStrategy to be single threaded + changed the access path to the servlet.
    
    CollectClientConnectionsFilter.java:
    Added support for using the Rest2LDAP servlet.
    Removed clientConnections instance member, now get this value from the HTTPConnectionHandler.
    
    config.ldif, 02-config.ldif, HTTPConnectionHandlerConfiguration.xml, HTTPConnectionHandlerCfgDefn.properties:
    Added ds-cfg-config-file property to ds-cfg-http-connection-handler objectClass.
    
    http-config.json: ADDED (copied from opendj-rest2ldap-servlet project)
    
    
    ivy.xml:
    Added dependencies to Rest2LDAP.
    
    ivysettings.xml:
    Added support for updating SNAPSHOTS.
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@8638 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     

20 Mar, 2013

1 commit

  • Added the HTTPConnnectionHandler implemented using Grizzly.
    Added support for all configuration similar to the LDAPConnectionHandler.
    Missing support for ds-cfg-keep-stats and ds-cfg-num-request-handlers.
    
    
    config.ldif, 02-config.ldif:
    Added new entry for HTTP connection handler + defaults.
    
    HTTPConnectionHandlerCfgDefn.properties, HTTPConnectionHandlerConfiguration.xml: ADDED
    
    LDAPConnectionHandlerConfiguration.xml:
    Moved properties common to HTTPConnectionHandlerConfiguration.xml to Package.xml .
    
    protocol*.properties:
    Merged protocol messages between LDAP, HTTP and JMX. Made them non LDAP specific.
    Added 2 new protocol messages for HTTP.
    
    
    CollectClientConnectionsFilter.java, HTTPClientConnection.java, HTTPConnectionHandler.java, package-info.java: ADDED
    
    JmxClientConnection.java, JmxConnectionHandler.java, LDAPClientConnection.java:
    Used common protocol messages.
    
    LDAPConnectionHandler.java
    Used common protocol messages.
    Extracted method configureSSL()
    Simplified the code in getEnabledSSLCipherSuites() and getEnabledSSLProtocols() and protected against a multi threaded change ofg the SSL engine by using a local copy.
    
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@8613 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     

20 Feb, 2013

1 commit


07 Feb, 2013

1 commit


11 Jan, 2013

1 commit


21 Dec, 2012

1 commit


19 Dec, 2012

1 commit


21 Nov, 2012

1 commit


08 Nov, 2012

1 commit


10 Aug, 2012

1 commit


09 Aug, 2012

1 commit

  • Thanks to Manuel Gaupp for this contribution, which adds pkiUser, pkiCA
    and deltaCRL object classes from RFC 4523 to 00-core.ldif
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@8131 41b1ffd8-f28e-4786-ab96-9950f0a78031
    cjr
     

07 Aug, 2012

1 commit


12 Jul, 2012

1 commit


13 Jun, 2012

1 commit

  • …ing/decoding entries and protocol messages
    
    * introduce global option max-internal-buffer-size (default 32KB) for managing the maximum size of internal buffers
    * use simpler ASN1Writer implementation for LDAP client connections
    * minor fix to SASL confidentiality and integrity for large packets.
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@8046 41b1ffd8-f28e-4786-ab96-9950f0a78031
    matthew
     

11 May, 2012

1 commit

  • A huge thanks to Manuel Gaupp for this contribution.
    
    In addition to the original contributed change I have made the following alterations:
    
    * make the CertificateSyntax strictness configurable. By default the syntax will enforce the syntax, but this can be disabled if needed
    
    * add a new method "isHumanReadable" to AttributeSyntax and AttributeType classes in order to make it easier to determine whether or not a syntax/type is human readable. This can be used in order to determine whether or not an attribute value can be included in log messages, for example.
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@7979 41b1ffd8-f28e-4786-ab96-9950f0a78031
    matthew
     

19 Mar, 2012

1 commit


14 Mar, 2012

1 commit


23 Feb, 2012

1 commit


03 Jan, 2012

1 commit


12 Dec, 2011

1 commit


24 Nov, 2011

1 commit


05 Nov, 2011

1 commit


03 Nov, 2011

1 commit