Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 6.2.0 CE GA1
    • Fix Version/s: 6.2.3 CE GA4, 7.0.0 Alpha 1
    • Component/s: DM
    • Labels:
      None
    • Story Points:
      12

      Description

      In our portlet we call Document Library local service to update file, but got error:

      com.liferay.portal.security.auth.PrincipalException
      at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryServiceImpl.checkInFileEntry(DLFileEntryServiceIm
      pl.java:100)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      .....
      at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.updateFileEntry(DLFileEntryLocalServiceImpl.java:2367)
      at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.updateFileEntry(DLFileEntryLocalServiceImpl.java:1516)

      Problem is - in our case (by some reasons) security context is not initialized. But Local Service call normal (non-local) service and it produced error. I'm expecting at line DLFileEntryLocalServiceImpl.java:2367 should be called dlFileEntryLocalService.checkInFileEntry instead of dlFileEntryService.checkInFileEntry

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 13 weeks, 2 days ago