PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-29476

Search portlet results are displaying for guest even without guest view permissions. (Web Content / Journal)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2, 6.2.0 CE M2
    • Fix Version/s: 6.1.30 EE GA3, 6.2.0 CE M2
    • Labels:
    • Environment:
    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Similar Issues:
      Show 3 results 

      Description

      Search results display for guests even though guest view permissions are disabled.

      Steps to reproduce:

      1. Add Search Portlet
      2. Create Web content
      3. Remove guest "view" permissions
      4. Save
      5. Logout
      6. Search for web content

      Content will display in asset publisher when it's not supposed to. and you can also click on the link, which leads you to an empty asset publisher.

      See steps in video

      Search should not produce results, and no link should be available.

        Issue Links

          Activity

          Hide
          Alfred Wong (Inactive) added a comment -

          Need backport to ee-6.1.x, and the code is different in ee-6.1.x than in trunk let me know if I need to fix and commit to ee-6.1.x one too.

          Show
          Alfred Wong (Inactive) added a comment - Need backport to ee-6.1.x, and the code is different in ee-6.1.x than in trunk let me know if I need to fix and commit to ee-6.1.x one too.
          Hide
          Brian Chan added a comment -
          Show
          Brian Chan added a comment - Not a bug. See https://github.com/brianchandotcom/liferay-portal/pull/6647
          Hide
          Alfred Wong (Inactive) added a comment -

          So if this is a won't fix, then does the commit on LPS-29508 fix the issue on 6.1.x?

          Show
          Alfred Wong (Inactive) added a comment - So if this is a won't fix, then does the commit on LPS-29508 fix the issue on 6.1.x?
          Hide
          Alfred Wong (Inactive) added a comment -

          The fix was commited in trunk under:
          LPS-29476 - The correct fix
          Listed as the second item in the pull request that was given by Ray in Brian's comment.

          Show
          Alfred Wong (Inactive) added a comment - The fix was commited in trunk under: LPS-29476 - The correct fix Listed as the second item in the pull request that was given by Ray in Brian's comment.
          Hide
          Michael Saechang added a comment -

          Committed on:
          Portal 6.2.x GIT ID: 9e5240f3dd0ed77b3193b2665f3d7309f725f28a.

          Show
          Michael Saechang added a comment - Committed on: Portal 6.2.x GIT ID: 9e5240f3dd0ed77b3193b2665f3d7309f725f28a.
          Hide
          Paul Piao (Inactive) added a comment -

          FAILED Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.1 CE GA2.

          You will see the web content in guest user.

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: a7e8d79e0d8a8cfaa2172ad0bf443931c9b64da3.

          You will not see the web content in guest user.

          Failed on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 001d217d34562a9065e44148e25f6146e701b21a.

          You will see the web content in guest user and console throw error message.

          Show
          Paul Piao (Inactive) added a comment - FAILED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.1 CE GA2. You will see the web content in guest user. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: a7e8d79e0d8a8cfaa2172ad0bf443931c9b64da3. You will not see the web content in guest user. Failed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 001d217d34562a9065e44148e25f6146e701b21a. You will see the web content in guest user and console throw error message.
          Hide
          Alfred Wong (Inactive) added a comment - - edited

          The reason it failed in 6.1.x is because the commit made in trunk has still not been backported to 6.1.x.
          So when you can, please backport Ray's fix to ee-6.1.x. Thanks!

          Show
          Alfred Wong (Inactive) added a comment - - edited The reason it failed in 6.1.x is because the commit made in trunk has still not been backported to 6.1.x. So when you can, please backport Ray's fix to ee-6.1.x. Thanks!
          Hide
          Paul Piao (Inactive) added a comment -

          PASSED Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.1 CE GA2.

          You will see the web content in guest user.

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: a7e8d79e0d8a8cfaa2172ad0bf443931c9b64da3.
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 16e673497cc0fb17129d4a3ffcba3cdea602b4e5.

          You will not see the web content in guest user.

          Show
          Paul Piao (Inactive) added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.1 CE GA2. You will see the web content in guest user. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: a7e8d79e0d8a8cfaa2172ad0bf443931c9b64da3. Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 16e673497cc0fb17129d4a3ffcba3cdea602b4e5. You will not see the web content in guest user.

            People

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

              Dates

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

                Development

                  Structure Helper Panel