addons
addons copied to clipboard
Custom Licence name returns null for requests made in a locale different from the original set-up
Similar to https://github.com/mozilla/addons/issues/5266
STR:
- Submit a new add-on while your locale is set to
en-GB - In the submission details flow, add a Custom Licence with a name of your choice
- After the add-on is auto-approved, get the api details of your add-on in
en-US, i.e https://addons-dev.allizom.org/api/v4/addons/addon/{your-addon}/?lang=en-US - Check the
"license": {..."name"value
Actual result:
The license name is null
Expected result:
The license name should contain the value given by you during submission, regardless of the locale in which the request was made
Notes:
- example https://addons-dev.allizom.org/api/v4/addons/addon/greatly-for-firefox/?lang=en-US

As seen on the frontend:

┆Issue is synchronized with this Jira Task
Yes, this is not a new issue. The root cause is similar to https://github.com/mozilla/addons/issues/4000 - the model doesn't have a default_locale, and if it did it wouldn't necessarily follow the add-on's default_locale either, so that messes up cases like these.
This issue has been automatically marked as stale because it has not had recent activity. If you think this bug should stay open, please comment on the issue with further details. Thank you for your contributions.
This is still a valid issue
This issue has been automatically marked as stale because it has not had recent activity. If you think this bug should stay open, please comment on the issue with further details. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. If you think this bug should stay open, please comment on the issue with further details. Thank you for your contributions.
Still an issue
Old Jira Ticket: https://mozilla-hub.atlassian.net/browse/ADDSRV-172
Old Jira Ticket: https://mozilla-hub.atlassian.net/browse/ADDSRV-172