NPE when filtering using cursor but no sort
Current develop branch in staging produces error:
https://api.staging.crossref.org/members/311/works?filter=type:journal-article&cursor=*
NPE at cayenne.api.v1.query$with_filters$fn__19308.invoke(query.clj:238)
No error when adding sort:
https://api.staging.crossref.org/works?filter=type:journal-article&sort=references-count&cursor=*
This seems to be related to filtering rather than sorting and cursors. The same error results from https://api.staging.crossref.org/members/311/works?filter=type:journal-article
@dtkaczyk suspects this results from not having any members indexed in staging: https://api.staging.crossref.org/members
This is related to https://gitlab.com/crossref/user_stories/issues/241
Raised from user_stories#169 (closed)
Definition of done
-
Available via a staging URL -
Code reviewed -
Unit tests identified, implemented, and passing -
Public documentation reviewed and updated -
Knowledge base reviewed and updated -
Changes to infrastructure
Edited by Patrick Polischuk