Ticket #172 (closed defect: fixed)

Opened 10 months ago

Last modified 8 months ago

Quota is not updated on owner-update of an asset

Reported by: Michiel.Schok Owned by: MC-arjen
Priority: major Milestone: MediaMosa 1.7
Component: Core Version: 1.7.2
Keywords: Cc:
MoSCoW: Estimated time after impact analysis:
Related to project: none Tested:
Accepted: yes Estimated Hours:

Description

When we perform an
[post] /asset/{id} owner_id=new&is_app_admin=true on an asset which previously had its owner_id to old,

a [get] /user/old shows that the diskspace of the mediafiles is still accounted to the old account, and [get] /user/new shows that no diskspace is accounted for.

We expect that *a change of owner_id* also changes the 'amount_used' of the old user and new user.

The same is true for group_id of an asset, but that behaviour is not tested.

Change History

Changed 9 months ago by Frans

  • milestone changed from MediaMosa X.X to MediaMosa 1.7

Changed 8 months ago by MC-arjen

The reason for this is that the quota is determined for the mediafiles, and the /asset/id?owner_id.. only changes the owner of the asset. What is needed that changing the owner_id of a asset also updates the owner of mediafiles (and jobs). The changes are needed for group_id.

We also need a database update for all mediafiles where the owner_id is different than that of the asset (must part of the standard update procedure).

Changed 8 months ago by forgacs

  • owner set to MC-arjen
  • status changed from new to assigned

Ready. It is on the SVN.
Please, check the change set 4500.
http://xienix/trac/changeset/4500

Changed 8 months ago by MC-arjen

  • status changed from assigned to closed
  • version set to 1.7.2
  • resolution set to fixed

MM #172: Quota is not updated on owner-update of an asset; An update in
the ownership of an asset now also changes the (database) ownership of the
mediafiles. This resulted in some inconsistencies of the total quota of
users. This release updates the database where this has
occured.

Released in 1.7.2.

Changed 8 months ago by Michiel.Schok

  • accepted changed from no to yes

When changing the owner of an asset, quota is now correctly implemented.

Note: See TracTickets for help on using tickets.