Edgewall Software
Modify

Opened 15 years ago

Closed 14 years ago

#8560 closed defect (invalid)

add new ticket - bug

Reported by: anonymous Owned by:
Priority: normal Milestone:
Component: general Version: 0.11.5
Severity: normal Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Remy Blank)

when I added new ticket, and I clicked on 'Submit ticket' I got some error

( I have the latest stable version of trac )

Python Traceback

Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/trac/web/main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "/Library/Python/2.5/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/Library/Python/2.5/site-packages/trac/ticket/web_ui.py", line 313, in process_request
    get_reporter_id(req, 'author'))
  File "/Library/Python/2.5/site-packages/trac/ticket/web_ui.py", line 669, in _insert_ticket_data
    actions = TicketSystem(self.env).get_available_actions(ticket, req.perm)
  File "/Library/Python/2.5/site-packages/trac/ticket/api.py", line 83, in get_available_actions
    return [action for action in actions.get(ticket['status'], ['leave'])
  File "/Library/Python/2.5/site-packages/trac/ticket/model.py", line 104, in __getitem__
    return self.values[name]
KeyError: 'status'

and when later I want look at created ticket I got sth silimar

Python Traceback

Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/trac/web/main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "/Library/Python/2.5/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/Library/Python/2.5/site-packages/trac/ticket/web_ui.py", line 313, in process_request
    get_reporter_id(req, 'author'))
  File "/Library/Python/2.5/site-packages/trac/ticket/web_ui.py", line 669, in _insert_ticket_data
    actions = TicketSystem(self.env).get_available_actions(ticket, req.perm)
  File "/Library/Python/2.5/site-packages/trac/ticket/api.py", line 83, in get_available_actions
    return [action for action in actions.get(ticket['status'], ['leave'])
  File "/Library/Python/2.5/site-packages/trac/ticket/model.py", line 104, in __getitem__
    return self.values[name]
KeyError: 'status'

Attachments (0)

Change History (4)

comment:1 by Remy Blank, 15 years ago

Description: modified (diff)
Keywords: needinfo added
Version: none0.11.5

That specific ticket doesn't seem to have a status, which should never happen. Do you have any plugins installed?

You'll probably have to fix the ticket by hand in the database, and set its status to e.g. "new".

Also, please give us some more information about your setup: database, Python database bindings, web server and frontend, …

comment:2 by anonymous, 15 years ago

I istalled trac via mac ports on leopart, i don't have any plugins.

server: apache2 db: sqlite, I changed the version from 21 to 20 in system table, because it doesn't work with 21

in reply to:  2 comment:3 by Remy Blank, 15 years ago

Replying to anonymous:

I changed the version from 21 to 20 in system table, because it doesn't work with 21

Err… The database version for 0.11.5 is 21, so there's something fishy here. Are you sure that you are actually using 0.11.5? Do you have an older version installed as well?

This smells more and more like an InstallationIssue

comment:4 by Remy Blank, 14 years ago

Resolution: invalid
Status: newclosed

No reply, closing as an InstallationIssue. Feel free to reopen if you can provide the requested info.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.