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

PrincipalThreadLocal.getUserId() fails in rebuildLayoutPageTemplateStructure when calling from LayoutCopyHelperImpl

    Details

      Description

      Description
      Many LayoutCopyHelperTest integration tests are currently failing because they call

      rebuildLayoutPageTemplateStructure(sourceLayout.getGroupId(), classNameId, sourceLayout.getPlid());
      

      which fails to retrieve the userId using principalTheadLocal.
      Likely cause
      https://github.com/liferay/liferay-portal/commit/3b204689bc0ea18442c63a407dc63b7709eed688

      Steps to Reproduce

      1. Run the LayoutCopyHelper integration tests

      Expected Result
      The integration tests pass

      Actual Result
      The integration tests fail

      Tested on Tomcat 9.0.17 + MySQL 5.7
      Portal master GIT ID: fe4cbbd187bc1ea79c81b59a4922a192c65b88b6

        Attachments

          Activity

            People

            • Assignee:
              kyle.miho Kyle Miho
              Reporter:
              kyle.miho Kyle Miho
              Participants of an Issue:
              Recent user:
              Kyle Miho
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

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

                Packages

                Version Package
                Master