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
For 8 characters hex strings, cut the last 2 chars (that represent transparency, which is not relevant here) and try to parse it
Anything else that doesn't look like a valid color we should return a 400 error with an error message explaining that we expect a 6 chars hex string color code.
What happened?
When using the
color
parameter in the add-ons search API, we don't handle the following cases well:color
parameter https://addons-dev.allizom.org/api/v5/addons/search/?type=statictheme&color=color
parameter like 8-characters hex colors https://addons-dev.allizom.org/api/v5/addons/search/?type=statictheme&color=336699aahttps://mozilla.sentry.io/issues/5802087597/?project=6310819
What did you expect to happen?
We should:
color
, ignore the parameter completelyIs there an existing issue for this?
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: