Creating an artifact with a duplicate name and location results in two artifacts

Bug #1284299 reported by Francis Ginther on 2014-02-24
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu CI Engine
Francis Ginther

Bug Description

Calling the ticketartifact API twice with the same data appears to result in two artifacts being create, even though both have the same name and URL.

I ran into this while trying to add artifacts from the lander while it was stuck in an infinite loop. I soon had dozens of repeating copies of the same set of artifacts in the ticket view, but the container only had 5 real files.

here's an example of the call parameters (the file has been removed from storage):
[]: {'ticket': '/api/v1/ticket/3/', 'type': 'RESULTS', 'name': 'lander_master.all.json', 'reference': ''}

I'll file this as medium as the caller shouldn't normally be generating duplicate artifacts.

Andy Doan (doanac) wrote :

Francis - was this using my branch that added artifacts to the ticket-system? I was wondering if we shouldn't prefix some of these names from the lander with the jenkins buildnumber or something. That way we can see diffs between re-runs ?

tags: added: airline
Changed in ubuntu-ci-services-itself:
assignee: nobody → Francis Ginther (fginther)
Ursula Junque (ursinha) on 2014-03-26
Changed in uci-engine:
assignee: nobody → Francis Ginther (fginther)
importance: Undecided → Medium
Evan (ev) on 2014-03-31
no longer affects: ubuntu-ci-services-itself
Vincent Ladeuil (vila) on 2014-04-03
Changed in uci-engine:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers