We have a problem with assets being listed more than once in the "asset.json" file.
This is a problem, as we have to use this list to map asset filenames from "real" filenames to the internal filename used by Adapt, when localising courses (typically mp3-files).
It seems that this is the scenario where it happens:
- an mp3 asset is uploadet and inserted into a component.
- a new version of the mp3 asset is loaded (as you cannot update an asset).
- the new version is attached to the component.
- the old mp3 asset is marked as deleted.
I looked in the database, where I found a "courseasset" record pointing to the deleted version, still linking it to the component.
I suppose this is what renders the entry in the "asset.json" file.
Could it be, that if you do he steps above in another order, this could happen?