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
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
Thanks Morten,
Worked quite well in 2.21 , will just have to rely on the full functionality in 2.24/25 then.
……………………….
Dapo Adejumo
DHIS2 Senior Analyst, BAO Systems
+1 202-536-1543 <tel:202-536-1543> | <>dapo@baosystems.com <mailto:dapo@baosystems.com> | http://www.baosystems.com <http://www.baosystems.com/> |
Skype: dapojorge | 2900 K Street, Suite 404, Washington D.C. 20007
···
On 29 Jul 2016, at 10:11, Morten Olav Hansen <1607293@bugs.launchpad.net> wrote:
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 subscribed to the bug
report.
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
** Attachment added: "uc.png"
https://bugs.launchpad.net/bugs/1607293/+attachment/4709352/+files/uc.png
--
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