Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
MODE-2569 Adds a file and in-memory persistence provider based on H2's MVStore. Changes most of the unit tests to use the new provider.

  1. … 62 more files in changeset.
MODE-2528 Integrates the new relational provider with the modeshape codebase This is a huge commit which makes the necessary changes to remove all Infinispan configuration and dependencies, replacing it with the new mechanism. It also contains several changes to the relational provider design because of various failing tests. This includes among other thing the necessity for ModeShape to notify the provider once exclusive locks have been obtained as part of each transaction.

  1. … 305 more files in changeset.
MODE-2536 Ads the ability for ModeShape to lookup different JTA transaction managers This is required because in the absence of ISPN, ModeShape will have to be able to support both local and user transactions, regardless of the environment it's being run in. This commit also removes the "transactionMode" configuration option, as ModeShape should be able to auto-detect if it's being run or not in the context of a user transaction.

  1. … 34 more files in changeset.
MODE-2188 Added management of index providers to Wildfly subsystem

It is now possible to manage the index providers using the Wildfly configuration and CLI tools.

Additionally, ModeShape is no longer dependent upon Lucene or Hibernate Search.

  1. … 141 more files in changeset.
MODE-2019 Implemented the JCR event functionality.

  1. … 16 more files in changeset.
MODE-1920: Fix TCK tests

    • -0
    • +24
    ./default/jaas.conf.xml
    • -0
    • +7
    ./default/tck_roles.properties
    • -0
    • +6
    ./default/tck_users.properties
  1. … 27 more files in changeset.
MODE-1883 - Updated the restore method, so that a meaningful exception is thrown if a removed node is restored. Also, re-activated an ignored test from the ModeShapeTckTest class.

  1. … 5 more files in changeset.
MODE-1896 Deprecated the "transactionManagerLookup" field

This field in repository configuration files has not been used for some

time, but at the time it was not properly documented in the schema as

being "deprecated". This has been done, and any use of this field in

our test configurations have been removed.

Note that the RepositoryConfiguration constructors now log warning messages

when this or any other deprecated fields are used.

  1. … 35 more files in changeset.
MODE-1785 - Changed the JSON schema structure for the rebuild indexes on startup feature.

  1. … 20 more files in changeset.
MODE-1785 - Changed the JSON schema structure for the rebuild indexes on startup feature.

  1. … 20 more files in changeset.
MODE-1419 Enabled full text searching

Added full-text search back in. Note that it can be explicitly disabled/enabled within a repository configuration,

and it is currently *enabled* by default. Quite a few test cases were added back in, and some of them highlighted

some issues with search/query scores (were floats, but expected to be doubles).

Also, one quirk of the AS7 subsystem startup is that the text extractors are added to a running repository,

and that means that there's a time during startup when there are no text extractors (and any added binary

values don't get extracted during storage), followed quickly by the enabling of text extractors (by the time

the property with the binary value is indexed). This manifested itself as a blocked sequencing thread within

the ZIP Sequencer integration test (using AS7).

All unit and integration tests pass with these changes, including those that were enabled by these changes.

  1. … 24 more files in changeset.
MODE-1469 - Fixed indexing of system nodes. Only /jcr:system, /jcr:system/jcr:nodeTypes and /jcr:system/mode:namespaces will be indexed. Updated the JSON configuration to control whether system indexing is: sync, async or disabled, with the latter being the default. Updated the query tests to reflect those changes.

Working on this, another issue surfaced: we weren't closing properly the executor services that we're creating during the repository startup. Therefore, some changes were added in this area as well.

  1. … 25 more files in changeset.
