[NSI data plugin] Internal error when invalid dimension code provided in query filter
En error occurs in DimPredicate when an inavlid code is passed in the filter and Internal Error is displayed. This occurs when only invalid code is provided, but also happens when any of the codes are invalid (see the exaples below).
RI implementation ignores the invalid codes if there are at least one valid one for a dimension, and acts like only the valid ones were provided. But in case there are only invalid codes, returns 404 Not found error.
Question to clarify before fixing the issue: Is the RI behaviour OK, or should we raise error in case of invalid code in query filter expression?
Examples from DotStatV8 (AA is the inavlid code)
Examples from RI (FF is the invalid code)
First work done as of 06/01/2018 and remaining work status
- Jens opened an issue at the SDMX-TWG: https://github.com/sdmx-twg/sdmx-rest/issues/64
- In Dotstat data plugin, the issue is still present, the error is “500 Internal server error”.
- RI implementation: we can be almost sure that the NSI WS behaves the same way. This needs to be checked and if this issue is still present in their implementation, then a JIRA ticket should be created for ESTAT.