[Home]

Summary:ASTERISK-24883: HTTP max content length - repercussions on ARI service
Reporter:Claudiu Olteanu (claudiuolteanu)Labels:ARI
Date Opened:2015-03-16 03:17:48Date Closed:2015-03-24 17:58:57
Priority:MajorRegression?
Status:Closed/CompleteComponents:Core/HTTP
Versions:13.0.0-beta1 13.0.0-beta2 13.0.0-beta3 13.0.0 13.0.1 13.0.2 13.1.0 13.1.1 13.2.0 Frequency of
Occurrence
Related
Issues:
Environment:Centos 6.5 - x86_64Attachments:
Description:This issue is related to the maximum content length for the body of an application/JSON.

I understand that it was done to provide a sane maximum to prevent an excessively large amount.

This limitation occurs when you want to raise an event to a user or to send a message to an endpoint (using the ARI service) and to attach some information to the body content using the variables parameter.
If the body content length is greater than 4096, then the request will fail because it tries to get the body of the HTTP request using the ast_http_get_contents method which has this restriction. This limitation doesn't happen when you want to retrieve the information about all the endpoints from the system using a GET HTTP request to /endpointsURI, even if the content length of the response is greater than 4096.

In my scenario I use the ARI service to create a subscription service which holds some specific information about the endpoints (information related to the role of the subscriber). When then number of the endpoints is big (~100), then the subscription service fails to send its information to the users because it reaches the restriction of 4K. This is not the only application which uses the ARI application and reaches that limitation.

Therefore I was wondering if you can remove this limitation or make it configurable.

Best wishes,
Claudiu
Comments:By: Rusty Newton (rnewton) 2015-03-24 17:57:30.376-0500

Features requests without patches are not accepted through the issue tracker. Features requests are openly discussed on the mailing lists, forums, and IRC [1]. Please see the Asterisk Issue Guidelines [2] for more information on feature request and patch submission.

[1] http://asterisk.org/community/discuss
[2] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines



By: Rusty Newton (rnewton) 2015-03-24 17:58:47.241-0500

We added the feature request here: https://wiki.asterisk.org/wiki/display/AST/ARI+Feature+Wish-list

I recommend discussing the issue on the asterisk-dev mailing list and once a decision is made about the direction to take, then you can submit a patch or encourage a developer to take the issue on.

Thanks!