Modify

Opened 3 years ago

Last modified 3 years ago

#14077 new enhancement

TypeError: int() argument must be a string or a number, not 'NoneType'

Reported by: nonex Owned by: lucid
Priority: normal Component: TimeTrackingPlugin
Severity: critical Keywords:
Cc: Trac Release: 1.4

Description

How to Reproduce

While doing a POST operation on /admin/timetracking/log, Trac issued an internal error.

(please provide additional details here) When Add Log Entry: doing by btn add then error

Request parameters:

{u'__FORM_TOKEN': u'2154988fc2e6a01d24df9c19',
 u'add': u'Add',
 'cat_id': u'timetracking',
 u'comment': u'',
 u'date': u'2021-10-26',
 u'location': u'',
 'panel_id': u'log',
 'path_info': None,
 u'spent_hours': u'0',
 u'user': u'nonex',
 u'year': u'2021'}

User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36 Edg/95.0.1020.30

System Information

Trac 1.4.3
Babel 2.9.1
Genshi 0.7.5 (with speedups)
GIT 2.28.0
Jinja2 2.11.3
Pygments 2.5.2
pysqlite 2.6.0
Python 2.7.18 (default, Oct 29 2020, 17:28:54)
[GCC FreeBSD Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-
pytz 2021.1
setuptools 44.1.1
SQLite 3.33.0
jQuery 1.12.4
jQuery UI 1.12.1
jQuery Timepicker 1.6.3

Enabled Plugins

BlueFlatTheme 1.1.0.dev0
KeepInterfaceSimple2Plugin 2.5
MultiProjectBacklog 0.5.0.dev0
TimeTracking 1.3
Trac-jsGantt 1.2.0.0.dev0
TracAccountManager 0.5.0
TracChangeLog 0.5
TracDragDrop 0.12.0.15
TracGraphviz 1.4.0.1
TracHtmlNotificationPlugin 0.12.0.2
TracSimpleMultiProject 0.7.4
TracStats 0.6.1
TracTags 0.12.1
TracThemeEngine 2.3.1
TracVote 0.7.0

Interface Customization

shared-htdocs
shared-templates
site-htdocs theme.css
site-templates

Python Traceback

Traceback (most recent call last):
  File "vp27/lib/python2.7/site-packages/trac/web/main.py", line 639, in dispatch_request
    dispatcher.dispatch(req)
  File "vp27/lib/python2.7/site-packages/trac/web/main.py", line 250, in dispatch
    resp = chosen_handler.process_request(req)
  File "vp27/lib/python2.7/site-packages/trac/admin/web_ui.py", line 104, in process_request
    resp = provider.render_admin_panel(req, cat_id, panel_id, path_info)
  File "vp27/lib/python2.7/site-packages/timetracking/web_ui.py", line 62, in render_admin_panel
    return self.render_log_panel(req, category, panel, path_info)
  File "vp27/lib/python2.7/site-packages/timetracking/web_ui.py", line 143, in render_log_panel
    logentry.task_id = int(req.args.get('task_id'))
TypeError: int() argument must be a string or a number, not 'NoneType'

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by Jun Omae

Trac Release: 1.4

comment:2 Changed 3 years ago by anonymous

This happens when no task is selected. Use "Add Task:" first to add tasks before adding log entries.

comment:3 Changed 3 years ago by anonymous

Component: TimeTrackingPluginTracHacks
Owner: changed from lucid to Ryan J Ollos
Severity: normalcritical
Type: defectenhancement

comment:4 Changed 3 years ago by Ryan J Ollos

Component: TracHacksTimeTrackingPlugin
Owner: changed from Ryan J Ollos to lucid

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain lucid.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.