Public bug reported:

Binary package hint: mercurial

Hello
I'm running edgy on AMD64 and mercurial version system (0.9-7)
The "server" hgwebdir.cgi crashes for me whatever I try to browse to on 
http://zingo.homeip.net:8000/hg<whatever>
with this output

-------------------------- cgi output on webserver
AttributeError  Python 2.4.4c0: /usr/bin/python
Sun Aug 20 01:37:47 2006

A problem occurred in a Python script. Here is the sequence of function calls 
leading up to the error, in the order they occurred.
 /home/zingo/projects/src/www/hg/hgwebdir.cgi
   16 # Alternatively you can pass a list of ('virtual/path', '/real/path') 
tuples
   17 # or use a dictionary with entries like 'virtual/path': '/real/path'
   18 
   19 h = hgweb.hgwebdir("hgweb.config")
   20 h.run()
h = <mercurial.hgweb.hgwebdir object>, h.run = <bound method hgwebdir.run of 
<mercurial.hgweb.hgwebdir object>>
 /var/lib/python-support/python2.4/mercurial/hgweb.py in 
run(self=<mercurial.hgweb.hgwebdir object>, req=<mercurial.hgweb.hgrequest 
object>)
 1043             yield tmpl("footer", motd=self.motd, **map)
 1044 
 1045         m = os.path.join(templater.templatepath(), "map")
 1046         tmpl = templater.templater(m, templater.common_filters,
 1047                                    defaults={"header": header,
m undefined, global os = <module 'os' from '/usr/lib/python2.4/os.pyc'>, 
os.path = <module 'posixpath' from '/usr/lib/python2.4/posixpath.pyc'>, 
os.path.join = <function join>, global templater = <module 
'mercurial.templater' from 
'/var/lib/python-support/python2.4/mercurial/templater.pyc'>, 
templater.templatepath = <function templatepath>
 /home/zingo/projects/src/www/hg/posixpath.py in join(a=None, *p=('map',))
   60         if b.startswith('/'):
   61             path = b
   62         elif path == '' or path.endswith('/'):
   63             path +=  b
   64         else:
path = None, path.endswith undefined

AttributeError: 'NoneType' object has no attribute 'endswith'
      args = ("'NoneType' object has no attribute 'endswith'",)

------------------------------------------------------------ Apace
config

#  ServerAdmin [EMAIL PROTECTED]
#  CustomLog logs/access_log.hg combined
#  ErrorLog logs/error_log.hg

  ScriptAlias /hg /home/zingo/projects/src/www/hg/hgwebdir.cgi/

#  RewriteEngine on
#  RewriteRule (.*) /home/zingo/projects/src/www/hg/hgwebdir.cgi$1


  <Directory "/home/zingo/projects/src/www/hg">
    Order allow,deny
    Allow from all
    AllowOverride All
    Options ExecCGI
    AddHandler cgi-script .cgi
  </Directory>

** Affects: mercurial (Ubuntu)
     Importance: Untriaged
         Status: Unconfirmed

** Description changed:

  Binary package hint: mercurial
  
  Hello
- I'm running edgy on AMD64 and mercurial version system 
+ I'm running edgy on AMD64 and mercurial version system (0.9-7)
  The "server" hgwebdir.cgi crashes for me whatever I try to browse to on 
  http://zingo.homeip.net:8000/hg<whatever>
  with this output
  
  -------------------------- cgi output on webserver
  AttributeError        Python 2.4.4c0: /usr/bin/python
  Sun Aug 20 01:37:47 2006
  
  A problem occurred in a Python script. Here is the sequence of function calls 
leading up to the error, in the order they occurred.
   /home/zingo/projects/src/www/hg/hgwebdir.cgi
     16 # Alternatively you can pass a list of ('virtual/path', '/real/path') 
tuples
     17 # or use a dictionary with entries like 'virtual/path': '/real/path'
     18 
     19 h = hgweb.hgwebdir("hgweb.config")
     20 h.run()
  h = <mercurial.hgweb.hgwebdir object>, h.run = <bound method hgwebdir.run of 
<mercurial.hgweb.hgwebdir object>>
   /var/lib/python-support/python2.4/mercurial/hgweb.py in 
run(self=<mercurial.hgweb.hgwebdir object>, req=<mercurial.hgweb.hgrequest 
object>)
   1043             yield tmpl("footer", motd=self.motd, **map)
   1044 
   1045         m = os.path.join(templater.templatepath(), "map")
   1046         tmpl = templater.templater(m, templater.common_filters,
   1047                                    defaults={"header": header,
  m undefined, global os = <module 'os' from '/usr/lib/python2.4/os.pyc'>, 
os.path = <module 'posixpath' from '/usr/lib/python2.4/posixpath.pyc'>, 
os.path.join = <function join>, global templater = <module 
'mercurial.templater' from 
'/var/lib/python-support/python2.4/mercurial/templater.pyc'>, 
templater.templatepath = <function templatepath>
   /home/zingo/projects/src/www/hg/posixpath.py in join(a=None, *p=('map',))
     60         if b.startswith('/'):
     61             path = b
     62         elif path == '' or path.endswith('/'):
     63             path +=  b
     64         else:
  path = None, path.endswith undefined
  
  AttributeError: 'NoneType' object has no attribute 'endswith'
        args = ("'NoneType' object has no attribute 'endswith'",)
  
  ------------------------------------------------------------ Apace
  config
  
  #  ServerAdmin [EMAIL PROTECTED]
  #  CustomLog logs/access_log.hg combined
  #  ErrorLog logs/error_log.hg
  
    ScriptAlias /hg /home/zingo/projects/src/www/hg/hgwebdir.cgi/
  
  #  RewriteEngine on
  #  RewriteRule (.*) /home/zingo/projects/src/www/hg/hgwebdir.cgi$1
  
  
    <Directory "/home/zingo/projects/src/www/hg">
      Order allow,deny
      Allow from all
      AllowOverride All
      Options ExecCGI
      AddHandler cgi-script .cgi
    </Directory>

-- 
edgy: hgwebdir.cgi crashes in posixpath.py line 62 with AttributeError: 
'NoneType' object has no attribute 'endswith'
https://launchpad.net/bugs/56949

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to