Bug 15307

Summary: Fail to display license manifest from a command line build
Product: [Build System, Metadata & Runtime] Toaster Reporter: Phlip Balister <philip>
Component: toasterAssignee: David Reyna <david.reyna>
Status: NEW --- QA Contact: Toaster default assignee <toaster>
Severity: normal    
Priority: Medium    
Version: unspecified   
Target Milestone: 6.0   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Phlip Balister 2023-12-05 22:35:58 UTC
If I start toaster (bitbake/master-next), run a command line build, then display it and look at the "License Manifest" I see the following error:

TypeError at /toastergui/build/2/artifact/licensemanifest/id/2
toaster_render() missing 1 required positional argument: 'context'
Request Method:	GET
Request URL:	http://localhost:8000/toastergui/build/2/artifact/licensemanifest/id/2
Django Version:	4.2.5
Exception Type:	TypeError
Exception Value:	
toaster_render() missing 1 required positional argument: 'context'
Exception Location:	/home/balister/src/git/master-qemu/bitbake/lib/toaster/toastermain/logs.py, line 40, in log_view_request
Raised during:	toastergui.views.build_artifact
Python Executable:	/usr/bin/python3
Python Version:	3.11.6
Python Path:	
['/home/balister/src/git/master-qemu/bitbake/lib/toaster',
 '/home/balister/src/git/master-qemu/bitbake/lib',
 '/home/balister/src/git/master-qemu/bitbake/lib/toaster',
 '/home/balister/src/git/master-qemu/bitbake/lib',
 '/home/balister/src/git/master-qemu/build',
 '/usr/lib64/python311.zip',
 '/usr/lib64/python3.11',
 '/usr/lib64/python3.11/lib-dynload',
 '/home/balister/.local/lib/python3.11/site-packages',
 '/usr/lib64/python3.11/site-packages',
 '/usr/lib/python3.11/site-packages']
Server time:	Tue, 05 Dec 2023 17:35:43 -0500