Details

      Description

      Steps to reproduce:

      1. Create new regular role
      2. Export role (using Vertical Ellipsis > Export / Import)
      3. Delete role
      4. Import role (using Vertical Ellipsis > Export / Import)

      Expected Result:
      Import completes successfully and role appears in table.

      Actual Result:
      Import fails.

      Console Error
      00:22:35,323 ERROR [liferay/background_task-1][BackgroundTaskMessageListener:156] Unable to execute background task
      com.liferay.portlet.exportimport.lar.PortletDataException: com.thoughtworks.xstream.converters.ConversionException: com.liferay.portal.model.impl.PermissionImpl : com.liferay.portal.model.impl.PermissionImpl_---- Debugging information ----_message             : com.liferay.portal.model.impl.PermissionImpl_cause-exception     : com.thoughtworks.xstream.security.ForbiddenClassException_cause-message       : com.liferay.portal.model.impl.PermissionImpl_class               : java.util.ArrayList_required-type       : java.util.ArrayList_converter-type      : com.thoughtworks.xstream.converters.collections.CollectionConverter_path                : /list/com.liferay.portal.model.impl.PermissionImpl_line number         : 2_version             : 1.4.7_------------------------------- [Sanitized]
              at com.liferay.portlet.exportimport.lar.BaseStagedModelDataHandler.importStagedModel(BaseStagedModelDataHandler.java:394)
              at com.liferay.portlet.exportimport.lar.StagedModelDataHandlerUtil.importStagedModel(StagedModelDataHandlerUtil.java:367)
              at com.liferay.portlet.exportimport.lar.StagedModelDataHandlerUtil.importStagedModel(StagedModelDataHandlerUtil.java:353)
              at com.liferay.roles.admin.internal.lar.RolesAdminPortletDataHandler.doImportData(RolesAdminPortletDataHandler.java:142)
              at com.liferay.portlet.exportimport.lar.BasePortletDataHandler.importData(BasePortletDataHandler.java:372)
              at com.liferay.exportimport.controller.PortletImportController.importPortletData(PortletImportController.java:312)
              at com.liferay.exportimport.controller.PortletImportController.importPortletData(PortletImportController.java:809)
              at com.liferay.exportimport.controller.PortletImportController.doImportPortletInfo(PortletImportController.java:602)
              at com.liferay.exportimport.controller.PortletImportController.importFile(PortletImportController.java:228)
              at com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl.importPortletInfo(ExportImportLocalServiceImpl.java:373)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:84)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:173)
              at com.sun.proxy.$Proxy91.importPortletInfo(Unknown Source)
              at com.liferay.portlet.exportimport.service.ExportImportLocalServiceUtil.importPortletInfo(ExportImportLocalServiceUtil.java:162)
              at com.liferay.exportimport.background.task.PortletImportBackgroundTaskExecutor$PortletImportCallable.call(PortletImportBackgroundTaskExecutor.java:124)
              at com.liferay.exportimport.background.task.PortletImportBackgroundTaskExecutor$PortletImportCallable.call(PortletImportBackgroundTaskExecutor.java:110)
              at com.liferay.portal.spring.transaction.TransactionInvokerImpl$CallableMethodInvocation.proceed(TransactionInvokerImpl.java:113)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:84)
              at com.liferay.portal.spring.transaction.TransactionInvokerImpl.invoke(TransactionInvokerImpl.java:41)
              at com.liferay.portal.kernel.transaction.TransactionInvokerUtil.invoke(TransactionInvokerUtil.java:28)
              at com.liferay.exportimport.background.task.PortletImportBackgroundTaskExecutor.execute(PortletImportBackgroundTaskExecutor.java:85)
              at com.liferay.portal.kernel.backgroundtask.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:58)
              at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:43)
              at com.liferay.portal.kernel.backgroundtask.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:56)
              at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:121)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
              at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: com.thoughtworks.xstream.converters.ConversionException: com.liferay.portal.model.impl.PermissionImpl : com.liferay.portal.model.impl.PermissionImpl_---- Debugging information ----_message             : com.liferay.portal.model.impl.PermissionImpl_cause-exception     : com.thoughtworks.xstream.security.ForbiddenClassException_cause-message       : com.liferay.portal.model.impl.PermissionImpl_class               : java.util.ArrayList_required-type       : java.util.ArrayList_converter-type      : com.thoughtworks.xstream.converters.collections.CollectionConverter_path                : /list/com.liferay.portal.model.impl.PermissionImpl_line number         : 2_version             : 1.4.7_------------------------------- [Sanitized]
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
              at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
              at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
              at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1185)
              at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1169)
              at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1040)
              at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1031)
              at com.liferay.exportimport.lar.PortletDataContextImpl.fromXML(PortletDataContextImpl.java:654)
              at com.liferay.exportimport.lar.PortletDataContextImpl.getZipEntryAsObject(PortletDataContextImpl.java:1284)
              at com.liferay.roles.admin.internal.lar.RoleStagedModelDataHandler.doImportStagedModel(RoleStagedModelDataHandler.java:217)
              at com.liferay.roles.admin.internal.lar.RoleStagedModelDataHandler.doImportStagedModel(RoleStagedModelDataHandler.java:60)
              at com.liferay.portlet.exportimport.lar.BaseStagedModelDataHandler.importStagedModel(BaseStagedModelDataHandler.java:364)
              ... 37 more
      Caused by: com.thoughtworks.xstream.security.ForbiddenClassException: com.liferay.portal.model.impl.PermissionImpl
              at com.thoughtworks.xstream.security.NoTypePermission.allows(NoTypePermission.java:26)
              at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:74)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47)
              at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)
              at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:70)
              at com.thoughtworks.xstream.converters.collections.CollectionConverter.addCurrentElementToCollection(CollectionConverter.java:98)
              at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:91)
              at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:85)
              at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:80)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
              ... 51 more
      

      Reproduced on:
      Tomcat 7.0.62 + MySQL 5.6.26 Portal master GIT ID: eda5f487af1ce4b92a3663b1748b17243f437557

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.lee Brian Lee
                Reporter:
                brian.lee Brian Lee
                Participants of an Issue:
                Recent user:
                Brian Wulbern
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 35 weeks, 6 days ago

                  Packages

                  Version Package
                  7.0.0 Beta 3