Bug #6650

PUT/POST /voicemails can set max_messages to a negative value

Added by François Blackburn about 2 months ago. Updated about 2 months ago.

Status:Resolved
Priority:Normal
Assignee:François Blackburn
Category:REST API
Target version:17.07
Security issue:No Read documentation?:No
In versions:<= 17.06

Description

When I use REST API, I can set max_messages to a negative value

POST /voicemails
PUT /voicemails/id

Then asterisk return:

[Apr 26 12:58:15] WARNING[21725]: app_voicemail.c:13812 actual_load_config: maxsilence should be less than minsecs or you may get empty messages
[Apr 26 12:58:15] WARNING[21725]: app_voicemail.c:1408 apply_option: Invalid number of messages per folder maxmsg=-555. Using default value 100

Expected: I cannot set to a negative value

History

#1 Updated by François Blackburn about 2 months ago

  • Status changed from New to Code review

#2 Updated by Pascal Cadotte-Michaud about 2 months ago

  • Status changed from Code review to Resolved

Also available in: Atom PDF