Tested on 1.8.1: b74ea963cefffad9fbd91d4eb9b240f6a8c86cd0 OS: Ubuntu 15.04, Fedora 22 Steps: 1. Open toaster. 2. Create project & build an image (core-image-minimal) 3. Once image finishes, go to build summary page and try to download any artifact resulted from the build, or the build log. Expected: Download begins. Observed: Toaster throws up an error page. Error log: Environment: Request Method: GET Request URL: http://localhost:8000/toastergui/build/2/artifact/imagefile/id/5 Django Version: 1.6 Python Version: 2.7.9 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', 'bldcontrol', 'bldviewer', 'toastergui') 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/dave/FP_1.8.1/poky/bitbake/lib/toaster/toastergui/views.py" in build_artifact 3196. return _get_be_artifact(request, build_id, artifact_type, artifact_id) File "/home/dave/FP_1.8.1/poky/bitbake/lib/toaster/toastergui/views.py" in _get_be_artifact 3212. content_type = b.buildrequest.environment.get_artifact_type(file_name) File "/home/dave/FP_1.8.1/poky/bitbake/lib/toaster/bldcontrol/models.py" in get_artifact_type 59. m = magic.Magic(magic.MAGIC_MIME) File "/usr/local/lib/python2.7/dist-packages/magic/identify.py" in __init__ 66. pathstr = b':'.join(iter_encode(paths)) if paths else None File "/usr/local/lib/python2.7/dist-packages/magic/compatability.py" in iter_encode 40. for item in iterable: Exception Type: TypeError at /toastergui/build/2/artifact/imagefile/id/5 Exception Value: 'int' object is not iterable
Please test on toaster-next, as this bug should be fixed there, but the commits have not yet made it to master (see bug 8369).
This error message is the same as the one in bug 8369 and has the same root cause. *** This bug has been marked as a duplicate of bug 8369 ***
Reopening. Waiting for confirmation if fix will be back-ported.
The necessary patches are dd957fe0f261db6481882fee0413f459425000c2 and ce9011a9dea4d4f8040170c28031cfbcadfbfd81 on poky master, if we decide to backport them.
I've had a quick look, and think it should be fairly trivial to backport this to 1.8.
This has been REOPENED
My branch is here: poky-contrib, elliot/toaster/backport_mimetype_fixes-8472 This contains a single commit on top of a checkout of the fido branch. However, I am unable to get a working version of Toaster 1.8 to test it. Would someone be willing to test this for me, please? Maybe Mihail?
I've now managed to test this, and will submit the patch.
Submitted to Toaster mailing list for review https://lists.yoctoproject.org/pipermail/toaster/2015-December/003452.html
Commit now on fido branch: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=fido&id=6e3eefb997063971801bea933f319bb428b33fa5