Skip to content
This repository was archived by the owner on Jul 11, 2022. It is now read-only.
This repository was archived by the owner on Jul 11, 2022. It is now read-only.

'task push' fails when there are recurring tasks #26

@campbellr

Description

@campbellr

I suspect this is related to issue #25 (supporting recurring tasks).

Environment:


Request Method: PUT
Request URL: http://taskweb.herokuapp.com/taskdb/undo.data

Django Version: 1.3
Python Version: 2.7.2
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'djblets.datagrid',
 'djblets.util',
 'django.contrib.admin',
 'task']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.transaction.TransactionMiddleware')


Traceback:
File "/app/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/app/django_task/task/decorators.py" in wrapper
  84.                                      realm, *args, **kwargs)
File "/app/django_task/task/decorators.py" in view_or_basicauth
  39.                         return view(request, *args, **kwargs)
File "/app/django_task/task/views.py" in taskdb
  240.         return put_taskdb(request, filename)
File "/app/django_task/task/views.py" in put_taskdb
  191.     return post_taskdb(request, filename)
File "/app/django_task/task/views.py" in post_taskdb
  216.         parsed = parse_undo(data)
File "/app/django_task/task/util.py" in parse_undo
  16.         if undo[1].startswith('old'):

Exception Type: IndexError at /taskdb/undo.data
Exception Value: list index out of range

and the state of the locals at the time of the exception:

segment     

'" recur:"biweekly" status:"recurring" uuid:"18927227-29a0-421e-84aa-052196a27fbb"]\n'

undo    

['" recur:"biweekly" status:"recurring" uuid:"18927227-29a0-421e-84aa-052196a27fbb"]']

line    

'" recur:"biweekly" status:"recurring" uuid:"18927227-29a0-421e-84aa-052196a27fbb"]'

So something obviously went wrong with the undo parsing

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions