Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id ECF84E00D0A; Mon, 18 Jul 2016 09:08:37 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [192.55.52.120 listed in list.dnswl.org] Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A9A45E00CE7 for ; Mon, 18 Jul 2016 09:08:36 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP; 18 Jul 2016 09:08:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,384,1464678000"; d="scan'208";a="1024152829" Received: from irsmsx108.ger.corp.intel.com ([163.33.3.3]) by fmsmga002.fm.intel.com with ESMTP; 18 Jul 2016 09:08:35 -0700 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.97]) by IRSMSX108.ger.corp.intel.com ([169.254.11.125]) with mapi id 14.03.0248.002; Mon, 18 Jul 2016 17:08:34 +0100 From: "Barros Pena, Belen" To: "Smith, Elliot" , "toaster@yoctoproject.org" Thread-Topic: [Toaster] [PATCH] toaster: fix download URL for task logs Thread-Index: AQHR3qnGBvtZBbv1Q0i1QRYaIP2Ap6AeX+4A Date: Mon, 18 Jul 2016 16:08:33 +0000 Message-ID: References: <1468594840-10140-1-git-send-email-elliot.smith@intel.com> In-Reply-To: <1468594840-10140-1-git-send-email-elliot.smith@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.5.160527 x-originating-ip: [10.252.24.164] MIME-Version: 1.0 Subject: Re: [PATCH] toaster: fix download URL for task logs X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2016 16:08:38 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <963CECF15C7A93409A643F4E601AF5AE@intel.com> Content-Transfer-Encoding: quoted-printable On 15/07/2016 16:00, "toaster-bounces@yoctoproject.org on behalf of Elliot Smith" wrote: >The task display template formatting had split the Django >url template tag across two lines and broken it. This resulted >in a gibberish URL for task logs. > >Fix by placing the call to the tag on a single line. > >[YOCTO #9837] This seems to work for tasks with outcome "executed", but I still see the 404 error when I try to download the log for tasks with outcome "cached". Thanks! Bel=E9n > >Signed-off-by: Elliot Smith >--- > bitbake/lib/toaster/toastergui/templates/task.html | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/bitbake/lib/toaster/toastergui/templates/task.html >b/bitbake/lib/toaster/toastergui/templates/task.html >index 86789bd..d77d188 100644 >--- a/bitbake/lib/toaster/toastergui/templates/task.html >+++ b/bitbake/lib/toaster/toastergui/templates/task.html >@@ -25,8 +25,10 @@ > {%if task.task_executed %} > {# executed tasks outcome #} > {% if task.logfile %} >- 'build_artifact' build.id >- "tasklogfile" task.pk %}">Download task log >+ + href=3D"{% url 'build_artifact' build.id 'tasklogfile' >task.pk %}"> >+ Download task log >+ > {% endif %} > {# show stack trace for failed task #} > {% if task.outcome =3D=3D task.OUTCOME_FAILED and log_head %} >--=20 >2.7.4 > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster