We faced the same issue, and I have brought it to Lars' attention, and he is aware of the issue. According to him, DHIS2 will be addressing this by changing square brackets in the long term, but in the short term solution you can make square brackets be exempted on the tomcat side by using relaxedQueryChars="[]" in the Tomcat connector configuration.
On Tue, Oct 30, 2018 at 6:57 AM Jasper Timm <[email protected]> wrote: > Hi DHIS2 devs, > > I faced an issue recently with using (unencoded) square brackets in > requests to the DHIS2 API. It turns out it was related to a new version of > tomcat (7.0.90). I've spoken to the tomcat devs and they've said that they > will now consider unencoded square brackets in a request to be an error. > > According to the docs: > https://docs.dhis2.org/master/en/developer/html/webapi_metadata_field_filter.html > square > brackets are used to indicate a subfield, when using the field query > parameter. > > Might it be worth considering changing the symbol used for this? At the > very least it should be made clear that the requests using it will need to > be URL encoded. > > There are even requests in the DHIS2 frontend (I'm running v2.27) which > have unencoded square brackets. The approvals page in the report view fails > with the new version of tomcat for this reason. It would be worth ensuring > all frontend requests are properly encoded. > > Cheers, > > - Jasper > -- > > Jasper Timm > > Lead Software Developer > > <http://www.ehealthafrica.org/> > > eHealth Africa > 4A Renner Drive > Off Wilkinson Road (behind Monoprix Supermarket) > Freetown, Sierra Leone > > mobile +232 99891119 > > -- > > <https://web.facebook.com/EHealthAfrica> > <https://twitter.com/eHealth_africa> > <https://www.linkedin.com/company/1449060/> > <https://www.instagram.com/ehealthafrica/> > <https://www.youtube.com/channel/UCcgM_HhTcg5M9Ji3Of6QmUg> > _______________________________________________ > Mailing list: https://launchpad.net/~dhis2-devs > Post to : [email protected] > Unsubscribe : https://launchpad.net/~dhis2-devs > More help : https://help.launchpad.net/ListHelp >
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

