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
It seems that the /photos?feature=editors endpoint initializes the exclude property with value "4" (the filter code for the "Nude" category) for every request automatically.
This is fine, but when we then try passing the exclude filter explicitly via query, it appends the passed value to the already initialized variable and it ends up like this:
This breaks parsing exclude as String (ex. with gson). AFAIK the other feature endpoints don't behave like this.
The text was updated successfully, but these errors were encountered:
TrebuhD
changed the title
/photos?feature=editors&exclude=Nude incorrectly applies exclude filter and returns an array instead of object.
/photos?feature=editors&exclude=Nude applies exclude filter twice and incorrectly returns an array.
Dec 10, 2016
It seems that the
/photos?feature=editors
endpoint initializes the exclude property with value "4" (the filter code for the "Nude" category) for every request automatically.This is fine, but when we then try passing the exclude filter explicitly via query, it appends the passed value to the already initialized variable and it ends up like this:
"filters": { "category": false, "exclude": [ 4, 4 ] },
This breaks parsing exclude as String (ex. with gson). AFAIK the other feature endpoints don't behave like this.
The text was updated successfully, but these errors were encountered: