dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #49853
Re: Retrieving validation rules for a dataSet fails in >=2.26
Hi Jasper,
this seems to have been caused by a change in 2.26. A property was removed
which caused this query to no longer be supported. The usage of the
property slipped trough in this case.
I created a bug issue for it on jira (
https://jira.dhis2.org/browse/DHIS2-2039).
We will try and find an alternative solution to this to keep supporting it,
but for now there is no easy fix for bug.
On Fri, Aug 11, 2017 at 2:23 PM, Jasper Timm <jasper.timm@xxxxxxxxxxxxxxxxxx
> wrote:
> Any devs care to comment on this? Would it help if I add it as a Jira
> issue?
>
> On Mon, Aug 7, 2017 at 5:56 PM, Jasper Timm <jasper.timm@ehealthnigeria.
> org> wrote:
>
>> Hi all,
>>
>> It looks like a request to the /validationRules endpoint where you
>> specify the dataSet you're interested in is now failing in versions 2.26
>> and above.
>>
>> See the following request on the play instance: https://play.dhis2.o
>> rg/demo/api/validationRules?dataSet=lyLU2wR22tC
>>
>> Response:
>>
>> {
>> "httpStatus": "Internal Server Error",
>> "httpStatusCode": 500,
>> "status": "ERROR",
>> "message": "could not resolve property: dataElementsInExpression of:
>> org.hisp.dhis.expression.Expression"
>> }
>>
>> Any ideas?
>>
>> --
>>
>> *Jasper Timm*
>>
>> Lead Software Developer
>>
>> *eHealth Africa*
>>
>> Mobile +232 99891119 <+23299891119>
>>
>> www.ehealthafrica.org
>>
>>
>> <http://www.ehealthafrica.org/>
>>
>>
>
>
> --
>
> *Jasper Timm*
>
> Lead Software Developer
>
> *eHealth Africa*
>
> Mobile +232 99891119 <+23299891119>
>
> www.ehealthafrica.org
>
>
> <http://www.ehealthafrica.org/>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>
>
--
Stian Sandvold
Software developer, DHIS2
University of Oslo
http://www.dhis2.org
Follow ups
References