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

Hook does not work anymore to update expiry based on journal structure date field

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 6.2.X EE, 7.0.X, Master
    • Fix Version/s: None
    • Component/s: Asset Framework
    • Labels:

      Description

      1. Hook AssetEntryLocalService, add the updateEntry method they shared, build and deploy
      2. Log in as test
      3. Navigate to Site Administration -> Content
      4. Create a new Web Content
      Checkpoint: Web Content is created with expirydate of January 1, 1970. Also notice the log:

      BEFORE UPDATE:
      null
      AFTER UPDATE:
      Thu Jan 01 00:00:00 GMT 1970
      

      5. Edit the Web Content
      6. Set the Expiry Date to January 1, 2020
      7. Publish
      Expected result: The web content should have its expiry date set to 1970
      Actual result: The web content's expiry date is 2020.

      In the log:

      BEFORE UPDATE:
      Wed Jan 01 00:00:00 GMT 2020
      AFTER UPDATE:
      Thu Jan 01 00:00:00 GMT 1970
      

      Tested and reproduced on:
      1. portal-154-6210, portal-157-6210
      2. ee-6.2.x. commit 5fd7f1c5221745c1d52030c87f2965a044aeffdf

        Attachments

          Activity

            People

            Assignee:
            daniel.couso Daniel Couso
            Reporter:
            rimi.saadou Rimi Saadou (Inactive)
            Participants of an Issue:
            Recent user:
            Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 17 weeks ago

                Packages

                Version Package