[asterisk-bugs] [Asterisk 0016688]: [patch] Console documentation not loaded from XML

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Feb 16 02:31:13 CST 2010


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16688 
====================================================================== 
Reported By:                bklang
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16688
Category:                   Core/PBX
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Target Version:             1.6.1.16
Asterisk Version:           SVN 
JIRA:                       SWP-792 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.2 
SVN Revision (number only!): 242606 
Request Review:              
====================================================================== 
Date Submitted:             2010-01-24 23:52 CST
Last Modified:              2010-02-16 02:31 CST
====================================================================== 
Summary:                    [patch] Console documentation not loaded from XML
Description: 
On a fresh install of Asterisk I was unable to load the console
documentation from the core-en_US.xml file.  This results in CLI commands
such as "core show application Dial" displaying error messages.

I noticed the following log messages when starting asterisk:
I/O warning : failed to load external entity
"/var/opt/asterisk/documentation{/thirdparty/,/}*-{en_US,en_??,en_US}.xml"
[Jan 25 00:21:54] ERROR[2951]: xmldoc.c:1830
ast_xmldoc_load_documentation: Could not open XML documentation at
'/var/opt/asterisk/documentation{/thirdparty/,/}*-{en_US,en_??,en_US}.xml'

The first line (without the timestamp) comes from libxml2.  The second
line (beginning with ERROR[2951]) is from main/xmldoc.c.

The problem appears to be that the preceding glob() call around line 1801
is not actually expanding the list of possible files.  This results in the
glob string itself being passed as the filename back to libxml2 and no XML
documentation is loaded.


======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0016689 [patch] Crash in res_agi when trying to...
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-02-16 02:31 wdoekes        Summary                  Console documentation
not loaded from XML => [patch] Console documentation not loaded from XML
======================================================================




More information about the asterisk-bugs mailing list