[asterisk-bugs] [Asterisk 0012198]: Make Asterisk-trunk handle 'prefix' in httpd.conf as 1.4 does.

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Mar 26 14:55:22 CDT 2008


The following issue requires your FEEDBACK. 
====================================================================== 
http://bugs.digium.com/view.php?id=12198 
====================================================================== 
Reported By:                bkruse
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   12198
Category:                   Core/HTTP
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 107998 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             03-12-2008 12:00 CDT
Last Modified:              03-26-2008 14:55 CDT
====================================================================== 
Summary:                    Make Asterisk-trunk handle 'prefix' in httpd.conf as
1.4 does.
Description: 
In Asterisk 1.4, including BE and builds on the AA50, if the 'prefix'
variable in http.conf is not set, then that means there is no prefix.

(For example http://bkruse/static/config/cfgbasic.html)

And if prefix=testing, the above example would be:

http://bkruse/testing/static/config/cfgbasic.html

By default, in all places, we do NOT set a prefix. We do this so the link
will be shorter, easier to remember, and not easily changed. That is just
how it is.

In Trunk, however, if prefix is NOT set in http.conf, then the
ast_http_post_mapping to /var/lib/asterisk/static-http/config is never made
because it return's NULL, as seen here:

        if (!ast_strlen_zero(prefix) && strncmp(prefix, uri,
strlen(prefix))) {
                ast_debug(1, "URI %s does not have prefix %s\n", uri,
prefix);
                return NULL;
        }


====================================================================== 

---------------------------------------------------------------------- 
 bkruse - 03-26-08 14:55  
---------------------------------------------------------------------- 
Will triple check with trunk right now, but I believe the problem was never
fully fixed.

I mentioned this to russell on IRC, but did not take the right path to
getting it fixed, which is to keep track of bugs in the.....bug tracker :]


-bk 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-26-08 14:55  bkruse         Note Added: 0084621                          
03-26-08 14:55  bkruse         Status                   closed => feedback  
======================================================================




More information about the asterisk-bugs mailing list