Skip to content

Addon Validation Error: value equal null #2834

Description

@lidel

Information

Tried to upload fennec version for android:
ipfs_companion_beta_aeecbb5_-2.8.4.824_fennec.zip

Got error without any explanation:

Screenshot_2019-09-19 Validation Results for ipfs_companion_beta_aeecbb5_-2 8 4 824_fennec zip Developer Hub Add-ons for Fi

Bug?

I think it is because of "incognito": null in manifest.json. Addon loads fine into Firefox, however addons-linter does not support null keys and returns an error:

$ web-ext lint
Applying config files: ./package.json, ./web-ext-config.js
Cannot convert undefined or null to object

TypeError: Cannot convert undefined or null to object
    at hasOwnProperty (<anonymous>)
    at ManifestJSONParser.call [as checkCompatInfo] (/home/lidel/project/ipfs-companion/node_modules/addons-linter/dist/webpack:/src/parsers/manifestjson.js:153:43)
    at ManifestJSONParser.checkCompatInfo [as _validate] (/home/lidel/project/ipfs-companion/node_modules/addons-linter/dist/webpack:/src/parsers/manifestjson.js:401:16)
    at new _validate (/home/lidel/project/ipfs-companion/node_modules/addons-linter/dist/webpack:/src/parsers/manifestjson.js:94:12)
    at Linter._callee$ (/home/lidel/project/ipfs-companion/node_modules/addons-linter/dist/webpack:/src/linter.js:255:30)
    at tryCatch (/home/lidel/project/ipfs-companion/node_modules/regenerator-runtime/runtime.js:45:40)
    at Generator.invoke [as _invoke] (/home/lidel/project/ipfs-companion/node_modules/regenerator-runtime/runtime.js:271:22)
    at Generator.prototype.(anonymous function) [as next] (/home/lidel/project/ipfs-companion/node_modules/regenerator-runtime/runtime.js:97:21)
    at asyncGeneratorStep (/home/lidel/project/ipfs-companion/node_modules/addons-linter/dist/webpack:/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:1)
    at _next (/home/lidel/project/ipfs-companion/node_modules/addons-linter/dist/webpack:/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:1)

Solution?

I think null values should be allowed, it is a valid JSON.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions