Bug 990127 - Jcr2vfs migration tool: Directory structure not recognized when using real databases for JCR repo
Summary: Jcr2vfs migration tool: Directory structure not recognized when using real da...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ER6
: 6.0.0
Assignee: Mark Proctor
QA Contact: Petr Široký
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-30 12:52 UTC by Petr Široký
Modified: 2014-08-06 20:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:20:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Content of dir with repository.xml when using mysql (131.80 KB, application/zip)
2013-07-30 12:54 UTC, Petr Široký
no flags Details

Description Petr Široký 2013-07-30 12:52:12 UTC
Description of problem:
When trying to migrate the JCR repository that has the data stored in real database (e.g. mysql or postgresql) the migration tool throws following exception:
Exception in thread "main" java.lang.IllegalStateException: The unnestedVersionDir (/home/psiroky/work/jcr2vfs/guvnor-5.3-with-mysql/brms-standalone-5.3.1/jboss-as/bin/version) and the nestedVersionDir (/home/psiroky/work/jcr2vfs/guvnor-5.3-with-mysql/brms-standalone-5.3.1/jboss-as/bin/repository/version) does not exist.
	at org.drools.workbench.jcr2vfsmigration.Jcr2VfsMigrater.determineJcrRepositoryRootDirectory(Jcr2VfsMigrater.java:154)
	at org.drools.workbench.jcr2vfsmigration.Jcr2VfsMigrater.setupDirectories(Jcr2VfsMigrater.java:92)
	at org.drools.workbench.jcr2vfsmigration.Jcr2VfsMigrater.migrateAll(Jcr2VfsMigrater.java:70)
	at org.drools.workbench.jcr2vfsmigration.Jcr2VfsMigrater$Proxy$_$$_WeldClientProxy.migrateAll(Jcr2VfsMigrater$Proxy$_$$_WeldClientProxy.java)
	at org.drools.workbench.jcr2vfsmigration.Jcr2VfsMigrationApp.main(Jcr2VfsMigrationApp.java:36)


Problem is that the migration tool expects "version" directory inside the repository directory which is only true when the JCR repo is using embedded db. When real db is used the "version" dir is not created and the directory structure is:

repository/index/...
workspaces/default/...
repository.xml

Workaround is to create empty dir "repository/version", then the migration is successful.


Version-Release number of selected component (if applicable):
6.0.0.CR1

How reproducible:


Steps to Reproduce:
1. Download the attached repo and unzip it.
2. Use the directory with the zip content as "-i" parameter for migrator.


Actual results:
Exception is thrown.


Expected results:
Migration is successfully completed.

Comment 1 Petr Široký 2013-07-30 12:54:32 UTC
Created attachment 780640 [details]
Content of dir with repository.xml when using mysql

Comment 9 Petr Široký 2014-01-14 11:01:19 UTC
Verified fixed in 6.0.0-ER7.


Note You need to log in before you can comment on or make changes to this bug.