05 Nov, 2014
3 commits
-
The ChangelogDBPurger is smart: when changes exist in the DB, it sleeps until the oldest change can be purged. The problem is that when admin changes the purge delay, the ChangelogDBPurger is not woken up to verify if the oldest change can be purged with the purge delay. This fix wakes up the ChangelogDBPurger when the purge delay changes. FileChangelogDB.java, JEChangelogDB.java: In setPurgeDelay(), ensured an existing ChangelogDBPurger is woken up by a change to the purge delay. Made purgeDelayInMillis volatile + In ChangelogDBPurger.run(), inlined jeFriendlySleep() to ensure the wait time is computed from the very latest purgeDelayInMillis. git-svn-id: https://svn.forgerock.org/opendj/trunk@11253 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
to better suited ByteSequence interface git-svn-id: https://svn.forgerock.org/opendj/trunk@11252 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
constants from AbstractMatchingRuleImpl to Assertion interface git-svn-id: https://svn.forgerock.org/opendj/trunk@11251 41b1ffd8-f28e-4786-ab96-9950f0a78031
04 Nov, 2014
3 commits
-
- Remove unecessary ByteString wrapping - Remove eager version of CompactDn - Store reference to schema in both DN and CompactDn classes git-svn-id: https://svn.forgerock.org/opendj/trunk@11249 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
QOSPolicy.java, QOSPolicyFactory.java, QOSPolicyConfiguration.xml, RequestFilteringPolicy.java, ResourceLimitsPolicy.java: REMOVED git-svn-id: https://svn.forgerock.org/opendj/trunk@11241 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
NetworkGroupConfiguration.xml, NetworkGroupPluginConfiguration.xml, NetworkGroupPlugin.java, AuthMethodConnectionCriteria.java, ProtocolConnectionCriteria.java, AuthMethodConnectionCriteriaTest.java: REMOVED git-svn-id: https://svn.forgerock.org/opendj/trunk@11239 41b1ffd8-f28e-4786-ab96-9950f0a78031
03 Nov, 2014
6 commits
-
WorkflowConfigManager.java, NetworkGroupConfigManager.java, WorkflowElementConfigManager.java, LocalBackendWorkflowElementConfiguration.xml, WorkflowConfiguration.xml, WorkflowElementConfiguration.xml: REMOVED git-svn-id: https://svn.forgerock.org/opendj/trunk@11237 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
AutoRefactor successfully goes through the whole SDK now. git-svn-id: https://svn.forgerock.org/opendj/trunk@11235 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
In isValidJfif() and isValidExif(), fixed a bug: original code was buggy. In isValidJfif(), fixed the javadoc that I badly copied in r11231 :( git-svn-id: https://svn.forgerock.org/opendj/trunk@11234 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
- work with null checked expressions first - revert conditions - collapse if statements - push negations down - invert equals() Manually used ternary operators git-svn-id: https://svn.forgerock.org/opendj/trunk@11233 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
PasswordPolicyStateExtendedRequest.java: Extraxcted methods setBooleanProperty(), setDateProperty(), setDateProperties(), toByteString() to simplify the code. git-svn-id: https://svn.forgerock.org/opendj/trunk@11232 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Extracted methods isValidJfif() and isValidExif() for readability. Code review: Matthew Swift git-svn-id: https://svn.forgerock.org/opendj/trunk@11231 41b1ffd8-f28e-4786-ab96-9950f0a78031
31 Oct, 2014
3 commits
-
Code cleanup Extracted methods parseScope() and parseAttributes(). git-svn-id: https://svn.forgerock.org/opendj/trunk@11230 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
It seems to me all this boolean parsing could be fatorized into a single method. The ModificationType parsing in LDIFChangeRecordReader could also use the values stored in that enum. git-svn-id: https://svn.forgerock.org/opendj/trunk@11229 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@11228 41b1ffd8-f28e-4786-ab96-9950f0a78031
30 Oct, 2014
5 commits
-
Collapsed else { if (...){...} } into else if (...) {...} Reversed boolean equals conditions using constants. In tests, used the correct assert*() methods. git-svn-id: https://svn.forgerock.org/opendj/trunk@11224 41b1ffd8-f28e-4786-ab96-9950f0a78031 -
The problem happens when doing a search in the change number changelog. It only appears when there are two replicas under the same domain. When creating the domain cursor, it is initialized from the content of the change number index DB. A replica cursor is created for each replica. The first replica cursor is initialized from the CSN coming from the change number index DB while the second replica cursor is initialized from the null CSN. Under this circumstance, the second replica cursor is immediately added to the exhausted cursors of the domain cursor, and never gets out of it despite its replica DB being not empty. The reason is because next() is never called on the the underlying ReplServerDBCursor. JEReplicaDBCursor.java: In next(), test whether the cursor has already been initialized (rather than verifying if a previous record exists) in order to verify if this is the first time next() is called. Removed currentChange field which duplicates the content of ReplServerDBCursor.currentRecord . Better handled the cursor closed state in all the methods. git-svn-id: https://svn.forgerock.org/opendj/trunk@11222 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Reduced scope of variables. Used early exits. git-svn-id: https://svn.forgerock.org/opendj/trunk@11221 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Thanks Matt for the suggestion! DN.java: In toIrreversibleNormalizedByteString(), initializing the StringBuilder to the number of RDNs was incorrect, creating more garbage than necessary. In normalizeAVA(), extracted local variable for attributeType + removed useless creation of an Iterator. DNTestCase.java: Added more tests to increase code coverage. git-svn-id: https://svn.forgerock.org/opendj/trunk@11220 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
in the same way than DistinguishedNameEqualityMatchingRuleImpl and add the optional uid if present git-svn-id: https://svn.forgerock.org/opendj/trunk@11219 41b1ffd8-f28e-4786-ab96-9950f0a78031
29 Oct, 2014
3 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@11218 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
As pointed out by Ludo, problem is due to an API change in InternalClientConnection.processSearch() where LinkedHashSets parameters have been replaced with Set. Reverted revision r9082 which introduced the problem. Changed all client code to use LinkedHashSets instead of Sets. CollectionUtils.java: Added missing methods implemented in TestCaseUtils. TestCaseUtils.java, LDAPReplicationDomain.java: Removed generic methods creating collections. git-svn-id: https://svn.forgerock.org/opendj/trunk@11216 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
In toIrreversibleNormalizedByteString(), avoid uselessly creating a StringBuilder. git-svn-id: https://svn.forgerock.org/opendj/trunk@11212 41b1ffd8-f28e-4786-ab96-9950f0a78031
28 Oct, 2014
6 commits
-
Rename DN.toNormalizedString() to DN.toIrreversibleNormalizedByteString() git-svn-id: https://svn.forgerock.org/opendj/trunk@11207 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
In several methods added short circuit checks to return the EMPTY ByteString instance. In valueOfHex(), simplified the code by directly returning the EMPTY ByteString instance. Removed local variables. Removed uneeded parentheses. ByteStringTestCase.java: Added two test cases. git-svn-id: https://svn.forgerock.org/opendj/trunk@11205 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…embers when a search is based on a filter of the isMemberOf attribute. Fix unit test that must explicitly deleted groups to reset the GroupManager cache (tearing down the MemoryBackend doesn't do it). git-svn-id: https://svn.forgerock.org/opendj/trunk@11204 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@11202 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@11200 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@11198 41b1ffd8-f28e-4786-ab96-9950f0a78031
23 Oct, 2014
1 commit
-
…embers when a search is based on a filter of the isMemberOf attribute. Adding unit test. git-svn-id: https://svn.forgerock.org/opendj/trunk@11190 41b1ffd8-f28e-4786-ab96-9950f0a78031
22 Oct, 2014
10 commits
-
Suggestion thanks to Chris Ridd, sent over IM. git-svn-id: https://svn.forgerock.org/opendj/trunk@11187 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@11186 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@11185 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@11183 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@11182 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Update GeneralizedTime#valueOf to parse correctly a lowercase string git-svn-id: https://svn.forgerock.org/opendj/trunk@11181 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@11180 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Removed dead code, unused classes/methods, or classes/methods used to no effect, pushed down fields and classes to remove classes sitting in a class hierarchy with no value, etc. git-svn-id: https://svn.forgerock.org/opendj/trunk@11179 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
ArgumentParser.java: Extracted method writeUsageToOutputStream(). Removed duplicated code by directly using getUsage(). git-svn-id: https://svn.forgerock.org/opendj/trunk@11177 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Code review: Nicolas Capponi AbstractSubstringMatchingRuleImpl.java: In evaluateEscapes(SubstringReader, char[], boolean trim), removed the trim parameter which was always false. In evaluateEscapes(SubstringReader, char[], char[], boolean trim), removed the trim parameter which was always false + as a consequence, removed lengthWithoutSpace which was never used git-svn-id: https://svn.forgerock.org/opendj/trunk@11176 41b1ffd8-f28e-4786-ab96-9950f0a78031