17 Aug, 2007
6 commits
-
… This biggest issues here is the reversion of the Validator class to use String based messages instead of the message framework as the class is only used internally. git-svn-id: https://svn.forgerock.org/opendj/trunk@2669 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
… ADS and of guitools). git-svn-id: https://svn.forgerock.org/opendj/trunk@2668 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
The DatabasesTableModel now returns for several values Message objects. Update the DatabaseTableCellRenderer to take this into account. git-svn-id: https://svn.forgerock.org/opendj/trunk@2667 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
… listener state as it does for the other columns. git-svn-id: https://svn.forgerock.org/opendj/trunk@2666 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
1. Provide a fix for the CLI part of issue 1894 (consider replication in uninstall). The command line now proposes to remove references in remote servers of the server that is being uninstalled. 2. Add options to specify to uninstall only some parts of the server as appears in http://bde.central.sun.com/projects/opendsw/cmdline/commandmatrix.html. 3. Fix some bugs in the messages. 4. The fix of 1894 includes some code to display certificates to the user so that they can be viewed and accepted interactively. 5. Separate the uninstall command-line into two different command lines (uninstall-gui and uninstall) as appears in http://bde.central.sun.com/projects/opendsw/cmdline/commandmatrix.html. git-svn-id: https://svn.forgerock.org/opendj/trunk@2665 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
initialize the proper internal structures so that OpenDS code can be more easily used for client-side applications that could benefit from the code but don't want or need to be running in the same JVM as the server. Also, update the DirectoryServer.bootstrapClient() method (which is what EmbeddedUtils.initializeForClientUse() uses behind the scenes) can be called multiple times on the same server instance without interfering with any previous initialization that might have been done. In short, it will ensure that this initialization occurs no more than once during the life of the DirectoryServer object instance. git-svn-id: https://svn.forgerock.org/opendj/trunk@2664 41b1ffd8-f28e-4786-ab96-9950f0a78031
16 Aug, 2007
10 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@2662 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
allows you to create a new internal client connection authenticated as a given user by providing only that user's DN (as opposed to having to create an AuthenticationInfo object for the user in order to use the other constructor). git-svn-id: https://svn.forgerock.org/opendj/trunk@2660 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
restarting correctly when performing an in-core restart. Also, eliminate a potential null pointer exception if an admin alert was generated early in the server startup process. OpenDS Issue Number: 1518 git-svn-id: https://svn.forgerock.org/opendj/trunk@2659 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
… root during the directory configuration. This is addressed by adding a hidden arg to ConfigureDS for the server root that the installer uses for the specification of the directory. This also fixes SchemaConfigManager so that it doesn' throw an NPE if the server root happens to not be specified and the schema directory cannot be determined. git-svn-id: https://svn.forgerock.org/opendj/trunk@2658 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@2657 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
- Fixes an error introduced in with Application.ErrorPrintStream no longer overrode println(String) as was causing a stack overflow. - Fixes a problem with Message in which raw format strings were run through the formatter with illegal argument specifiers which would throw an exception. git-svn-id: https://svn.forgerock.org/opendj/trunk@2656 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@2652 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@2651 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
whether any or all of the classes in that package are intended to be part of the public API. Further, mark all classes that we intend to be part of the public API with the @PublicAPI annotation to indicate the ways in which they may be used. Note that the use of these annotations and the ultimate determination as to what is in our public API and the ways in which those elements may be used still needs to be carefully reviewed before the 1.0 release. Also, perform minor cleanup in various places througout the code. This includes: - Eliminate the use of protected fields in classes that are in the org.opends.server.api package (and the classes that extend them). The use of protected fields can be troublesome, and there are generally better ways to accomplish the same thing. - Eliminate the use of the {@inheritDoc} Javadoc tag in classes that are intended to be part of the public API. Some IDEs don't resolve {@inheritDoc} to show the actual documentation. Further, there were problems in the way that some instances of {@inheritDoc} were used, namely having a method sourced from multiple parents, and in some cases {@inheritDoc} was used to refer to code defined outside of the OpenDS codebase, which will not be properly handled by the javadoc utility. - Update a number of public API classes to mark them as final if we do not intend for them to be overridden. Further, for some classes that cannot be marked final, mark some methods final if we do not intend for those methods to be overridden. git-svn-id: https://svn.forgerock.org/opendj/trunk@2650 41b1ffd8-f28e-4786-ab96-9950f0a78031 -
version with arguments (Object, Object...) has been renamed to fromObject, as it may have been seen as a conflict with one or more other raw methods. There was only a single existing use of the renamed method, and it has been updated. git-svn-id: https://svn.forgerock.org/opendj/trunk@2649 41b1ffd8-f28e-4786-ab96-9950f0a78031
15 Aug, 2007
6 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@2648 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
had previously used {@inheritDoc} but after recent message changes now no longer inherits from any parent class and was therefore generating a javadoc warning. git-svn-id: https://svn.forgerock.org/opendj/trunk@2647 41b1ffd8-f28e-4786-ab96-9950f0a78031 -
…d having locking problems and the reactivity of the Graphical interfaces using this classes improves a lot. git-svn-id: https://svn.forgerock.org/opendj/trunk@2645 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
… reodering the parameters of one of the methods git-svn-id: https://svn.forgerock.org/opendj/trunk@2644 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@2643 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…ssues to be resolved before we can declare that we are internationalized but this commit covers the bulk of changes needed at this time. In general this commit converts any string values that might potentially be shown to an end user (client or administrator) to a new class called Message. This includes exception messages, error log messages, alert and email text, labels, and CLI output. Message's main interface includes methods for rendering itself as a string in the default locale using toString() or a specified locale toString(Locale). In addition to addressing localization, this would allow us to potentially support controls allowing clients to set a preferred locale for server communication or output log messages in different languages. Message extends CharSequence so it can be used in some places where strings are currently used with not code change (e.g. writing to a buffer) as well as allowing messages to be composed of one another. In order to create localized messages, instead of adding them to the *Messages.java class, you define them in the corresponding properties files. In general the property file keys are used to derive the new messages severity, category, and ordinal. There are directives that can be used in the properties file in order to avoid doing this however. For instance all the properties files used internally include the 'global.category' directive at the top of the file that instructs the generator to make all the following message belong to a single category. So for internal messages the property value key will be as follows: [SEVERITY]_[DESCRIPTION]_[ORDINAL] See the properties files themselves for more information. Once your messages are in the properties file you can use the ant target 'generatemessages' to create create MessageDescriptor objects that are referred to in the Java code. In the code you might think of these objects as replacing the int-valued message IDs. To create messages you call MessageDescriptor.get() which replaces MessageHandler.getMessage(). It might be helpful then to try to define your messages before referring to them in your code since until you run 'generatemessages' you won't have any Java-code with with to create your message objects. In order to support non-localizable text in messages (host names, DN's, etc.) Message's can be created from String values by calling Message.raw(String). In this way it is also possible to circumvent the intention of changing the APIs to use Message objects instead of Strings which is to support writing of localizable messages. This method is currently used in the code as a crutch for areas of the code that need internationalization (tagged with a 'TODO: i18n' comment). It might also be used by 3rd party developers that don't intend to localize their products. However for internal use we should not be using this method to create Messages for text that is locale sensitive. Additionally this code includes a MessageBuilder that can be used in much the same way that a StringBuilder can be used. It has a method toMessage() that can be used to generate a message object when needed. At this time this method just converts the buffer contents to a raw, unlocalizable message so this will need to addressed in the future. Some other issues: - While all of the unit tests pass after this commit, there may be issues in the code where we have no or minimal test coverage. This includes much of the setup and GUI tools packages for which I have not done any testing but will begin after this commit. - The new message related Java sources are contained in package org.opends.messages and organized in a new module src/module modeled somewhat after the admin module: src/messages/src (non-generated Java source files) src/messages/generated (generated source files) src/messages/messages (properties files for messages) If you run the code from within your IDE you will have to mark all messages/src, messages/generated and messages as source directories. - To generated the MessageDescriptor files you invoke the 'generatemessages' target. - If you run the code from within your IDE you will probably ne - This commit would change the plugin API. Here are the changes caught by DirectoryServerPluginTestCase: doShutdown(String)->doShutdown(Message) doPostDisconnect(PostDisconnectPluginResult,ClientConnection,DisconnectReason,int,String) -> doPostDisconnect(PostDisconnectPluginResult,ClientConnection,DisconnectReason,Message); - This commit aligns the entire code-base behind the new Formatter class (printf style formattings like %s) as opposed to the older MessageFormat style (using curly braces for message arguments). This allows us to provide more type safety for message arguments. So for instance you can include a %c argument specifier in your format string and the MessageDescriptor will enforce specification of a Character as message creation time. - Not all of the config framework has not been converted to use Messages. Perhaps as some point we might have a 'message' syntax for locale-sensitive textural data. I'm sure Matt will have ideas about this. - In addition to Message, MessageDescriptor and MessageBuilder, the org.opends.server.message package includes enums for Category and Severity that replace the definitions formerly found in MessageHandler. - The interface for the ErrorLogger has been simplified to allow logging of messages using a single Message parameter. The severity and category of the message will be derived from the Message itself instead of specified as arguments when a message is logged. - I will provide more documentation about this plumbing on the Wiki shortly. - I will expand on the included tests soon. git-svn-id: https://svn.forgerock.org/opendj/trunk@2641 41b1ffd8-f28e-4786-ab96-9950f0a78031
14 Aug, 2007
1 commit
-
these files are properly created from now on. git-svn-id: https://svn.forgerock.org/opendj/trunk@2620 41b1ffd8-f28e-4786-ab96-9950f0a78031
13 Aug, 2007
5 commits
-
major tag type that was supported by the SLAMD variant of MakeLDIF that was not available with the OpenDS version. Unfortunately, the OpenDS version is not able to use exactly the same syntax as the SLAMD version, but the OpenDS version has all of the same functionality and its syntax is actually more consistent with that used by other tags than the SLAMD version. OpenDS Issue Number: 588 git-svn-id: https://svn.forgerock.org/opendj/trunk@2619 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
authentication whenever a client requests subsequent authentication. The current implementation does not support subsequent authentication (which is an optional part of the spec), but we were previously incorrectly rejecting attempts to use it when instead we should have treated it as a completely new DIGEST-MD5 session. OpenDS Issue Number: 2098 git-svn-id: https://svn.forgerock.org/opendj/trunk@2614 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
packages, classes, and methods to indicate what part (if any) they play in the OpenDS public API. This annotation type can be useful for documentation purposes, for helping to verify whether third-party code is using appropriate interfaces, and ensuring that what we declare as our public API does not change in an inappropriate way between releases. This commit also introduces a new StabilityLevel enumeration that can be used to indicate the likelihood that the associated code will change in an incompatible manner in the future. Comments in the @PublicAPI annotation type and the StabilityLevel enum should adequately describe their purpose and intended use. At the present time, none of the OpenDS code uses them, but we will add the @PublicAPI annotation to OpenDS code where appropriate before the 1.0 release in order to help define what is included in our public API. Note that checkstyle analysis is currently disabled for this annotation type because of an apparent checkstyle limitation that does not support the use of Javadoc comments in methods used to define annotation type properties. git-svn-id: https://svn.forgerock.org/opendj/trunk@2613 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
simplify the process of running the server as an embedded application. There are methods to start, stop, and restart the server, as well as to determine whether the server is running. Also, provide a new org.opends.server.types.DirectoryEnvironmentConfig class that can be used to define a number of "environment" properties that provide information about the way in which the server should run. The TestCaseUtils.startServer method has been updated to make use of the new EmbeddedUtils functionality. git-svn-id: https://svn.forgerock.org/opendj/trunk@2612 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
in a static group. This implementation does not use a different attribute to define a nested group. Issue 423 git-svn-id: https://svn.forgerock.org/opendj/trunk@2611 41b1ffd8-f28e-4786-ab96-9950f0a78031
11 Aug, 2007
1 commit
-
The previous fix in revision 2434 only catered for managed objects being created, not existing managed objects. Also modify the ManagedObjectPath class to reject empty path names with an IllegalArgumentException. This will cause errors like this to be trapped earlier and fail predictably. git-svn-id: https://svn.forgerock.org/opendj/trunk@2609 41b1ffd8-f28e-4786-ab96-9950f0a78031
09 Aug, 2007
4 commits
-
…ve subcommands can use all the logic to parse the arguments associated with certificate management and to generate ApplicationTrustManager objects. git-svn-id: https://svn.forgerock.org/opendj/trunk@2603 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
… the admin framework. git-svn-id: https://svn.forgerock.org/opendj/trunk@2602 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
transform the provided ID string before searching for the appropriate matching user in the server. This makes it possible, for example, to strip the realm portion of a Kerberos V principal to obtain just the username before searching for entries containing a uid attribute with that value. OpenDS Issue Number: 2087 git-svn-id: https://svn.forgerock.org/opendj/trunk@2601 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
The following modifications add a new option 'interactive' to the uninstall command line. The way interactive and silent work now in the uninstall command line is similar to the way the work for the upgrader. git-svn-id: https://svn.forgerock.org/opendj/trunk@2597 41b1ffd8-f28e-4786-ab96-9950f0a78031
08 Aug, 2007
3 commits
-
There are now variants of the isMember methods that include an additional Set<DN> argument to which the current group's DN should be added whenever a check is made to determine whether a user is a member. This will help provide a mechanism for avoiding infinite recursion loops if two groups both reference each other as nested groups. git-svn-id: https://svn.forgerock.org/opendj/trunk@2594 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@2592 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…ements. These identifiers pave the way for the network group and workflow configuration. A workflow that is registered with a network group must have an identifier that is not already registered with the network group. To deregister a workflow one has to provide either a workflow base DN or a workflow identifier. The former method is used when a backend is deregistered with the server while the later may be used when applying workflow configuration changes. The unit-tests are updated accordingly. git-svn-id: https://svn.forgerock.org/opendj/trunk@2590 41b1ffd8-f28e-4786-ab96-9950f0a78031
07 Aug, 2007
4 commits
-
group implementation. git-svn-id: https://svn.forgerock.org/opendj/trunk@2589 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@2588 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
The following modifications have the following goals: 1. Provide a fix for the GUI part of issue 1894 (consider replication in uninstall). Basically the graphical uninstall checks whether there is an ADS defined and if the server is configured for replication and asks the users whether (s)he wants to remove the references to the server that is being uninstalled. 2. Fix some minor issues that appear in the merged version of the installer and upgrader. 3. Update the build so that statuspanel.jar disappears. The idea is to minimize the number of jars that we have. This is a requirement coming from customers and approved by Neil in a conversation we had a while ago. 4. Minimize the number of classes that go to quicksetup.jar so that its size is the minimal possible and we reduce the download time when launching the WebStart based tools. This has been done by moving the uninstaller tool to OpenDS.jar (with the status tools). git-svn-id: https://svn.forgerock.org/opendj/trunk@2587 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
1. Provide a fix for the GUI part of issue 1894 (consider replication in uninstall). Basically the graphical uninstall checks whether there is an ADS defined and if the server is configured for replication and asks the users whether (s)he wants to remove the references to the server that is being uninstalled. 2. Fix some minor issues that appear in the merged version of the installer and upgrader. 3. Update the build so that statuspanel.jar disappears. The idea is to minimize the number of jars that we have. This is a requirement coming from customers and approved by Neil in a conversation we had a while ago. 4. Minimize the number of classes that go to quicksetup.jar so that its size is the minimal possible and we reduce the download time when launching the WebStart based tools. This has been done by moving the uninstaller tool to OpenDS.jar (with the status tools). git-svn-id: https://svn.forgerock.org/opendj/trunk@2586 41b1ffd8-f28e-4786-ab96-9950f0a78031