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

Links to expired content return a code 200

    Details

      Description

      Steps to reproduce:

      1. Add a new Asset Publisher in a page. Configure it as default asset publisher of the page and set the links as "view in context" url
      2. Create a new web content (name it "Asturias") and set the previous AP as the display page for this content
      3. Go to the page and copy the link, or browse to it
      4. In another tab expire the content
      5. refresh the content tab

      Expected: in the developer tools we should have a 410 (Gone) or 404 (not found) code
      Current: We have a 200 code. With this code crowlers do not expire the link and it remains in their caches.

      Bonus bug: Send the content to the recycle bin

      Expected: in the developer tools we should have a 404 (not found) code
      Current: We have a 200 code. With this code crowlers do not expire the link and it remains in their caches.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 21 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 DXP FP52
                7.0.0 DXP SP9
                7.0.X
                7.1.0 Beta 2
                7.1.X
                Master