Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/photos?feature=editors&exclude=Nude applies exclude filter twice and incorrectly returns an array. #214

Open
TrebuhD opened this issue Dec 10, 2016 · 0 comments

Comments

@TrebuhD
Copy link

TrebuhD commented 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.

@TrebuhD 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant