[Home]

Summary:ASTERISK-29960: ari: Retrieving stored recording can returns wrong file
Reporter:Arix (Arix)Labels:
Date Opened:2022-03-09 15:29:57.000-0600Date Closed:2022-03-23 15:08:22
Priority:MajorRegression?
Status:Closed/CompleteComponents:Resources/res_ari_recordings
Versions:19.2.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Attachments:
Description:When two recordings are present, where one name is a substring of another, the {{/recordings/stored/<recordingName>/file}} endpoint returns first name found.

For example, when both "snippet_3" and "snippet_35" are present, "/recordings/stored/snippet_35/file" will return file for "snippet_3", not "snippet_35".
Comments:By: Asterisk Team (asteriskteam) 2022-03-09 15:29:58.584-0600

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. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed.

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].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/].

By: Joshua C. Colp (jcolp) 2022-03-09 15:38:45.415-0600

Are you experiencing this strictly for downloading/retrieving the stored file? Does it happen on playback?

By: Arix (Arix) 2022-03-09 16:23:11.447-0600

Playback is OK - the correct, new recording is being played. So retrieval only. I haven't investigated copying and deleting yet, though.

By: Joshua C. Colp (jcolp) 2022-03-10 04:37:48.679-0600

We require additional debug to continue with triage of your issue. Please follow the instructions on the wiki [1] for how to collect debugging information from Asterisk. For expediency, where possible, attach the debug with a '.txt' file extension so that the debug will be usable for further analysis.

Thanks!

[1] https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information



By: Friendly Automation (friendly-automation) 2022-03-23 15:08:23.262-0500

Change 18194 merged by Friendly Automation:
stasis_recording: Perform a complete match on requested filename.

[https://gerrit.asterisk.org/c/asterisk/+/18194|https://gerrit.asterisk.org/c/asterisk/+/18194]

By: Friendly Automation (friendly-automation) 2022-03-23 18:07:55.622-0500

Change 18206 merged by Kevin Harwell:
stasis_recording: Perform a complete match on requested filename.

[https://gerrit.asterisk.org/c/asterisk/+/18206|https://gerrit.asterisk.org/c/asterisk/+/18206]

By: Friendly Automation (friendly-automation) 2022-03-23 18:08:09.511-0500

Change 18207 merged by Kevin Harwell:
stasis_recording: Perform a complete match on requested filename.

[https://gerrit.asterisk.org/c/asterisk/+/18207|https://gerrit.asterisk.org/c/asterisk/+/18207]

By: Friendly Automation (friendly-automation) 2022-03-23 18:08:20.371-0500

Change 18208 merged by Kevin Harwell:
stasis_recording: Perform a complete match on requested filename.

[https://gerrit.asterisk.org/c/asterisk/+/18208|https://gerrit.asterisk.org/c/asterisk/+/18208]