Bad file versioning for event replacement
When replacing an event, there a few problems with file versioning:
- The file version is not passed from the API view (
api.v1.events.EventList.put
) toevents.translator.handle_uploaded_data
(see here). This isn't a problem only if the new event file has a different filename. -
handle_uploaded_data
assumes a file version of 0 for both the new event file and the generated files (event.log
,coinc.xml
), which is just plain wrong - version 0 of these files was already generated when the event was initially created.