[asterisk-bugs] [JIRA] (ASTERISK-27130) Applications ARI: Unsubscribe action for deviceStates does not remove old subscriptions properly

Asterisk Team (JIRA) noreply at issues.asterisk.org
Fri Jul 14 01:59:58 CDT 2017


    [ https://issues.asterisk.org/jira/browse/ASTERISK-27130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=237705#comment-237705 ] 

Asterisk Team commented on ASTERISK-27130:
------------------------------------------

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

> Applications ARI: Unsubscribe action for deviceStates does not remove old subscriptions properly
> ------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-27130
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27130
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    Affects Versions: 14.6.0
>            Reporter: Sergej Kasumovic
>         Attachments: device_state_unsubscribe.diff
>
>
> This was found by a team member while using ARI with Asterisk 14, but it probably affects all versions - 13/14/master. 
> Description is as following:
> * Once you subscribe to deviceState with Applications REST API, it will be added into deviceStateSubscription list and into subscription pool. 
> * When you unsubscribe it will remove from the deviceStateSubscription list but not from the subscription pool. 
> * When you subscribe again, it will add it to pool again. 
> * Now you will have two subscriptions and you will receive same event twice. 
> This fix should now remove deviceState subscription from pool and it should fix unsubscribe on deviceState.
> Attaching patch for quick preview, before pushing to Gerrit. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list