dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #46164
[Bug 1607293] Re: Cant update Data element attribute using PATCH Web Api command in 2.22
Hi Dapo
Patching was never really properly implemented in versions earlier than
2.24, the reason you are seeing differences in 2.21 and 2.22 might be
because you have attribute values there? usually they are the cause of
most issues.
It should work a lot better in 2.24, but hopefully we will make it even
more robust in 2.25 (it requires modifications to the importer)
** Changed in: dhis2
Status: New => Invalid
--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1607293
Title:
Cant update Data element attribute using PATCH Web Api command in 2.22
Status in DHIS:
Invalid
Bug description:
Hi Devs,
I am trying to update one Data element attribute (name) using a patch update command , example below
"curl -X PATCH -d "{\"name\":\"New Data Element Name\"}" -H "Content-Type: application/json" -u xxxxxx:xxxxxx http://localhost:8080/api/dataElements/uidxxxxxxx/name”;
The command fails with the main error below
"Request processing failed; nested exception is
org.hibernate.HibernateException: A collection with cascade="all-
delete-orphan" was no longer referenced by the owning entity
instance: org.hisp.dhis.dataelement.DataElement.attributeValues”
This command works in 2.21 and also tested OK in 2.24 but not in 2.22 (several builds tested) , did something change in 2.22 making this fail?
Thanks!
To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1607293/+subscriptions
Follow ups
References