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

        Activity

        Hide
        brian.wulbern 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 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
        Hide
        melody.wu Melody Wu added a comment - - edited

        Please ensure you have a fresh environment with no other issues that may interfere with the bug, and please upgrade to latest liferay portal. If you still experience this issue, please let me know how to reproduce the issue and we can re-visit it. Thanks!

        No longer reproducible on:

        Tomcat 7.0 + MySQL 5.5.21 Portal 6.2.3 CE GA4
        Tomcat 7.0 + MySQL 5.5.21 Portal master GIT ID: 498028669a3f8b98b603716cd2844a3d9bf39871.

        Users update the file in DM correctly.

        Show
        melody.wu Melody Wu added a comment - - edited Please ensure you have a fresh environment with no other issues that may interfere with the bug, and please upgrade to latest liferay portal. If you still experience this issue, please let me know how to reproduce the issue and we can re-visit it. Thanks! No longer reproducible on: Tomcat 7.0 + MySQL 5.5.21 Portal 6.2.3 CE GA4 Tomcat 7.0 + MySQL 5.5.21 Portal master GIT ID: 498028669a3f8b98b603716cd2844a3d9bf39871. Users update the file in DM correctly.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 2 weeks ago

              Development

                Subcomponents