Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-17350

nuxeo-quota addon: fix inconsistency in computation of trash size and live documents size

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0-HF13
    • Fix Version/s: 5.8.0-HF35, 6.0-HF15, 7.4
    • Component/s: Quotas

      Description

      How to reproduce:

      • empty repository
      • create a `File` document with a 6611 bytes file (screenshot-1)
      • create 2 versions of the `File` document previously created (screenshot-2)
      • delete the `File` (move to trash) (screenshot-3)
      • create another `File` document with a 53531 bytes file (screenshot-4)

      Live documents size should be 53531 bytes but it is not because versions' size was added to trash size.
      So when a document is moved to the trash, only its inner size should be moved to its trash size, not its total size.

      Live document size computation should follow the following formula:

      live document size = total size - versions size - trash size
      

        Attachments

        1. screenshot-1.png
          40 kB
          Vincent Dutat
        2. screenshot-2.png
          42 kB
          Vincent Dutat
        3. screenshot-3.png
          37 kB
          Vincent Dutat
        4. screenshot-4.png
          44 kB
          Vincent Dutat

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: