[21.15] ring group creation fails with error "MOH was not found ('music_on_hold': 'None')"

Done

Description

On a fresh install of Wazo Community 21.15, when I try to create a ring group via the web interface, I get the following error in a red banner:

group: Input error
^ Details
POST http://localhost:9486/1.1/groups: ["Input Error - field 'music_on_hold': MOH was not found ('music_on_hold': 'None')"]

In /var/log/wazo-confd.log, I have:

2021-11-22 19:52:41,067 [25792] (INFO) (flask.app): request: POST http://localhost:9486/1.1/groups {'Host': 'localhost:9486', 'Accept-Encoding': 'identity', 'Connection': 'close', 'X-Auth-Token': 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXd3c48c7d', 'Wazo-Tenant': '7fdcfd4e-dd89-4a88-965b-f2c54836ba81', 'User-Agent': 'wazo-ui', 'Accept': 'application/json', 'Content-Type': 'application/json', 'Content-Length': '564'} with data {"label": "test2", "extensions": [{"exten": "42", "context": "default"}], "ring_in_use": false, "members": {"user_uuids": [
"c4915568-3e13-435e-95eb-e10e09aaa50b", "273b4397-e8ca-4cbf-9fff-ade093c80d26"], "users": [{"uuid": "c4915568-3e13-435e-95eb-e10e09aaa50b"}, {"uuid": "273b4397-e8ca-4cbf-9fff-ade093c80d26"}]}, "extensions_members": [], "fallbacks": {"busy_destination": {}, "congestion_destination": {}, "fail_destination": {}, "noanswer_destination": {}}, "schedules": [{}], "call_permissions": [], "mark_answered_elsewhere": false, "music_on_hold": "None"}
2021-11-22 19:52:41,441 [25792] (ERROR) (wazo_confd.helpers.common): Input Error - field 'music_on_hold': MOH was not found ('music_on_hold': 'None')

Due to this error, I can't create a ring group via the web interface!

Zendesk Ticket IDs

None

Activity

Alexis de Lattre 
November 25, 2021 at 5:25 PM

Thanks for your reactivity on this bug report!

Alexandre Fournier 
November 25, 2021 at 2:00 PM

Thank you ! It is indeed a regression, we added a check to see if the MOH exists in 21.15. This must have slipped through

Alexis de Lattre 
November 24, 2021 at 6:17 PM

This bug doesn’t happen on Wazo 21.14. When I create a ring group via the web interface on wazo 21.14 with nothing in the music on hold field, the following JSON is sent:

{"id": 3, "uuid": "c76c4d5c-0372-4b52-b718-e945c2601883", "tenant_uuid": "794d8ce4-3deb-4f66-8988-0b5545aaa616", "name": "grp-mycompany-c76c4d5c-0372-4b52-b718-e945c2601883", "label": "alexistest2", "preprocess_subroutine": null, "ring_strategy": "all", "caller_id_mode": null, "caller_id_name": null, "timeout": null, "user_timeout": 15, "retry_delay": 5, "music_on_hold": "None", "ring_in_use": false, "mark_answered_elsewhere": false, "enabled": true, "links": [{"rel": "groups", "href": "http://localhost:9486/1.1/groups/c76c4d5c-0372-4b52-b718-e945c2601883"}], "extensions": [], "fallbacks": {"noanswer_destination": null}, "incalls": [], "schedules": [], "call_permissions": [], "members": {"users": [], "extensions": []}}

 

and the ring group created.

Details

Priority

Assignee

Reporter

Approvers

Alexandre Fournier

Fix versions

Sprint

Zendesk Support

Created November 23, 2021 at 3:09 PM
Updated March 18, 2024 at 11:37 AM
Resolved November 25, 2021 at 2:47 PM