[MAGNOLIA-2988] Preliminary support for jackrabbit 2 Created: 04/Jan/10  Updated: 23/Jan/13  Resolved: 31/Jan/10

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: None
Fix Version/s: 4.3

Type: Improvement Priority: Major
Reporter: Fabrizio Giustina Assignee: Fabrizio Giustina
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MAGNOLIA-3985 primaryItemType set on mgnl:resource ... Closed
is related to MGNLBACKUP-27 Jackrabbit 2.0 compatibility Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

Although we would not migrate to jcr2/jackrabbit2 soon, it would be nice to make ProviderImpl compatible so that we could start "experimenting" a migration.

Jackrabbit 2.0 seems to work fine as a drop-in replacement for older version, with only a few required changes to the nodetype registration:

  • the ProviderImpl class have to be modified since the return value of NodeTypeReader.read() has been changed from NodeTypeDef[] to QNodeTypeDefinition[]
  • the nodetype definition for mgnl:resource contains a primaryItemName="jcr:data" property which is not needed (since it already extends nt:resource) and that is not allowed in 2.0

ProviderImpl could be easily be updated to support both jackrabbit versions by using reflection. The change for supporting jackrabbit 2 is really small.



 Comments   
Comment by Fabrizio Giustina [ 04/Jan/10 ]

patch committed to trunk

Comment by Fabrizio Giustina [ 31/Jan/10 ]

reopening, the patch is not fully working: there is still a binary incompatibility with jackrabbit 2 when the ProviderImpl class is compiled with 1.6

Comment by Fabrizio Giustina [ 31/Jan/10 ]

Also ntReg.getNodeTypeDef() is now called using reflection.
Jackrabbit 2 support will be available with 4.3 m2

Generated at Mon Feb 12 03:42:05 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.