Bug 7146

Summary: Task details pages throw an error
Product: [Build System, Metadata & Runtime] Toaster Reporter: Belen Barros Pena <belen.barros.pena>
Component: toasterAssignee: Alexandru Damian <alexandru.damian>
Status: VERIFIED WORKSFORME QA Contact: Mihail Stanciu <stanciux.mihail>
Severity: major    
Priority: High CC: alexandru.c.georgescu, alexandru.damian, belen.barros.pena, cristiana.voicu
Version: unspecified   
Target Milestone: 1.8 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Belen Barros Pena 2015-01-15 14:50:58 UTC
In master:2b925045877aeb44d9823a8c9515e8ab8fca1e52

Steps to reproduce:

1. With Toaster in managed mode, build something (ex. bash)
2. When the build completes, visit the build dashboard by clicking on the build target
3. On the left navigation, select the 'tasks' page
4. Select a task that has outcome different to 'Covered' - those we know are not working (bug 6775)

You get this error:

Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/toastergui/build/8/task/12931

Django Version: 1.6
Python Version: 2.7.6
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.staticfiles',
'django.contrib.humanize',
'orm',
'toastermain',
'south',
'bldviewer',
'toastergui',
'bldcontrol')
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')


Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
in get_response
  114.                     response = wrapped_callback(request,
*callback_args, **callback_kwargs)
File "/home/yocto/poky/bitbake/lib/toaster/toastergui/views.py" in task
  561.         uri_list.append(v[0].variable_value)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py"
in __getitem__
  132.         return list(qs)[0]

Exception Type: IndexError at /toastergui/build/8/task/12931
Exception Value: list index out of range
Comment 1 Belen Barros Pena 2015-01-19 15:14:22 UTC
Tasks pages seem to be working in master:4e20211090d2b193250edaa64f84e355a1c31fe5

So changing to resolved
Comment 2 Mihail Stanciu 2015-01-21 13:22:08 UTC
Verified on master: d9d5b8b499af3ae01a1e33d0d3969c54c2d4ab1b