Bug 30919 - mod_info failed to show all info
Summary: mod_info failed to show all info
Status: CLOSED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_info (show other bugs)
Version: 2.1-HEAD
Hardware: All All
: P3 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL: http://rici.ricilake.net/src/mod_info.c
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2004-08-28 22:02 UTC by Rici Lake
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments
patch for mod_info (head) (7.31 KB, patch)
2004-08-28 22:04 UTC, Rici Lake
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rici Lake 2004-08-28 22:02:17 UTC
In the scan of sub-config trees, mod_info sometimes seems to lose track of where it was, failing to 
provide all information and/or scrambling the </close> tags. This seems particularly evident in 
<VirtualHost> sections.

The easiest way to fix it seemed to be to rewrite the tree scan recursively; the enclosed patch 
implements that, as well as correctly indenting subsection headers and allowing for indentation nesting  
of more than two levels.

It also implements a new feature: ?config simply dumps the entire configuration tree without sorting it 
into modules. I left the indentation incorrect in the second part in order to avoid adding 130 specious 
lines to the patch.

The file in the url is the complete mod_info.c, detabbed and indented properly
Comment 1 Rici Lake 2004-08-28 22:04:00 UTC
Created attachment 12561 [details]
patch for mod_info (head)
Comment 2 Paul Querna 2004-09-03 02:33:44 UTC
A Patch based on the one here has been committed to CVS HEAD / 2.1.0.

Thanks for the Patch,

-Paul Querna