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

Limit extensions id to 255 characters max (matches addons-server database limit) #2643

Merged
merged 3 commits into from
Jun 20, 2019

Conversation

diox
Copy link
Member

@diox diox commented Jun 13, 2019

Fixes #2642

@diox diox requested a review from EnTeQuAk June 14, 2019 08:05
it('should fail on id longer than 255 characters', () => {
const addonLinter = new Linter({ _: ['bar'] });
const json = validManifestJSON({
applications: { gecko: { id: `@${'a'.repeat(255)}` } }, // 256 chars
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind documenting here, that we don't have to care about unicode validation as this is handled by the schema as well?

@diox diox merged commit 6b26308 into mozilla:master Jun 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disallow submissions with a guid > 255 characters
2 participants