MODE-1526 - Added code to ignore the explicit index removing on Windows (because it doesn't work).

Also, cleaned up some tests and removed todos related to MODE-1521

  1. … 6 more files in changeset.
MODE-1519 Changed JSON configuration format to use "classname" for sequencers, extractors, and security providers

These components previously used a "type" field to specify the classname or alias, whereas the AS7 configuration

uses "classname". The names of these fields were changed to "classname" to be more consistent with the AS7 configuration.

  1. … 26 more files in changeset.
MODE-1477- Updated test configuration stub for the TCK tests to use a separate root node for the locking tests

The reason why the ExportDocViewTest were failing asynchronously was because of the locking tests which were modifying the root test node

  1. … 1 more file in changeset.
MODE-1396 Tck Observation Tests fixes: - fixed algorithm for detecting changes at/below path - fixed test node type for node which don't allow children (mode:namespace was used previously, but that caused SystemNodes to be created) - added missing node moved case handling, when the move was a rename

  1. … 5 more files in changeset.
MODE-1368 Removed all legacy modules no longer needed in 3.x

ModeShape 3.x will not need a number of the 2.x modules. In particular:

- since 3.x will only have an AS7 kit, the AS5 or AS6 artifacts were removed

- all the connectors were removed, since they're no longer used

- the connector benchmark tests module was removed, replaced by our new

performance test suite

- the JPA DDL generator utility has been removed

- the 'modeshape-graph', 'modeshape-repository', 'modeshape-search-lucene'

and 'modeshape-clustering' modules have all been removed, since the new

'modeshape-jcr' module no longer uses them

- the DocBook modules were removed and are replaced by the Confluence space

- the two JDBC modules were moved out of the 'utils' directory to top-level modules

The build still works, but not all components have been included in the build.

This is because the query functionality doesn't yet work, so quite a few web

and JDBC driver modules all depend on this.

The assembly profile has not yet been changed or corrected.

  1. … 3649 more files in changeset.
MODE-1028 Implemented this with a new internal graph 'net-change' observer on the JcrRepository instance. When the observer receives delete or move events, it queries the appropriate workspace for the 'mode:derived' nodes with a 'mode:derivedFrom' value that matches the path of the deleted or moved node(s) (using LIKE, as the deleted/moved nodes might be ancestors of the nodes pointed to by the 'mode:derivedFrom' value) and with a 'mode:derivedAt' timestamp that is on or before the delete/move event's timestamp (this ensures that the 'mode:derived' nodes were not added in a subsequent operation (e.g., the file is delete and then re-added).

Note that 'mode:derivedAt' is a new DATE property that is now added by the StreamSequencerAdapter (the same code that adds the 'mode:derived' mixin.

A new integration test was added to verify this new logic is performed correctly.

Also, a JcrRepository.Option was added to control whether derived content should be removed. By default (when at least one sequencer is enabled), this new feature is enabled, meaning the repository will remove all content that was derived from other content being removed. However, if no sequencers are enabled, the default is to not enable this feature. Of course, the feature can be explicitly enabled or disabled by specifying the desired value for this option.

Also added a new section to the Reference Guide that describes the JcrRepository.Option values.

All unit and integration tests pass with these changes.

git-svn-id: https://svn.jboss.org/repos/modeshape/branches/2.2.x@2631 76366958-4244-0410-ad5e-bbfabb93f86b

  1. … 15 more files in changeset.
MODE-1028 Implemented this with a new internal graph 'net-change' observer on the JcrRepository instance. When the observer receives delete or move events, it queries the appropriate workspace for the 'mode:derived' nodes with a 'mode:derivedFrom' value that matches the path of the deleted or moved node(s) (using LIKE, as the deleted/moved nodes might be ancestors of the nodes pointed to by the 'mode:derivedFrom' value) and with a 'mode:derivedAt' timestamp that is on or before the delete/move event's timestamp (this ensures that the 'mode:derived' nodes were not added in a subsequent operation (e.g., the file is delete and then re-added).

Note that 'mode:derivedAt' is a new DATE property that is now added by the StreamSequencerAdapter (the same code that adds the 'mode:derived' mixin.

A new integration test was added to verify this new logic is performed correctly.

Also, a JcrRepository.Option was added to control whether derived content should be removed. By default (when at least one sequencer is enabled), this new feature is enabled, meaning the repository will remove all content that was derived from other content being removed. However, if no sequencers are enabled, the default is to not enable this feature. Of course, the feature can be explicitly enabled or disabled by specifying the desired value for this option.

Also added a new section to the Reference Guide that describes the JcrRepository.Option values.

All unit and integration tests pass with these changes.

git-svn-id: https://svn.jboss.org/repos/modeshape/trunk@2629 76366958-4244-0410-ad5e-bbfabb93f86b

  1. … 15 more files in changeset.
MODE-810 RepositoryNodeTypeManager should respond when stored node types are changed (in clustered environment)

Applied a patch that makes RepositoryNodeTypeManager implement JcrSystemObserver and be registered in JcrRepository. This allows RTNM to listen for changes to the registered node types in the system graph and update itself accordingly. The current implementation is fairly brutish in that any change to the projected node types causes other nodes in the cluster to reload their entire node type hierarchy. A separate defect will be opened to optimize this in the future. Test cases have been added for node type registration and unregistration in a cluster.

The patch makes a number of ancillary changes. First, the default value of the PROJECT_NODE_TYPES option in JcrRepository was changed from false to true. The node type clustering piece works by listening for changes to that projection. Any repository that does not project node types will not work correctly in a cluster. Changing this value did not seem to have an appreciable impact on the total execution time for the TCK test on my local machine.

A bug in JcrNodeTypeManager.createNodeTypeTemplate(NodeTypeDefinition) was identified and corrected. JNTM was previously not properly setting values on any child nodes in the new node type template.

git-svn-id: https://svn.jboss.org/repos/modeshape/trunk@2077 76366958-4244-0410-ad5e-bbfabb93f86b

  1. … 15 more files in changeset.
MODE-768 Added the query-related TCK unit tests into the standard JcrTckTest class, including several new tests that were added as part of the JCR 2.0 support. A few changes were required, and all were fairly minor except for one: a test added for JCR 2.0 support attempts to create a query that uses 'LIMIT 0', and previously our Limit AQM class required a positive row limit value. This had to be changed, but the LimitComponent (that is, the component that executes the limit operation) was optimized to handle this case and to not event delegate to the underlying system and to merely return an empty tuple.

At this point, we are passing all of the query-related TCK unit tests except for a few that also failed during the 1.2 runs. Several of these appear to have invalid queries (see MODE-760), while another fails because we don't support the 'text()' node in XPath queries (see MODE-759).

git-svn-id: https://svn.jboss.org/repos/modeshape/trunk@1883 76366958-4244-0410-ad5e-bbfabb93f86b

  1. … 7 more files in changeset.
MODE-733 Fixed a number of issues that were identified by the query-related JCR TCK unit tests, which are all passing at this point except for: - those tests that expect the '/jcr:system' node to be found by search/query (see MODE-760); - those tests using the 'text()' JCR-SQL function in criteria (not supported at this time; see MODE-759); and - those (few) tests that produce invalid join criteria in their test queries (e.g., 'SELECT * FROM nt:base, test:queryable WHERE test:queryable.jcr:path = mix:referenceable.jcr:path' in SQLJoinTest.testJoinNtBase)

The repository content used in the tests needed to be modified quite a bit, primarily because several of the test cases would fail when running the entire suite, but would succeed when running just the query tests. I concluded that these tests were expecting data that was being messed up in the tearDown methods of prior tests, so the easiest way to fix this was to just use separate branches in the content for these tests.

At this point, all of the included JCR TCK tests are running, and we only have 6 errors and 3 failures when running the complete TCK. Two of these failures are from outstanding observation issues, while the remainder are due to the three conditions outlined above.

git-svn-id: https://svn.jboss.org/repos/modeshape/trunk@1834 76366958-4244-0410-ad5e-bbfabb93f86b

  1. … 15 more files in changeset.
MODE-733 Additional corrections to make a number of the query-related TCK tests pass. Not all of the query-related TCK tests pass; in fact some of them fail when running the whole suite but pass when only running those test case classes. These still need to be resolved, however.

git-svn-id: https://svn.jboss.org/repos/modeshape/trunk@1796 76366958-4244-0410-ad5e-bbfabb93f86b

  1. … 10 more files in changeset.
MODE-733 Added more support for JCR-SQL, including more tests and proper handling of more queries. Not all TCK tests related to JCR-SQL pass yet, though I'm still working in them (this commit does not add any of these TCK tests).

git-svn-id: https://svn.jboss.org/repos/modeshape/trunk@1794 76366958-4244-0410-ad5e-bbfabb93f86b

  1. … 16 more files in changeset.
MODE-701 Autocreated Child Nodes and Properties Aren't Autocreated

Applied patch that refactors SessionCache.addAutoCreatedItems so that it is more difficult to give it

the wrong NodeEditor to check. The patch also adds logic to JcrContentHandler to ensure that autocreated items are imported correctly and fixes a minor issue with AbstractJcrNode.getNode(Name). Finally, the patch adds a test case to help verify its correctness.

git-svn-id: https://svn.jboss.org/repos/modeshape/trunk@1765 76366958-4244-0410-ad5e-bbfabb93f86b

  1. … 5 more files in changeset.
MODE-612 Add JCR 1.0 optional versioning feature

Applied new patch that fully implements checkin (and adds some more sophisticated test cases to verify its behavior) and the removeVersion(...) methods. If possible, I'd appreciate a review/sanity check and will commit afterwards depending on the feedback.

git-svn-id: https://svn.jboss.org/repos/modeshape/trunk@1704 76366958-4244-0410-ad5e-bbfabb93f86b

  1. … 13 more files in changeset.
MODE 612 Add JCR 1.0 optional versioning feature

Applied a patch that implements all of versioning except OnParentVersionAction behaviors, version removal, restore, and merge. Yup, that's still a lot of stuff left to do.

The patch also fixes MODE-682 by adding a check to prevent any node named mode:uuid from being exposed as a JcrProperty and modifies RTNM.findPropertyDefinition to not check constraints for reference property definitions. This helps avoid mutual recursion problems when loading graphs of nodes with circular references. The constraint check for reference properties is now done only when they are set.

git-svn-id: https://svn.jboss.org/repos/modeshape/trunk@1701 76366958-4244-0410-ad5e-bbfabb93f86b

  1. … 28 more files in changeset.
MODE-676 Update Documentation

Applied previous documentation patch that updates documentation for new features in 1.0.0.Final.

git-svn-id: https://svn.jboss.org/repos/modeshape/trunk@1683 76366958-4244-0410-ad5e-bbfabb93f86b

  1. … 18 more files in changeset.
MODE-636 JcrConfiguration files should be able to specify node types by referencing one or more CND files

Applied patch that allows the mode:resources property of the jcr:nodeTypes node in the configuration repository to provide a comma-delimited list of paths to CND files in the classpath. Adding this capability allows for some minor simplification of the ModeShapeRepositoryStub, which, in turn allows the various TCK tests to be used as test cases for this new functionality.

git-svn-id: https://svn.jboss.org/repos/modeshape/trunk@1655 76366958-4244-0410-ad5e-bbfabb93f86b

  1. … 9 more files in changeset.
MODE-580 Applied Brian's patch, though there were several difficulties doing so (so I had to resort to apply bits of the patch and a few changes by hand). All seems to be okay, and all tests do pass. I was able to run the JDBC metadata connector unit and integration tests from the command line and from within Eclipse.

git-svn-id: https://svn.jboss.org/repos/modeshape/trunk@1604 76366958-4244-0410-ad5e-bbfabb93f86b

  1. … 53 more files in changeset.