API Field transformers are not working

Hi devs,

We are using 2.25 DHIS version. Some of the dhis apis are throwing 400 when using | symbol but working fine when using ~ symbol.

ex: /api/organisationUnits?fields=id,displayName|rename(name)

As per 2.24 documentation the field transformers use | and 2.25 use ~ symbol, but we see 2.25 plugins (eg: chart.js, table.js,eventchart.js) are still using pipe( | ) symbol.

Did anyone face this issue before? Any suggestions please.

Thanks,

Anil Kumar

Hi Anil

We are aware of this, and Jan is working on updating the apps (he was waiting for a backport of mine to support both | and ~ in earlier versions of DHIS2).

···

On Tue, Feb 7, 2017 at 8:06 PM, Anilkumar Kodi anilkumk@thoughtworks.com wrote:

Hi devs,

We are using 2.25 DHIS version. Some of the dhis apis are throwing 400 when using | symbol but working fine when using ~ symbol.

ex: /api/organisationUnits?fields=id,displayName|rename(name)

As per 2.24 documentation the field transformers use | and 2.25 use ~ symbol, but we see 2.25 plugins (eg: chart.js, table.js,eventchart.js) are still using pipe( | ) symbol.

Did anyone face this issue before? Any suggestions please.

Thanks,

Anil Kumar

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

Hi Anil,

the | is no longer supported in URLs by Tomcat. Please move over to using ~ instead.

Lars

···

On Tue, Feb 7, 2017 at 2:28 PM, Morten Olav Hansen morten@dhis2.org wrote:

Hi Anil

We are aware of this, and Jan is working on updating the apps (he was waiting for a backport of mine to support both | and ~ in earlier versions of DHIS2).

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

On Tue, Feb 7, 2017 at 8:06 PM, Anilkumar Kodi anilkumk@thoughtworks.com wrote:

Hi devs,

We are using 2.25 DHIS version. Some of the dhis apis are throwing 400 when using | symbol but working fine when using ~ symbol.

ex: /api/organisationUnits?fields=id,displayName|rename(name)

As per 2.24 documentation the field transformers use | and 2.25 use ~ symbol, but we see 2.25 plugins (eg: chart.js, table.js,eventchart.js) are still using pipe( | ) symbol.

Did anyone face this issue before? Any suggestions please.

Thanks,

Anil Kumar

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org