Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.0.X, 7.1.X, 7.2.X, Master
-
7.2.x, 7.1.x, 7.0.x
-
Committed
-
3
Description
DDMTemplate permissions are lost during LAR import in case JournalArticle classNameId has different value.
ClassNameId value can be different in case Liferay installation was upgraded or created with a different fixpack level
Steps to reproduce
- Install a clean Liferay
- Create a WC Structure and Template
- Configure any permissions in Template
- Export to LAR file and save it. (Important note: you have to check "export permissions" checkbox in export configuration page)
- Delete WC Structure and Template
- Stop Liferay
- Go to ClassName_ table and change classNameId value for com.liferay.journal.model.JournalArticle you can do it with following SQL:
- update Classname_ set classNameId = 99999 where value = 'com.liferay.journal.model.JournalArticle'
- Start Liferay
- Import previous exported LAR file (Important note: you have to check "import permissions" checkbox in export configuration page)
- Check imported WC template permissions:
- Expected behavior: permissions are imported
- Wrong behavior: permissions are not imported
- Expected behavior: permissions are imported