Bug 10578

Summary: Using django>=1.8.16 prevents access from hosts other than localhost
Product: [Build System, Metadata & Runtime] Toaster Reporter: Randy Witt <randy.e.witt>
Component: toasterAssignee: brian avery <brian.avery>
Status: RESOLVED FIXED QA Contact: Libertad <libertad.gonzalez.de.la.cruz>
Severity: normal    
Priority: Medium+ CC: david.reyna, jessica.zhang, libertad.gonzalez.de.la.cruz, stanciux.mihail
Version: 2.2   
Target Milestone: 2.3 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 10586, 10587    
Attachments:
Description Flags
toaster_web.log none

Description Randy Witt 2016-11-01 22:24:08 UTC
Created attachment 3519 [details]
toaster_web.log

When the version of Django installed is >= 1.8.16, trying to access toaster will fail. This appears to be because Django became more restrictive starting with that version.

When trying to access the page the error will be "A server error occurred.  Please contact the administrator."

To reproduce run toaster by binding to 0.0.0.0 instead of localhost, and try to connect.

The toaster_web.log is attached, I found it when the toaster container tests were ran.
Comment 1 brian avery 2016-11-02 00:03:48 UTC
Submitted to toaster mailing list.
https://lists.yoctoproject.org/pipermail/toaster/2016-November/005290.html
Comment 2 brian avery 2016-11-02 19:34:23 UTC
sent V2 to list
Comment 4 brian avery 2016-11-21 19:35:06 UTC
in master ->7c3a47ed8965c3a3eb90a9a4678d5caedbba6337