Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-16340

DLFileEntry can be overwritten with stale data

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.2.X EE
    • Fix Version/s: None
    • Component/s: DM
    • Labels:
      None

      Description

      Steps to reproduce

      1) Set the following settings in your portal-ext.properties. This gives you roughly a 2 minute window to check:

      buffered.increment.standby.queue.threshold=3
      buffered.increment.standby.time.upper.limit=120
      

      2) Upload a document.
      3) Run this query:

      select version, readCount from dlfileentry;
      

      You should see that the version is 1.0 and readCount is 0.
      4) View the file using the "Get URL" and check if the readCount immediately iterates. If it doesn't, proceed to the next step. If it does, try to view it again in a separate browser until the readCount doesn't iterate in the query result.
      5) Update the file version by uploading a different file in place of the original. The above query should now return an updated version of 1.1 and an unchanged readCount.
      6) Wait about two minutes (it can be more) and then check the query until the readCount is updated to the # of times you've downloaded the file.

      Results of Testing

      Expected Result: Query returns 1.1 and an accurate readCount.
      Actual Results: Query returns 1.0 and an accurate readCount. The Download URL points to the latest version while the Get URL points to the earlier version.

      Errors/Logs

      No errors

      Master

      Reproduced.
      edcfcbbe8f31b79711082f7a612fe73dce628b79

      Branch

      Reproduced.
      b29ac39c599c64e80227c6b4b9884f7173585460

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lianne.louie Lianne Louie
                Reporter:
                lianne.louie Lianne Louie
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Packages

                  Version Package