Open davidjeddy opened 8 years ago
Check Your syntax of JSON file. Can you share the Module.json file to check
I am aware it IS the module.json; my issue is HumHub admin logic should validate the json before attempting to render the admin/module/list. 'Never trust user input', even if that user is a 3rd party module.
Is there an official json schema for the module.json file?
Is there an official json schema for the module.json file?
Yes
{
"id": "example",
"version": "1.0",
"name": "My Example Module",
"description": "My testing module.",
"humhub": {
"minVersion": "1.2",
"maxVersion": "2.0"
},
"keywords": ["my", "cool", "module"],
"screenshots": ["assets/screen_1.jpg"],
"homepage": "https://www.example.com",
"authors": [
{
"name": "Tom Coder",
"email": "tc@example.com",
"role": "Developer"
},
{
"name": "Sarah Mustermann",
"email": "sm@example.com",
"homepage": "http://example.com",
"role": "Translator"
}
]
}
Suggest: check json of a module before loading it into the module list.
Stack dump: