Details

    • Type: Bug Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0 CE GA1
    • Fix Version/s: None
    • Component/s: DM
    • Labels:
      None
    • Similar Issues:
      Show 4 results 

      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

        Activity

        Hide
        Brian Wulbern added a comment -

        Hi Alexey, thanks for your report!

        Are you still getting this issue? If so, would you mind posting the portlet you're using here so I can see if the issue is present at HEAD on ee-6.2.x? Does this error get thrown when deploying the portlet, or are there more steps to it? If the latter is the case, would you mind detailing your steps, so I can call Document Library local service the way you have and try confirming your issue?

        Thanks!
        Brian

        Show
        Brian Wulbern added a comment - Hi Alexey, thanks for your report! Are you still getting this issue? If so, would you mind posting the portlet you're using here so I can see if the issue is present at HEAD on ee-6.2.x? Does this error get thrown when deploying the portlet, or are there more steps to it? If the latter is the case, would you mind detailing your steps, so I can call Document Library local service the way you have and try confirming your issue? Thanks! Brian

          People

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

            Dates

            • Created:
              Updated:
              Days since last comment:
              43 weeks, 3 days ago

              Development

                Structure Helper Panel