-
Type:
Regression Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.10 EE GA1, 6.2.X EE
-
Fix Version/s: 6.2.X EE
-
Branch Version/s:6.2.x
-
Backported to Branch:Committed
-
Story Points:1.25
-
Fix Priority:3
-
Git Pull Request:
- Create a Document Library Folder and a Category in the default site
- Query the dlfolder, assetcategory and user_ database tables, and note the folderId, categoryId and userId values of your folder, category and admin user
- Replace <YOUR_CATEGORY_ID>, <YOUR_FOLDER_ID> and <YOUR_USER_ID> with the actual folderId, categoryId and userId values respectively in the attached Groovy script
- Run the Groovy script on Control Panel > Server Administration > Script (All this is needed because it's not possible to assign a category to a folder through the UI)
- Turn on local staging on the site
- Publish to live by making sure Categories are selected to be published
Result: The publish will fail with ClassCastException
com.liferay.portal.kernel.exception.SystemException: java.lang.ClassCastException: com.liferay.portlet.documentlibrary.model.impl.DLFolderImpl cannot be cast to com.liferay.portal.kernel.repository.model.Folder
It looks to be the same issue as but for folders. The solution can also use the same pattern.LPS-62149
Master is not affected, because AssetCategories got their own StagedModelDataHandler and the affected code was deleted by LPS-41340