Release Notes for ModeShape 5.0.0.Final This document outlines the changes that were made in ModeShape 5.0.0.Final. We hope you enjoy it! What's new ------------------------------------------------------------------- This is the first major release from the 5.x series. This release addresses 52 issues in total, 20 of which are bug fixes while the rest are new features or improvements. We strongly recommend looking at all the new changes in detail by reading the ModeShape 5 [documentation](https://docs.jboss.org/author/display/MODE50/Home) Some of he most notable changes for ModeShape 5 include: - Improved consistency - ModeShape 5 no longer uses Infinispan and provides instead its own persistence stores. We suggest reading [this forum post](https://developer.jboss.org/message/945504) for an in depth explanation of this decision - JDK 8 support - ModeShape 5 is compiled with and runs on Java 8 - Wildfly 10 support - ModeShape 5 fully integrates with Wildfly 10, while still supporting Wildfly 9. Note that starting from this release ModeShape will not support Wildfly 8 or earlier - Simplified configuration - not using Infinispan means the additional cache configuration files that users of ModeShape 3 and ModeShape 4 are familiar with, are no longer required. The entire repository configuration is self-contained in either the JSON or JBoss AS files (with the exception that in certain clustering cases a separate JGroups configuration is required) - Storage options - ModeShape 5 provides out-of-the-box support for storing content either in memory, relational databases (via JDBC) or the file system. Make sure you take a look at the [new persistence documentation](https://docs.jboss.org/author/display/MODE50/Persistence) - Storage SPI - A new storage SPI is available meaning that there's always the option of implementing additional stores, as long as they are transactional and support a key-value storage model Migrating from ModeShape 3 or ModeShape 4 ------------------------------------------------------------------- If you're planning on migrating from earlier versions of ModeShape to ModeShape 5 (which we strongly encourage) make sure you read [the migration guide](https://docs.jboss.org/author/display/MODE50/Migrating+from+3.x+and+4.x) Starting with ModeShape for the first time ------------------------------------------------------------------- If you're starting to use ModeShape for the first time, make sure you read [the getting started guide](https://docs.jboss.org/author/display/MODE50/Getting+Started) What to test ------------------------------------------------------------------- Since this is a new major release, all features targeted to 5.0 are complete and are suitable for testing. We would like to get as much feedback as possible, so we do ask that our community do testing with 5.0.0.Final to help us identify problems. Specifically, we ask that you test the following areas: * JDK - ModeShape now requires JDK 8. * Clustering - ModeShape 5 still supports clustering, but in a much more conservative fashion. See [our clustering documentation](https://docs.jboss.org/author/display/MODE50/Clustering) * New persistence stores - We've moved away from Infinispan and now provide our own persistent stores, so we'd greatly appreciate any feedback around the new persistence model Features ------------------------------------------------------------------- ModeShape 5.0.0.Final has these features: - ModeShape provides its own persistence stores, focusing primarily on data integrity - Strongly consistent. ModeShape is atomic, consistent, isolated and durable (ACID), so writing applications is very natural. Applications can even use JTA transactions. - Fast. ModeShape 5 should be just as fast in most cases as previous versions - Larger content. ModeShape 5 can store and access the content so that a node can have hundreds of thousands (or more!) of child nodes (even with same-name-siblings) yet still be incredibly fast. Additionally, repositories can scale to many millions of nodes and be deployed across many processes. - Simplified configuration. There is no more global configuration of the engine; instead, each repository is configured with a separate JSON file, which must conform to a ModeShape-specific JSON Schema and can be validated by ModeShape prior to use. Repository configurations can even be changed while the repository is running (some restrictions apply), making it possible to add/change/remove sequencers, authorization providers, and many other configuration options while the repository is in use. - Deploy, start, stop and undeploy repositories while the engine is running and while and other repositories are still in use. - Sessions immediately see all changes persisted/committed by other sessions, although transient changes made by the session always take precedence. - Monitoring API with over a dozen metrics. - Sequencing SPI that uses the JCR API to get at the content being processed and create/update the derived content. Sequencers can also dynamically register namespaces and node types. Now it's easy to create custom sequencers. - Connector SPI that defines how external systems are accessed and optionally updated to project the external information into the repository as regular nodes. - Simple API for implementing custom MIME type detectors. ModeShape still has a built-in Tika-based detector that determines MIME types using the filename extensions and binary content. - Simple API for implementing custom text extractors, which extracts from binary values searchable text used in full-text searches and queries. - Ability to store binary values of any sizes, with a separate facility for storing these on the file system, in relational DBMSes (via JDBC), in MongoDB or in Cassandra. Custom stores are also possible. - Indexes to optimize query performance. ModeShape offers a number of different index providers and can store and uses indexes in a variety of fashions - Integration with JBoss Wildfly. ModeShape runs as an integrated subsystem within Wildfly, and the Wildfly tooling can be used to define and manage repositories independently of each other and while the server is running. - Local and remote JDBC drivers for issuing JCR-SQL2 queries and getting database metadata via the JDBC API - Use the RESTful API to talk to ModeShape repositories from non-Java and non-local applications - Use the CMIS API to talk to ModeShape repositories - Use WebDAV to mount ModeShape repositories as file servers - Visual repository explorer web application All of the JCR 2.0 features previously supported in 2.x are currently supported: Accessing the Repository - RepositoryFactory access - JNDI registration of Repository - JAAS Authentication - Servlet Authentication - Custom Authentication Namespaces - Session Remapping - Permanent Addition/Deletion Reading Repository Content - Traversal Access - Direct Access - Same-Name Siblings - Multi-Value Properties - All Property Types Supported - Property Type Conversion Writing Repository Content - Create/Update/Delete Nodes - Create/Update/Delete Properties (Through Parent Nodes) - Moving, Copying, Cloning - Adding/Removing Mixins - Referential integrity enforcement Query / Search - XPath - JCR-SQL - JCR-SQL2 - JCR-QOM - Full-Text Search Importing/Exporting Repository Content - System View Import/Export - Document View Import/Export Node Types - Inheritance Among Node Types - Discovering available Node Types - Discovering the Node Types of a Node - Discovering the Definition of a Node Type - Property Constraints - Automatic Item Creation - Predefined standard Node Types - Custom Node Type Registration (CND-Based and and JCR 2.0 API Template-Based) Repository Metadata under System Node - Permanent Namespace Mappings - Node Types (Built-In and User-Registered) - Active Locks Other JCR Optional Features - Observation - Locking - Versioning - Shareable nodes - Access controls - Event journal Content Storage Options - In-memory - Relational databases (via JDBC), including in-memory, file-based, or remote - File system Binary Storage Options - File system - JDBC database - MongoDB - Cassandra - Chained binary stores ModeShape also has features that go beyond the JCR API: ModeShape Federation Connectors - File system connector (read and write) - Git repository connector (read-only) - CMIS reposiotry connector (read and write, tech preview) - JDBC metadata connector (read-only) ModeShape Sequencers - Compact Node Definition (CND) Sequencer - DDL Sequencer - Image Sequencer - Java Source Sequencer - Java Class Sequencer - MP3 Sequencer - MS Office Sequencer - Text Sequencers (Delimited and Fixed Width) - XML Sequencer - XML Schema Document (XSD) Sequencer - Web Service Definition Lanaguage (WSDL) 1.1 Sequencer - Zip File Sequencer (also WARs, JARs, and EARs) ModeShape Deployment/Access Models - JNDI-Based Deployment - Deploy as a subsystem in JBoss Wildfly, with access to repositories via @Resource injection - Deploy to other containers using ModeShape's JCA adapter - Access through two RESTful Services (the 2.x-compatible API and a new improved API) - Access through WebDAV Service - Access through CMIS Service - Access through visual repository explorer web application - Local and remote JDBC drivers for accessing ModeShape content through JDBC API and JCR-SQL2 queries - Embedded (in Server or JEE Archive) Deployment - JTA support, allowing Sessions to participate in XA and container-managed transactions - OSGi-Compatible Archives Other ModeShape features - Repository-wide backup and restoration - Explicitly-defined indexes - Automatic MIME type detection of binary content - Asynchronous sequencing operations, within completion notified via events Bug Fixes, Features, and other Issues ------------------------------------------------------------------- The following are the bugs, features and other issues that have been fixed in the 5.0.0.Final release: Bug - [MODE-2499](https://issues.jboss.org/browse/MODE-2499) - Executing queries from ModeShape Explorer doesn't validate dialects - [MODE-2376](https://issues.jboss.org/browse/MODE-2376) - CMIS XPath query error: literal is not supported in the primary path expression; therefore '1' is not valid - [MODE-2579](https://issues.jboss.org/browse/MODE-2579) - Full text search does not work with multi valued properties when using the default query engine - [MODE-2578](https://issues.jboss.org/browse/MODE-2578) - Cannot configure custom Lucene analzyer class in Wildfly when multiple Lucene modules are installed - [MODE-2537](https://issues.jboss.org/browse/MODE-2537) - When failing to start or initialize the ModeShape repository does not close the already started components - [MODE-2530](https://issues.jboss.org/browse/MODE-2530) - VersionException when concurrently accessing a node - [MODE-2533](https://issues.jboss.org/browse/MODE-2533) - SNS not correctly created when parent node type definition allows SNS and is not [nt:unstructured] - [MODE-2571](https://issues.jboss.org/browse/MODE-2571) - ModeShape Spring example uses invalid repository configuration - [MODE-2573](https://issues.jboss.org/browse/MODE-2573) - Using OFFSET on queries which use indexes loops over the same first 100 nodes - [MODE-2539](https://issues.jboss.org/browse/MODE-2539) - Cannot 3.x restore repository backup - [MODE-2577](https://issues.jboss.org/browse/MODE-2577) - ElasticSearch Index Provider Documentation is incorrect - [MODE-2576](https://issues.jboss.org/browse/MODE-2576) - Local Index Provider losing index results after updating a boolean attribute - [MODE-2584](https://issues.jboss.org/browse/MODE-2584) - Binaries lost when creating a new backup of a restored repository - [MODE-2580](https://issues.jboss.org/browse/MODE-2580) - Property changed event for jcr:data should only be fired if the property value actually changes - [MODE-2583](https://issues.jboss.org/browse/MODE-2583) - Indexes deconfigured via WildFly configuration are still in use - [MODE-2520](https://issues.jboss.org/browse/MODE-2520) - Lucene multi-column indexes may loose field information when updated - [MODE-2547](https://issues.jboss.org/browse/MODE-2547) - Data corrupted when concurrently uploading files to Mongodb binary store, if the number of threads exceeds the pool size - [MODE-2548](https://issues.jboss.org/browse/MODE-2548) - Lucene MultiColumnIndex logging bug - [MODE-2560](https://issues.jboss.org/browse/MODE-2560) - Attempting to remove a version of a copied versionable node causes a ReferentialIntegrityException - [MODE-2567](https://issues.jboss.org/browse/MODE-2567) - Lucene Index Provider does not correctly handle Like constraints containing an Ampersand with a leading or trailing space - [MODE-2564](https://issues.jboss.org/browse/MODE-2564) - QueryBuilder does not remember changes to "limit" or "offset". - [MODE-2565](https://issues.jboss.org/browse/MODE-2565) - Lucene Index Provider re-indexes on every restart - [MODE-2562](https://issues.jboss.org/browse/MODE-2562) - Backup and restore converts two backslashes in a single backslash Enhancement - [MODE-2575](https://issues.jboss.org/browse/MODE-2575) - Allow the MongoDB binary store to be configured via regular configuration - [MODE-2519](https://issues.jboss.org/browse/MODE-2519) - Allow the parsing of a default expression - [MODE-2554](https://issues.jboss.org/browse/MODE-2554) - Add Geometry Type to Teiid DDL dialect - [MODE-2574](https://issues.jboss.org/browse/MODE-2574) - Allow the Cassandra binary store to be configured via regular configuration - [MODE-2587](https://issues.jboss.org/browse/MODE-2587) - Repository backup and restore should be performed in batches - [MODE-2508](https://issues.jboss.org/browse/MODE-2508) - Add OPTIONS capability to Procedure ResultSet - [MODE-2506](https://issues.jboss.org/browse/MODE-2506) - Add support for DATE/TIME/TIMESTAMP keyword literals in Teiid parsing - [MODE-2534](https://issues.jboss.org/browse/MODE-2534) - Teiid DDL sequencer doesn't support GLOBAL or LOCAL TEMP TABLE options - [MODE-2555](https://issues.jboss.org/browse/MODE-2555) - Support environment variables in node-type element in Configuration of Modeshape Wildfly Subsystem Feature Request - [MODE-2518](https://issues.jboss.org/browse/MODE-2518) - Attached binary content on jcr:content in Web Explorer - [MODE-2162](https://issues.jboss.org/browse/MODE-2162) - Store indexes in ElasticSearch - [MODE-2556](https://issues.jboss.org/browse/MODE-2556) - Enable/disable journaling with parameter - [MODE-2559](https://issues.jboss.org/browse/MODE-2559) - Compress binaries for Backups Task - [MODE-2572](https://issues.jboss.org/browse/MODE-2572) - Property changed events for mix:lastModified should only be fired if the underlying node actually changes - [MODE-2516](https://issues.jboss.org/browse/MODE-2516) - Migrate code to Java 8 - [MODE-2557](https://issues.jboss.org/browse/MODE-2557) - Replace the usage of mockito-all with mockito-core in the test classpath - [MODE-2541](https://issues.jboss.org/browse/MODE-2541) - When storing binaries in the FS binary store, avoid closing the hashing stream twice - [MODE-2524](https://issues.jboss.org/browse/MODE-2524) - Remove deprecated ModeShape API methods and classes - [MODE-2525](https://issues.jboss.org/browse/MODE-2525) - Change ModeShape's persistence mechanism to support transactional, strongly-consistent data-stores - [MODE-2522](https://issues.jboss.org/browse/MODE-2522) - Remove Joda library and change the ModeShape API to use new JDK 1.8 date/time API - [MODE-2563](https://issues.jboss.org/browse/MODE-2563) - Update the AS kit to support Wildfly 10 - [MODE-2561](https://issues.jboss.org/browse/MODE-2561) - Remove the Teiid sequencer and Teiid DDL parser from the ModeShape codebase - [MODE-2450](https://issues.jboss.org/browse/MODE-2450) - Phantom locks should be removed from the system area on repository startup - [MODE-2570](https://issues.jboss.org/browse/MODE-2570) - Trim the ModeShape binary distribution Sub-task - [MODE-2568](https://issues.jboss.org/browse/MODE-2568) - Create MapDB based persistence provider - [MODE-2527](https://issues.jboss.org/browse/MODE-2527) - Change the modeshape-schematic module to contain only document-related classes - [MODE-2569](https://issues.jboss.org/browse/MODE-2569) - Create MVStore based persistence provider - [MODE-2529](https://issues.jboss.org/browse/MODE-2529) - Remove the "cacheTtlSeconds" configuration option for connectors - [MODE-2536](https://issues.jboss.org/browse/MODE-2536) - Integrate with JTA transaction managers - [MODE-2528](https://issues.jboss.org/browse/MODE-2528) - Create new persistence SPI that supports storing data in relational databases - [MODE-2540](https://issues.jboss.org/browse/MODE-2540) - Remove Infinispan binary stores - [MODE-2542](https://issues.jboss.org/browse/MODE-2542) - ModeShape should still use JGroups when clustering - [MODE-2543](https://issues.jboss.org/browse/MODE-2543) - Update ModeShape's examples and quickstarts - [MODE-2545](https://issues.jboss.org/browse/MODE-2545) - Remove XA support for JCR sessions in ModeShape 5 - [MODE-2526](https://issues.jboss.org/browse/MODE-2526) - ModeShape's workspace cache should not be based on Infinispan - [MODE-2546](https://issues.jboss.org/browse/MODE-2546) - Implement exclusive locking at repository level