dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #26107
[Bug 1251236] [NEW] Web API import event overwrite old value
Public bug reported:
Importing Multiple single events without registration through XML using
Web API overwrites already existing event.
Import summary even returns same reference ids. Sample results below
comes from two different event XML imports trying to import event with
same program, orgunit and eventDate values, but two separate events
<?xml version='1.0' encoding='UTF-8'?><importSummaries
xmlns="http://dhis2.org/schema/dxf/2.0"><imported>17</imported><updated>0</updated><ignored>0</ignored><importSummaryList><importSummary><status>SUCCESS</status><dataValueCount
imported="17" updated="0" ignored="0"/><importCount imported="0"
updated="0"
ignored="0"/><reference>hjzTtWLqCjL</reference><href>http://41.217.202.50:8080/dhis/api/events/hjzTtWLqCjL</href></importSummary></importSummaryList></importSummaries>
<?xml version='1.0' encoding='UTF-8'?><importSummaries
xmlns="http://dhis2.org/schema/dxf/2.0"><imported>17</imported><updated>0</updated><ignored>0</ignored><importSummaryList><importSummary><status>SUCCESS</status><dataValueCount
imported="17" updated="0" ignored="0"/><importCount imported="0"
updated="0"
ignored="0"/><reference>hjzTtWLqCjL</reference><href>http://41.217.202.50:8080/dhis/api/events/hjzTtWLqCjL</href></importSummary></importSummaryList></importSummaries>
** Affects: dhis2
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1251236
Title:
Web API import event overwrite old value
Status in DHIS 2:
New
Bug description:
Importing Multiple single events without registration through XML
using Web API overwrites already existing event.
Import summary even returns same reference ids. Sample results below
comes from two different event XML imports trying to import event with
same program, orgunit and eventDate values, but two separate events
<?xml version='1.0' encoding='UTF-8'?><importSummaries
xmlns="http://dhis2.org/schema/dxf/2.0"><imported>17</imported><updated>0</updated><ignored>0</ignored><importSummaryList><importSummary><status>SUCCESS</status><dataValueCount
imported="17" updated="0" ignored="0"/><importCount imported="0"
updated="0"
ignored="0"/><reference>hjzTtWLqCjL</reference><href>http://41.217.202.50:8080/dhis/api/events/hjzTtWLqCjL</href></importSummary></importSummaryList></importSummaries>
<?xml version='1.0' encoding='UTF-8'?><importSummaries
xmlns="http://dhis2.org/schema/dxf/2.0"><imported>17</imported><updated>0</updated><ignored>0</ignored><importSummaryList><importSummary><status>SUCCESS</status><dataValueCount
imported="17" updated="0" ignored="0"/><importCount imported="0"
updated="0"
ignored="0"/><reference>hjzTtWLqCjL</reference><href>http://41.217.202.50:8080/dhis/api/events/hjzTtWLqCjL</href></importSummary></importSummaryList></importSummaries>
To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1251236/+subscriptions
Follow ups
References