When the user quota is activated (system.usages.enabled=true), user usage is not calculated for previously uploaded contents

Description

Description
When the user quota is activated (system.usages.enabled=true), user usage is not calculated for previously uploaded contents

Steps to reproduce:
1. Create a test user, for example, "testuser" in Share UI
2. Upload any content by Share UI
3. Go to Node browser and verify cm:sizeCurrent is 0
4. Add the property system.usages.enabled=true in alfresco-global.properties and restart the server
5. Upload some documents and wait for the scheduled userUsage job to run, which is scheduled for every 5 minutes

Expected Behaviour:
After adding the property, usage was updated every 5 minutes. cm:sizeCurrent should reflect all the previous usages and usages after changing the property.

Observed Behaviour:
After adding the property, usage was updated every 5 minutes. However, cm:sizeCurrent only reflects the usage increase after changing the property.

alfresco.log output:

Example:
Initially, the "testuser" usage was 139.25MB.

I uploaded a total of 6.3MB files before changing the property.
Even after changing the property, the usage remained unchanged at 139.25MB.

After that, when I uploaded a 1.4MB file, the usage increased to 140.68MB.
If previous uploads are reflected, the final size should be about 147MB.

Environment

None

Testcase ID

None

Assignee

Unassigned

Reporter

Shilpa Tupe

ACT Numbers

00350279

Bug Priority

Category 2