Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: bugs

[Bug 1468] New: ApacheConfig.pm generates vhost.conf with typo

 

 

Bricolage bugs RSS feed   Index | Next | Previous | View Threaded


bugs at lists

May 6, 2009, 10:52 AM

Post #1 of 1 (474 views)
Permalink
[Bug 1468] New: ApacheConfig.pm generates vhost.conf with typo

http://bugs.bricolage.cc/show_bug.cgi?id=1468

Summary: ApacheConfig.pm generates vhost.conf with typo
Product: Bricolage
Version: 1.11.1 - Developer Release
Platform: All
OS/Version: All
Status: NEW
Severity: critical
Priority: P3
Component: API
AssignedTo: bugs [at] lists
ReportedBy: ichavero [at] chavero


The module lib/Bric/App/ApacheConfig.pm generates a conf/vhost.conf file with
typo in the AddHandler section when you add the Xinha or htmlArea editors with
the spellchecker option enabled causing a failure in the startup of apache.
This is the error:

Syntax error on line 46 of /usr/local/bricolage/conf/vhosts.conf:
AddHandler requires at least two arguments, a handler name followed by one or
more file extensions
bric_apachectl start: httpd could not be started


the soultion is simple, just elimnate a comma from the AddHandler parts in
lines 442 and 448 of lib/Bric/App/ApacheConfig.pm.

here's a little patch:




--- /usr/src/bricolage-1.11.1/lib/Bric/App/ApacheConfig.pm 2008-09-08
16:20:30.000000000 +0000
+++ lib/Bric/App/ApacheConfig.pm 2009-05-06 17:32:27.000000000 +0000
@@ -439,13 +439,13 @@
push @locs,
' <Location /media/wysiwyg/htmlarea/plugins/SpellChecker>',
' SetHandler None',
- ' AddHandler perl-script,cgi',
+ ' AddHandler perl-script cgi',
' PerlResponseHandler ModPerl::Registry',
' </Location>' if lc WYSIWYG_EDITOR eq 'htmlarea';
push @locs,
' <Location /media/wysiwyg/xinha/plugins/SpellChecker>',
' SetHandler None',
- ' AddHandler perl-script,cgi',
+ ' AddHandler perl-script cgi',
' PerlResponseHandler ModPerl::Registry',
' </Location>' if lc WYSIWYG_EDITOR eq 'xinha';
push @locs,


--
Configure bugmail: http://bugs.bricolage.cc/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

Bricolage bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.