Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id AAFE8E01018; Wed, 24 Aug 2016 02:39:32 -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=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [217.89.139.142 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from smtp2.vector.com (smtp2.vector.com [217.89.139.142]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 420DFE00FEA for ; Wed, 24 Aug 2016 02:39:28 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.vector.com (Postfix) with ESMTP id 77FEC85311 for ; Wed, 24 Aug 2016 11:39:27 +0200 (CEST) X-Virus-Scanned: amavisd-new at vector.com Received: from smtp2.vector.com ([127.0.0.1]) by localhost (smtp2.vector.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X71Pxc1WR98I for ; Wed, 24 Aug 2016 11:39:26 +0200 (CEST) Received: from vistrex5.vi.vector.int (unknown [10.49.3.65]) by smtp2.vector.com (Postfix) with ESMTPS for ; Wed, 24 Aug 2016 11:39:26 +0200 (CEST) Received: from xubuntu-14.04-lts (10.49.80.104) by vistrex5.vi.vector.int (10.49.3.61) with Microsoft SMTP Server id 14.3.279.2; Wed, 24 Aug 2016 11:39:26 +0200 From: Alexander Egorenkov To: Date: Wed, 24 Aug 2016 11:39:00 +0200 Message-ID: <20160824093900.4892-1-Alexander.Egorenkov@vector.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 X-G-Data-MailSecurity-for-Exchange-State: 0 X-G-Data-MailSecurity-for-Exchange-Error: 0 X-G-Data-MailSecurity-for-Exchange-Sender: 23 X-G-Data-MailSecurity-for-Exchange-Server: 8959ae4b-c457-4990-be14-918c767bdf10 X-G-Data-MailSecurity-for-Exchange-Guid: 700F1D75-438D-41A3-BD0E-F4A869A3C1BF Subject: [PATCH] toaster: Increase maximum length of file path of build artifact 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: Wed, 24 Aug 2016 09:39:32 -0000 Content-Type: text/plain The default maximum length of the file path for a build artifact on Krogoth Toaster is 100 characters (Django default for FilePathField). This value makes it impossible to download build artifacts because default file paths are quite long and therefore are being truncated by Toaster. Example of a long file path which does not work on my machine: /var/www/toaster/poky/build-toaster-2/tmp/deploy/sdk/poky-glibc-x86_64-core-image-sato-cortexa8hf-neon-toolchain-2.1.1.sh To fix this problem i increased the size of 'file_name' column of the corresponding MySQL table to 255 characters. [krogoth] Signed-off-by: Alexander.Egorenkov@vector.com --- bitbake/lib/toaster/orm/migrations/0001_initial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/toaster/orm/migrations/0001_initial.py b/bitbake/lib/toaster/orm/migrations/0001_initial.py index 760462f..0c780a9 100644 --- a/bitbake/lib/toaster/orm/migrations/0001_initial.py +++ b/bitbake/lib/toaster/orm/migrations/0001_initial.py @@ -52,7 +52,7 @@ class Migration(migrations.Migration): name='BuildArtifact', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('file_name', models.FilePathField()), + ('file_name', models.FilePathField(max_length=255)), ('file_size', models.IntegerField()), ('build', models.ForeignKey(to='orm.Build')), ], -- 2.9.3