Bug#231423: apache2-doc: multi-language negociation not working - wrong filenames

2004-02-06 Thread Marc Cromme
Package: apache2-doc
Version: 2.0.47-1
Severity: important
Tags: patch

After installing apache2-doc, the multi-language negociation does not work 
out of the box in the /var/www/apache2-default/manual directory and it's 
subdirectories.


As far as I can see, it's the wrong filename which makes the problems:
for example surfing into 

http://localhost/apache2-default/manual/index.html

gives the output

URI: index.html.de Content-Language: de Content-type: text/html; 
charset=ISO-8859-1 
URI: index.html.en Content-Language: en Content-type: text/html; 
charset=ISO-8859-1 
URI: index.html.ja.jis Content-Language: ja Content-type: text/html; 
charset=ISO-2022-JP 
URI: index.html.ko.euc-kr Content-Language: ko Content-type: text/html; 
charset=EUC-KR 
URI: index.html.ru.koi8-r Content-Language: ru Content-type: text/html; 
charset=KOI8-r

However, renaming index.html to index.var and surfing into (the non-existent)

http://localhost/apache2-default/manual/index.html

gives the correct language-depending result.

This change must be applied to all negociacion files, that is 

*.html --> *.var

in all dirs.

I suspect that similar applies to all *.xml files, but I do not know yet. 

Furthermore, 
The following wrong file permissions are found in this package:

-rwxr-xr-x1 root root  277 Jul  5  2003 urlmapping.html
-rwxr-xr-x1 root root18980 May 29  2003 urlmapping.html.en
-rwxr-xr-x1 root root20544 May 29  2003 urlmapping.html.ja.jis

please check also all these subdirs for the same errors.

drwxr-xr-x2 root root 4096 Feb  6 12:44 developer
drwxr-xr-x2 root root 4096 Feb  6 12:44 faq
drwxr-xr-x2 root root 4096 Feb  6 12:44 howto
drwxr-xr-x2 root root 4096 Feb  6 12:44 images
drwxr-xr-x2 root root 4096 Feb  6 12:44 misc
drwxr-xr-x2 root root12288 Feb  6 12:44 mod
drwxr-xr-x2 root root 4096 Feb  6 12:44 platform
drwxr-xr-x2 root root 4096 Feb  6 12:44 programs
drwxr-xr-x2 root root 4096 Feb  6 12:44 search
drwxr-xr-x2 root root 4096 Feb  6 12:44 ssl
drwxr-xr-x   10 root root 4096 Feb  6 12:44 style
drwxr-xr-x2 root root 4096 Feb  6 12:44 vhosts


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux cromme 2.4.24-1-386 #1 Tue Jan 6 19:18:04 EST 2004 i686
Locale: LANG=C, LC_CTYPE=C

-- no debconf information





Bug#227664: apache2-common: update-apache2-modules is broken python script

2004-01-14 Thread Marc Cromme
Package: apache2-common
Version: 2.0.47-1
Severity: normal

The update-apache2-modules debian python script is crashing like this:

sudo  update-apache2-modules --list mod_info

Traceback (most recent call last):
  File "/usr/sbin/update-apache2-modules", line 79, in ?
main()
  File "/usr/sbin/update-apache2-modules", line 51, in main
modhandler.dolist()
  File "/usr/sbin/modhandler.py", line 63, in dolist
modregistry = shelve.open("/var/lib/apache2/modules")
  File "/usr/lib/python2.3/shelve.py", line 231, in open
return DbfilenameShelf(filename, flag, protocol, writeback, binary)
  File "/usr/lib/python2.3/shelve.py", line 212, in __init__
Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback, 
binary)
  File "/usr/lib/python2.3/anydbm.py", line 83, in open
return mod.open(file, flag, mode)
  File "/usr/lib/python2.3/dbhash.py", line 16, in open
return bsddb.hashopen(file, flag, mode)
  File "/usr/lib/python2.3/bsddb/__init__.py", line 192, in hashopen
d.open(file, db.DB_HASH, flags, mode)
bsddb._db.DBNoSuchFileError: (2, 'No such file or directory')
Exception exceptions.AttributeError: "DbfilenameShelf instance has no attribute 
'writeback'" in  ignored

Similary, the following fails:

 sudo  update-apache2-modules --add mod_info

Traceback (most recent call last):
  File "/usr/sbin/update-apache2-modules", line 79, in ?
main()
  File "/usr/sbin/update-apache2-modules", line 43, in main
modhandler.add(**args)
TypeError: add() argument after ** must be a dictionary

This one as well:

sudo  update-apache2-modules --enable mod_info

Turning mod_info on, babee!

Traceback (most recent call last):
  File "/usr/sbin/update-apache2-modules", line 79, in ?
main()
  File "/usr/sbin/update-apache2-modules", line 47, in main
modhandler.enable(args[0])
  File "/usr/sbin/modhandler.py", line 90, in enable
modregistry = shelve.open("/var/lib/apache2/modules")
  File "/usr/lib/python2.3/shelve.py", line 231, in open
return DbfilenameShelf(filename, flag, protocol, writeback, binary)
  File "/usr/lib/python2.3/shelve.py", line 212, in __init__
Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback, 
binary)
  File "/usr/lib/python2.3/anydbm.py", line 83, in open
return mod.open(file, flag, mode)
  File "/usr/lib/python2.3/dbhash.py", line 16, in open
return bsddb.hashopen(file, flag, mode)
  File "/usr/lib/python2.3/bsddb/__init__.py", line 192, in hashopen
d.open(file, db.DB_HASH, flags, mode)
bsddb._db.DBNoSuchFileError: (2, 'No such file or directory')
Exception exceptions.AttributeError: "DbfilenameShelf instance has no attribute 
'writeback'" in  ignored


Finally, there is no man page, and the output 
sudo  update-apache2-modules --help
Debian update-apache2-modules 0.5
Copyright (C) 2002 Thom May, under the BSD license.


usage: update-apache2-modules --add  [  ]
   update-apache2-modules --remove 
   update-apache2-modules --enable 
   update-apache2-modules --disable 
   update-apache2-modules --list 

   is the name of the module
 is used to decide the order the modules are loaded in.
   The default if no sequence number is specified is 99
is used to determine whether the module should be 
   disabled (the default) or enabled on addition.
  signifies any dependencies the module might have

is not very helpful on the syntax - should I invoke with

sudo  update-apache2-modules --enable mod_info  or with
sudo  update-apache2-modules --enable info  ???
 

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux cromme 2.4.20-knoppix #1 Mon Jun 2 10:20:36 CEST 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages apache2-common depends on:
ii  debconf 1.3.22   Debian configuration management sy
ii  debianutils 2.6.1Miscellaneous utilities specific t
ii  libapr0 2.0.47-1 The Apache Portable Runtime
ii  libc6   2.3.2.ds1-10 GNU C Library: Shared libraries an
ii  libdb4.14.1.25-10Berkeley v4.1 Database Libraries [
ii  libexpat1   1.95.6-6 XML parsing C library - runtime li
ii  libldap22.1.23-1 OpenLDAP libraries
ii  libssl0.9.7 0.9.7c-5 SSL shared libraries
ii  mime-support3.23-1   MIME files 'mime.types' & 'mailcap
ii  net-tools   1.60-8   The NET-3 networking toolkit
ii  openssl 0.9.7c-5 Secure Socket Layer (SSL) binary a
ii  zlib1g  1:1.2.1-3compression library - runtime

-- no debconf information