dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #46132
[Bug 1607293] [NEW] Cant update Data element attribute using PATCH Web Api command in 2.22
Public bug reported:
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!
** 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/1607293
Title:
Cant update Data element attribute using PATCH Web Api command in 2.22
Status in DHIS:
New
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