Opened 4 years ago

Closed 10 months ago

#18872 closed defect (worksforme)

ValueError: invalid literal for int() with base 10: 'weasel'

Reported by: High586 Owned by: qbi
Priority: Medium Milestone:
Component: Internal Services/Service - trac Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


How to Reproduce

While doing a POST operation on /ticket/4, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'1bade5a249f9368eee6f5ced',
 'action': u'leave',
 'comment': u'',
 'field_actualpoints': u'',
 'field_component': u'Mixminion-Client',
 'field_keywords': u'',
 'field_milestone': u'',
 'field_parent': u'weasel',
 'field_points': u'',
 'field_priority': u'Low',
 'field_reviewer': u'',
 'field_severity': u'Normal',
 'field_sponsor': u'',
 'field_summary': u'Incorrect node routing with mbox',
 'field_type': u'defect',
 'field_version': u'0.0.4',
 'id': u'4',
 'preview': u'Preview',
 'replyto': u'',
 'sfp_email': u'',
 'sfph_mail': u'',
 'start_time': u'1100419869000000',
 'view_time': u'1100419869000000'}

User agent: #USER_AGENT#

System Information

System information not available

Enabled Plugins

Plugin information not available

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/trac/web/", line 497, in _dispatch_request
  File "/usr/lib/python2.7/dist-packages/trac/web/", line 214, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.7/dist-packages/trac/ticket/", line 179, in process_request
    return self._process_ticket_request(req)
  File "/usr/lib/python2.7/dist-packages/trac/ticket/", line 610, in _process_ticket_request
    valid = self._validate_ticket(req, ticket, not valid) and valid
  File "/usr/lib/python2.7/dist-packages/trac/ticket/", line 1278, in _validate_ticket
    for field, message in manipulator.validate_ticket(req, ticket):
  File "build/bdist.linux-x86_64/egg/childtickets/", line 68, in validate_ticket
    pid = int(ticket.values.get('parent').lstrip('#'))
ValueError: invalid literal for int() with base 10: 'weasel'

Child Tickets

Change History (2)

comment:1 Changed 4 years ago by cypherpunks

Component: - Select a componentInternal Services/Service - trac
Owner: set to qbi

comment:2 Changed 10 months ago by anarcat

Resolution: worksforme
Status: newclosed

i don't know if this is still relevant - why would you POST on a 15-year-old ticket anyways?

from the backtrace anyways, it looks like it thinks the parent of the ticket is "weasel"... yet it's not, in the ticket.

i've just made a POST on the ticket and couldn't reproduce, so closing.

Note: See TracTickets for help on using tickets.