Ticket #167 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

<is_empty_asset> = true, while there is a valid, usable mediafile

Reported by: Michiel.Schok Owned by: robert
Priority: major Milestone: MediaMosa 2.1
Component: Core Version:
Keywords: Cc:
MoSCoW: Must Have Estimated time after impact analysis:
Related to project: none Tested: yes
Accepted: yes Estimated Hours:

Description

Seen on 1.5.7, not testen on 1.6
Related to #165 (and the basis of our experiments):

When we

1. Create an asset
2. Create an empty mediafile
3. Create an uploadticket to the mediafile
4. Create another mediafile with an URI

We have an asset with two mediafiles.
One of the mediafiles is empty (an uploadticket is issued, but never used), the other mediafile contains an URI, we observe the following when an /asset/{id} call is issued:

1. If the mediafile-id of the empty mediafile comes 'before' (alphabetically) the mediafile-id of the URI-mediafile, the <is_empty_asset> is set to TRUE
2. if it comes 'after', <is_empty_asset> is set to FALSE

This explains why roughly speaking about half our uploads of external assets goes wrong...

Change History

Changed 3 years ago by Frans

  • moscow set to Must Have
  • milestone changed from MediaMosa X.X to MediaMosa 2.1

Changed 3 years ago by forgacs

  • owner set to forgacs
  • status changed from new to assigned

Changed 3 years ago by forgacs

  • owner changed from forgacs to robert

It is ready.

Changed 3 years ago by forgacs

  • status changed from assigned to closed
  • resolution set to ready_for_review

Changed 3 years ago by Michiel.Schok

  • status changed from closed to reopened
  • resolution ready_for_review deleted

An error occurs at step 2 when creating the mediafile using a

[post] /mediafile/create call using parameters
user_id=foo
asset_id=y2IimNgOIYgefsTrOMEbGMyj

Changed 3 years ago by robert

  • status changed from reopened to closed
  • resolution set to ready_for_review

ready for review for 2.1 release

Changed 3 years ago by robert

  • status changed from closed to reopened
  • resolution ready_for_review deleted

Changed 3 years ago by robert

  • status changed from reopened to closed
  • resolution set to fixed

Changed 3 years ago by Michiel.Schok

  • tested set to yes
  • accepted changed from no to yes

asset_id: W2bYcJmXJJKSUVRhrXtPyp2t
mediafile_id: m2IgsoZLFKfQlKkUNXqPV1dd (empty)
mediafile_id: S2YRIbHbZbGjY7gRKmK5bWU9 (uri)

<is_empty>false

and that is correct.

Note: See TracTickets for help on using tickets.