koopjs / koop-provider-marklogic

A Koop Provider that can be used to exposed data in MarkLogic via Esri feature services
https://koopjs.github.io/koop-provider-marklogic/
Other
6 stars 11 forks source link

Server error when being queried for a layer by ArcGIS Pro #63

Closed mfgumban closed 6 years ago

mfgumban commented 6 years ago

Koop does not properly respond when you create a feature layer in ArcGIS Pro that references one of the feature server's layers. This happens when Koop receives a FeatureServer/{layer}/query request. Koop receives the following response from MarkLogic: "message": "OPTIC-INVALARGS: Invalid arguments: empty string for column name"

mfgumban commented 6 years ago

The issue arises when the orderByFields request value contains leading whitespace where it eventually gets incorrectly parsed.

Koop itself has its own issue with leading whitespace, which is already resolved by the upgrade to v3.5.4: #316.