Just to complete this issue, it seems that having org.apache.jackrabbit.oak.plugins.name.NameSpaces.addCustomMapping() return "" for empty name spaces instead of throwing an exception lets the upgrade complete successfully.
On 12 July 2014 14:43, Torgeir Veimo <[email protected]> wrote: > On 11 July 2014 17:54, Torgeir Veimo <[email protected]> wrote: >> Am getting >> >> Exception in thread "main" javax.jcr.RepositoryException: Failed to copy >> content >> >> at >> org.apache.jackrabbit.oak.upgrade.RepositoryUpgrade.copy(RepositoryUpgrade.java:307) >> >> at org.apache.jackrabbit.oak.run.Main.upgrade(Main.java:342) >> >> at org.apache.jackrabbit.oak.run.Main.main(Main.java:113) >> >> Caused by: java.lang.IllegalArgumentException: Invalid name: >> >> at >> org.apache.jackrabbit.oak.spi.state.AbstractNodeState.checkValidName(AbstractNodeState.java:61) >> >> when I try to upgrade a jackrabbit 2.8.0 repository. Is there any way >> to specify a verbosity parameter or trace log in order to see which >> node has an invalid name? >> >> Also, it looks like the README.md file for oak run has swapped the >> order of the parameters for repository directory and repository.xml >> file in the example? > > It seems this is due to my repository having the namespace "":"". I am > not sure how this has happened, and jackrabbit has never complained. > Also, I can't remove them using jackrabbit itself since I then get the > exception > > javax.jcr.NamespaceException: unregistering namespaces is not supported. -- -Tor
