ItemTypes cannot be deleted when their "rootPath" is not on the top level -------------------------------------------------------------------------
Key: MGNLDATA-151 URL: http://jira.magnolia-cms.com/browse/MGNLDATA-151 Project: Magnolia Data Module Issue Type: Bug Affects Versions: 1.6.4 Reporter: Will Scheidegger Assignee: Philipp Bärfuss Attachments: itemsExist.patch If you have defined a data node type which has its root on level > 1 you'll get a NPE when trying to delete the item type. 2012-05-05 07:04:18,637 ERROR fo.magnolia.module.data.commands.TypeDeleteCommand: cannot do delete java.lang.NullPointerException at info.magnolia.module.data.commands.TypeDeleteCommand.itemsExist(TypeDeleteCommand.java:119) This is caused by the use of (deprecated) .getChildByName() which of course does not work for something like "/customer/products". The attached patch uses ContentUtil.getContent(repository, path) instead and therefore also works with nested root nodes. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia-cms.com/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------