Bug 9749 - Django DEBUG variable set to True in settings file provokes a NameError when trying to search a table
Summary: Django DEBUG variable set to True in settings file provokes a NameError when ...
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.2 M2
Assignee: Elliot Smith
QA Contact: Libertad
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-06-09 17:16 UTC by Libertad
Modified: 2016-07-12 21:29 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
Web output when searching in the recipe table. (43.83 KB, application/vnd.oasis.opendocument.text)
2016-06-09 17:16 UTC, Libertad
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Libertad 2016-06-09 17:16:40 UTC
Created attachment 3231 [details]
Web output when searching in the recipe table.

DESCRIPTION:

A NameError is provoked when trying to search in the recipe table. The path to this table is 

$project--->Builds--->$builtImageName--->Recipes

BUILD: master:6c5d7f1fb276cbe0a461ece6c8f0ca17a478fa8c
ENVIRONMENT: Debian 4.3.0-0.bpo.1-amd64

STEPS TO REPRODUCE: 

1. Start Toaster
2. Create a project
3. Build an image
4. Go to the image recipe table
5. Search some string
 

EXPECTED OUTCOME: 

The table to show a search result

****ERROR SHOWN:

NameError at /toastergui/build/4/recipes/

name 'x' is not defined

Request Method: 	GET
Request URL: 	http://localhost:8000/toastergui/build/4/recipes/?search=base&page=1&count=100&orderby=name%3A%2B
Django Version: 	1.8.13
Exception Type: 	NameError
Exception Value: 	

name 'x' is not defined

Exception Location: 	/home/libby/ToasterMaster/poky/bitbake/lib/toaster/toastergui/views.py in _get_search_results, line 327
Python Executable: 	/usr/bin/python3
*********

COMMENTS:

The shown error is the same as BUG 9745, but it was encountered a different way. So I decided to open a new bug. Also Elliot might have a patch to this, I was not able to find the corresponding bug for that.
Comment 1 Belen Barros Pena 2016-06-09 18:32:30 UTC
Patch sent to the toaster mailing list

https://lists.yoctoproject.org/pipermail/toaster/2016-June/004790.html
Comment 2 Elliot Smith 2016-06-16 13:30:16 UTC
Just doing a quick check on this, as I'm not sure the patch Belen linked to actually fixes the issue.
Comment 3 Elliot Smith 2016-06-16 13:49:57 UTC
Patch sent to mailing list (correct one this time):
https://lists.yoctoproject.org/pipermail/toaster/2016-June/004859.html
Comment 4 Ross Burton 2016-06-21 11:10:54 UTC
Fixed in bitbake a3ebeb37f7bd4cffe6707c634b4f0a0ea52ccc45.
Comment 5 Libertad 2016-07-12 21:29:09 UTC
Verified in 2.2 M1  commit 6f0c5537e02c59e1c8f3b08f598dc049ff8ee098