<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>133530</bug_id>
          
          <creation_ts>2006-05-16 13:03 0000</creation_ts>
          <short_desc>app-admin/webapp-config - typo in WebappConfig/config.py</short_desc>
          <delta_ts>2006-12-31 02:47:34 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>Peter.Werner@freemail.hu</reporter>
          <assigned_to>web-apps@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>Peter.Werner@freemail.hu</who>
            <bug_when>2006-05-16 13:03:54 0000</bug_when>
            <thetext>Expception instead of Exception

grep -n Expception /usr/lib64/python2.4/site-packages/WebappConfig/config.py
607:        except Expception, e:

You don&apos;t get the error message below but the python backtrace in case of one configuration error.

* Fatal error: You did specify an invalid permission value for the variable &quot;vhost_perms_virtualowned_file&apos;
* Fatal error(s) - aborting

(previous versions accepted &quot;o=&quot; noew you need a hack: &quot;o-rwx&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>martijn@mindconnect.nl</who>
            <bug_when>2006-05-27 11:09:15 0000</bug_when>
            <thetext>Confirmed, I&apos;ve got the same problem here.

vhost_perms_virtualowned_file was set to &quot;o-w&quot; when the problem occurred.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>martijn@mindconnect.nl</who>
            <bug_when>2006-08-17 13:51:03 0000</bug_when>
            <thetext>Could anyone please pick this one up? It&apos;s been 3 months now and this keeps me from updating my Squirrelmail.

The hack suggested by P</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>martijn@mindconnect.nl</who>
            <bug_when>2006-08-17 13:51:03 0000</bug_when>
            <thetext>Could anyone please pick this one up? It&apos;s been 3 months now and this keeps me from updating my Squirrelmail.

The hack suggested by Péter doesn&apos;t work for me btw.

Here&apos;s what I get:
---
(hostname) squirrelmail # webapp-config --upgrade -d squirrelmail/ squirrelmail 1.4.8
* Upgrading squirrelmail-1.4.5 to squirrelmail-1.4.8
*   Installed by root on 2005-10-12 22:38:15
*   Config files owned by apache:apache
Traceback (most recent call last):
  File &quot;/usr/sbin/webapp-config&quot;, line 44, in ?
    main()
  File &quot;/usr/sbin/webapp-config&quot;, line 41, in main
    config.run()
  File &quot;/usr/lib64/python2.4/site-packages/WebappConfig/config.py&quot;, line 1209, in run
    old[&apos;WEB_PVR&apos;]).upgrade(self.config.get(&apos;USER&apos;, &apos;pn&apos;),
  File &quot;/usr/lib64/python2.4/site-packages/WebappConfig/config.py&quot;, line 1304, in create_server
    self.create_permissions(),
  File &quot;/usr/lib64/python2.4/site-packages/WebappConfig/config.py&quot;, line 1310, in create_permissions
    return {&apos;file&apos; : {&apos;virtual&apos; :      [self.get_user(&apos;vhost_default_uid&apos;),
  File &quot;/usr/lib64/python2.4/site-packages/WebappConfig/config.py&quot;, line 607, in get_perm
    except Expception, e:
NameError: global name &apos;Expception&apos; is not defined
(hostname) squirrelmail # 
---

The configfile worked for several updates using webapp-config before the error occured for the first time.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rl03@gentoo.org</who>
            <bug_when>2006-08-17 14:07:15 0000</bug_when>
            <thetext>wrobel?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Peter.Werner@freemail.hu</who>
            <bug_when>2006-08-17 14:20:57 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; Could anyone please pick this one up? It&apos;s been 3 months now and this keeps me
&gt; from updating my Squirrelmail.

Fixing this bug will not let you update squirrelmail just lets you get the nice error message.

You can fix it by replacing &quot;Expception&quot; to &quot;Exception&quot; in /usr/lib64/python2.4/site-packages/WebappConfig/config.py line 607, really trivial.

Also you could attach your /etc/vhosts/webapp-config here and I might find out your problem.  However it does not exactly belong to this bug.  On the other hand it can help people searching the bug database.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>martijn@mindconnect.nl</who>
            <bug_when>2006-08-17 15:31:49 0000</bug_when>
            <thetext>Thanks for your reply.

I now understand that my problem is related to some configuration-error.

Since I didn&apos;t really do anything wierd to my configuration I guess there are more people out there having the same problem (although it&apos;s strange nobody else posted here to confirm that).

I will post my configuration and if the problem isn&apos;t clear immediately, I will post it on the forums to have it solved there. My webapp-config is as follows:
---
vhost_root=&quot;/var/www/${vhost_hostname}&quot;
vhost_hostname=&quot;localhost&quot;

vhost_server=&quot;apache&quot;
vhost_config_default_dirs=&quot;default-owned&quot;
vhost_config_virtual_files=&quot;virtual&quot;
vhost_config_dir=&quot;${vhost_root}/conf&quot;

vhost_default_uid=&quot;websites&quot;
vhost_default_gid=&quot;users&quot;

vhost_htdocs_insecure=&quot;htdocs&quot;
vhost_htdocs_secure=&quot;htdocs-secure&quot;

vhost_perms_serverowned_dir=755
vhost_perms_serverowned_file=644

vhost_perms_configowned_dir=755
vhost_perms_configowned_file=640

vhost_perms_defaultowned_dir=&quot;0755&quot;
vhost_perms_virtualowned_file=&quot;o-w&quot;

vhost_perms_installdir=&quot;0755&quot;

WA_CONF_VERSION=&quot;7&quot;
---
I&apos;m running the latest version of webapp-config, v1.50.13.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Peter.Werner@freemail.hu</who>
            <bug_when>2006-08-17 23:59:25 0000</bug_when>
            <thetext>(In reply to comment #5)

Your problem is not obvious to me.  I created a forum thread for your problem:
http://forums.gentoo.org/viewtopic-p-3518985.html</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wrobel@gentoo.org</who>
            <bug_when>2006-12-31 02:47:34 0000</bug_when>
            <thetext>Fixed in webapp-config-1.50.16. This version is available from my overlay (http://overlays.gentoo.org/dev/wrobel) and will be moved to portage next week.

Thanks for the report and the fix!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>