Rapache crashes and cannot restart if favicon is 0 bytes

Bug #1097055 reported by David Gurba
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Remote Apache Management tool
New
Undecided
Unassigned

Bug Description

Rapache has been working great (I've commented on the blog before that its working in 12.04). I'm not 100% sure I'm running the latest code. But, I was debugging a site and got annoyed with log messages about a missing favicon from Apache.

So I just did `touch favicon.ico` so Apache would stop complaining, it does.

Rapache though appears to not like this because its trying to load a favicon that doesnt exist and crashes. At the CLI I get:
reloading vhosts..
Traceback (most recent call last):
  File "/home/dgurba/apps/rapache/RapacheGtk/VirtualHostGui.py", line 525, in on_button_save_clicked
    self.parent.refresh_vhosts()
  File "/home/dgurba/apps/rapache/RapacheGtk/RapacheGui.py", line 381, in refresh_vhosts
    self.vhosts_treeview.load()
  File "/home/dgurba/apps/rapache/RapacheGtk/VhostsTreeView.py", line 73, in load
    pixbuf = gtk.gdk.pixbuf_new_from_file( favicon )
glib.GError: Image file '/var/www/2013/debug/projects/eap-live-01042013/www/favicon.ico' contains no data
Errors status: -1

And the GUI paints the vhost list upto the alphabetical ordinal of the vhost in question, then stops painting the table list.

I was able to fix it on my end by just getting a valid favicon file -- but my "sysadmin" hack of an empty favicon shouldnt hose Rapache.

I use Rapache daily as my lean MAMP Dashboard or OSX VirtualHostX linux admin UI. It's great, thanks for all the work.

Revision history for this message
David Gurba (webdev-r) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.