Hello,

I created a new Type in the DataModule, for which I checked the "Allow
Folders" option. I also entered the RootPath as "static/html". This results
in a RepositoryException when the datamodule gets started:

javax.jcr.RepositoryException: not an absolute path: static/html

I resolved this by changing the path to /static/html (including the forward
slash). Maybe you can force the user to start the value for RootPath with a
"/"? Or at least mention that it should in the field desciptor. Or even
adapt the DataModule.createRootPath() method so that at line

        String rootPath = StringUtils.defaultIfEmpty(type.getRootPath(),
"/");

the rootPath always starts with "/" if type.getRootPath() doesn't start with
it?

Best of luck,
Bert
-- 
View this message in context: 
http://www.nabble.com/Error-in-Datamodule-when-using-folders.-tp20148053p20148053.html
Sent from the Magnolia - User mailing list archive at Nabble.com.


----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------

Reply via email to