You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KasperBrandt
changed the title
Unnecessary parameters in API gives MultipleObjectsReturned
Unnecessary parameters in API cause MultipleObjectsReturned
May 12, 2016
API calls for where PK is specified should no longer raise an error when unnecessary query strings are appended to the URL (they are simply ignored). The following pages should both load without issue:
See http://sentry.support.akvo-ops.org/rsr/live/group/887/.
/rest/v1/project_extra/2649/
works fine./rest/v1/project_extra/2649/?partners=1
returns a MultipleObjectsReturned error.In these cases, the parameter should be ignored. There are exceptions though, such as the
limit
parameter (and maybe more?).The text was updated successfully, but these errors were encountered: