Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-51841

Arabic file name causes hibernate DataException

    Details

      Description

      Changing a document name in CMIS Repository to Arabic or Russian causes the following stacktrace:

      13:14:13,010 ERROR [http-bio-8080-exec-6][JDBCExceptionReporter:82] Data truncation: Data too long for column 'mappedId' at row 1
      13:14:13,019 ERROR [http-bio-8080-exec-6][CMISRepository:2130] Unable to update asset
      com.liferay.portal.kernel.exception.SystemException: org.hibernate.exception.DataException: Could not execute JDBC batch update
      at com.liferay.portal.spring.hibernate.LastSessionRecorderUtil.syncLastSessionState(LastSessionRecorderUtil.java:36)
      at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:59)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
      at com.sun.proxy.$Proxy20.toFileVersion(Unknown Source)
      at com.liferay.portal.service.CMISRepositoryLocalServiceUtil.toFileVersion(CMISRepositoryLocalServiceUtil.java:79)
      at com.liferay.portal.repository.cmis.model.CMISFileEntry.getLatestFileVersion(CMISFileEntry.java:292)
      at com.liferay.portal.repository.cmis.model.CMISFileEntry.getFileVersion(CMISFileEntry.java:177)
      at com.liferay.portal.repository.cmis.CMISRepository.toFileEntry(CMISRepository.java:2111)
      at com.liferay.portal.repository.cmis.CMISRepository.toFileEntry(CMISRepository.java:1161)
      at com.liferay.portal.repository.cmis.CMISRepository.cacheFoldersAndFileEntries(CMISRepository.java:1456)
      at com.liferay.portal.repository.cmis.CMISRepository.getFoldersAndFileEntries(CMISRepository.java:1945)
      at com.liferay.portal.repository.cmis.CMISRepository.getFoldersAndFileEntriesCount(CMISRepository.java:730)
      at com.liferay.portal.kernel.repository.cmis.CMISRepositoryHandler.getFoldersAndFileEntriesCount(CMISRepositoryHandler.java:277)
      at com.liferay.portal.kernel.repository.BaseRepositoryImpl.getFoldersAndFileEntriesAndFileShortcutsCount(BaseRepositoryImpl.java:202)
      at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.getFoldersAndFileEntriesAndFileShortcutsCount(DLAppServiceImpl.java:1614)
      at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.getFoldersAndFileEntriesAndFileShortcutsCount(DLAppServiceImpl.java:1602

        Attachments

          Activity

            People

            Assignee:
            michael.saechang Michael Saechang
            Reporter:
            uzuzjmd Julian Dehne
            Participants of an Issue:
            Recent user:
            Michael Saechang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              6 years, 21 weeks, 5 days ago

                Packages

                Version Package
                6.2.5 CE GA6