Ticket #5657 (new Bugs)

Opened 1 year ago

Last modified 1 month ago

Wrong debug information displayed

Reported by: jasb Assigned to:
Priority: minor Milestone: 2.12
Component: User Portal Version: 2.10-branch
Keywords: Cc:
Confirmation: Need Feedback Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

Howdy,

I had a problem after install when I was testing call recording, I had it set ulaw, and when I entered the user portal, I get a "404 file not found!", I looked at source, and in file "recordings/misc/audio.php", I saw that there's some allowed formats, and ulaw isn't there.

On the switch on this audio.php file:

switch( $extension ) { case "mp3": $ctype="audio/mpeg"; break; case "wav": $ctype="audio/x-wav"; break; case "Wav": $ctype="audio/x-wav"; break; case "WAV": $ctype="audio/x-wav"; break; case "gsm": $ctype="audio/x-gsm"; break;

// not downloadable default: die($extension . "<b>404 File not found!</b>"); break ;

the "404 file not found" should be another information, more like "format not supported". Or it it's supported, just add the correct mime type for it (if possible for ulaw/alaw etc).

I spent about 4 days with this think 'cause of the 404 not found :-)

Jorge,

Change History

03/06/12 17:00:08 changed by jasb

the line:

default: die($extension . "<b>----------404 File not found!</b>");

has some more info 'cause some debug I've made, the default it:

default: die("<b>----------404 File not found!</b>"); break ;

03/06/12 17:28:48 changed by p_lindheimer

  • priority changed from blocker to minor.
  • confirmation changed from Unreviewed to Need Feedback.

do you have a browser plugin or codec that will play ulaw and if so what are you playing it on? Last that was updated it was done so to handle codecs that could be played in the browser and standard plugins such as quicktime and others.

03/06/12 17:32:04 changed by jasb

No codec for ulaw at least.

But the returning message should be changed, to not return "404 not found", since it's more a "codec/format not supported".

See my point? It's more a matter of better understanding of the message.

11/18/12 00:03:16 changed by tm1000

  • milestone changed from 2.11 to 2.12.

05/08/13 18:55:40 changed by miken32

The code is looking for a particular file, which isn't found. The type of file it's looking for is determined by the user's settings to be one of "gsm", "WAV", or "wav"; "ulaw" is not an option.

Technically, the error message referred to in the original report should never be seen by anyone; the error seen was probably earlier in the code, and again was caused by a specific file not being found.

tl;dr - Ticket should be closed as invalid.