Package: destar
Version: 0.0.169-1
Severity: normal

Whenever I visit the logger options: http://localhost:8080/config/edit/1
page after restarting destar, I get the following python traceback.

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/quixote/publish.py", line 522, in 
process_request
    output = self.try_publish(request, env.get('PATH_INFO', ''))
  File "/usr/lib/python2.3/site-packages/quixote/publish.py", line 444, in 
try_publish
    self.namespace_stack)
  File "/usr/lib/python2.3/site-packages/quixote/publish.py", line 696, in 
_traverse_url
    namespace_stack)
  File "/usr/lib/python2.3/site-packages/quixote/publish.py", line 801, in 
_get_component
    object = container._q_lookup(request, component)
  File "/usr/share/destar/python/page_config_edit.ptl", line 40, in _q_lookup
    return configletsForm(request, obj, _(obj.shortName), exitPath = "../" + 
obj.groupName.lower())
  File "/usr/share/destar/python/ConfigHelper.ptl", line 219, in configletsForm
    if v.optional and opts[0][0]:
IndexError: string index out of range

Form:

Cookies:

Environment:
ACCEPT_ENCODING gzip,deflate
CONTENT_LENGTH  0
CONTENT_TYPE    
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT     
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHARSET UTF-8,*
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_CONNECTION keep-alive
HTTP_COOKIE     
HTTP_HOST       localhost:8080
HTTP_KEEP_ALIVE 300
HTTP_REFERER    
HTTP_USER_AGENT Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) 
Gecko/20050802 Galeon/1.3.21 (Debian package 1.3.21-6)
PATH_INFO       /config/edit/1
QUERY_STRING    
REMOTE_ADDR     127.0.0.1
REMOTE_PORT     2482
REQUEST_METHOD  GET
REQUEST_URI     /config/edit/1
SCRIPT_FILENAME 
SCRIPT_NAME     
SERVER_NAME     localhost
SERVER_PORT     8080
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE page_main

Also, why does restarting destar log me back in? If i initially visit
the destar interface, I'm logged in, then I click logout, and then
restart the server, and then any page, and I'm logged back in again. The
user page says the following:

You are now logged in as user 'programmer'. Your access level is 4. You
can do:

      * access all public accessible info pages
      * change phone settings of other people
      * configure the PBX
      * access debug pages to help program DeStar

Also, http://localhost:8080/user/pbxstate/ doesn't seem to work, it
shows the following and a one cell empty table.

Status of Asterisk
Asterisk is not running!

-- System Information:
Debian Release: unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-k7
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

Versions of packages destar depends on:
ii  asterisk                  1:1.0.9.dfsg-5 open source Private Branch Exchang
ii  python                    2.3.5-3        An interactive high-level object-o
ii  quixote                   1.0-1          A highly Pythonic Web application 

Versions of packages destar recommends:
pn  python-pysqlite               <none>     (no description available)
ii  sqlite                        2.8.16-1   command line interface for SQLite

-- no debconf information

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to