Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Maximum File Size for Bugzilla Attachments

390 views
Skip to first unread message

Bottiger, John (PMF)

unread,
Oct 14, 2015, 3:25:50 PM10/14/15
to support-...@lists.mozilla.org
Dear Sir,

Please advise as to what the maximum file size is allowed for Bugzilla attachments. I am asking because I tried to attach a zip file that is 141MB, and the contents got deleted from the bug. Thank you.


V/R,

John J. Bottiger

Software Developer/QA Engineer
WinTec Arrowmaker, Inc.
5410 West Tyson Ave., Suite E
Tampa, FL 33611
813-805-2714 (Office)
863-521-6924 (Mobile)
bott...@arrowmaker.com<mailto:bott...@arrowmaker.com>


"There are no great limits to growth because there are no limits of human intelligence, imagination, and wonder." - Ronald Reagan

Thorsten Schöning

unread,
Oct 14, 2015, 3:55:33 PM10/14/15
to support-...@lists.mozilla.org
Guten Tag Bottiger, John (PMF),
am Mittwoch, 14. Oktober 2015 um 21:25 schrieben Sie:

> Please advise as to what the maximum file size is allowed for
> Bugzilla attachments. I am asking because I tried to attach a zip
> file that is 141MB, and the contents got deleted from the bug. Thank you.

What does "deleted" mean? Did Bugzilla first successfully saved your
zip and really deleted it afterwards, e.g. when you reloaded the bug
it was gone without any human action? Or did it provide an error
message after the upload, that it can't save it? I really doubt that
"deleted" describes best what happened and if you got an error message
it should have said what's wrong.

How Bugzilla deals with attachments depends on your database
configuration and that of Bugzilla, theres an "Attachments" section in
the admin UI.

Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning E-Mail: Thorsten....@AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/

Telefon...........05151- 9468- 55
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

Andre Klapper

unread,
Oct 14, 2015, 4:01:25 PM10/14/15
to support-...@lists.mozilla.org
Hi John,

On Wed, 2015-10-14 at 15:25 -0400, Bottiger, John (PMF) wrote:
> Please advise as to what the maximum file size is allowed for
> Bugzilla attachments. I am asking because I tried to attach a zip
> file that is 141MB, and the contents got deleted from the bug.

On a Bugzilla level, whatever the Bugzilla administrator set for
maxattachmentsize/maxlocalattachment in the Bugzilla configuration.
On a database level, it depends on your database backend.

andre
--
Andre Klapper | ak...@gmx.net
http://blogs.gnome.org/aklapper/


Bottiger, John (PMF)

unread,
Oct 15, 2015, 8:25:43 AM10/15/15
to support-...@lists.mozilla.org
Thorsten/Andre,

FYI, I checked the Attachment section under Administration. There are two parameters (as Andre pointed out--thanks Andre):

* maxattachmentsize-Maximum size (in KB) of attachments to be stored in the database; value is 50000 (about 50MB)
* maxlocalattachment-Maximum size (in MB) of attachments to be stored locally on the web server; value is 10000 (that's 10 GB, not 10 MB).

Basically, Bugzilla checks the second attachment parameter to see if the file can be stored locally on the web server and shall reject the attachment if the file size exceeds BOTH values. Apparently, it only exceeded the first parameter value and not the second, but it rejected the file anyway. So I'm not sure why that happened based on that statement.

Now reading further, the second sentence in the maxlocalattachment parameter description states: "If set to a value lower than the maxattachmentsize parameter, attachments will never be kept on the local filesystem. So now I see why the attachment was rejected (not exactly deleted as Thorsten seemed a bit perplexed by my original complaint)...maxlocalattachment value is lower than that of maxattachmentsize. But the maxlocalattachment value is in MB while the maxattachmentsize value is in KB. Does this really make sense to have one parameter in MB and one in KB? Because technically, if the maxlocalattachment size is actually higher than the maxattachment value (i.e., as I see it, 10000 MB is indeed higher than 50000 KB, or about 50 MB), shouldn't the attachment be kept on the local filesystem then? Please advise.

Thanks again for pointing me in the right direction.


V/R,

John J. Bottiger

Software Developer/QA Engineer
WinTec Arrowmaker, Inc.
5410 West Tyson Ave., Suite E
Tampa, FL 33611
813-805-2714 (Office)
863-521-6924 (Mobile)
bott...@arrowmaker.com


"There are no great limits to growth because there are no limits of human intelligence, imagination, and wonder." - Ronald Reagan



-----Original Message-----
From: support-bugzilla [mailto:support-bugzilla-bounces+bottigerj=arrowma...@lists.mozilla.org] On Behalf Of support-bugz...@lists.mozilla.org
Sent: Thursday, October 15, 2015 8:00 AM
To: support-...@lists.mozilla.org
Subject: support-bugzilla Digest, Vol 118, Issue 9

Send support-bugzilla mailing list submissions to
support-...@lists.mozilla.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.mozilla.org/listinfo/support-bugzilla
or, via email, send a message with subject or body 'help' to
support-bugz...@lists.mozilla.org

You can reach the person managing the list at
support-bug...@lists.mozilla.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of support-bugzilla digest..."


Today's Topics:

1. Maximum File Size for Bugzilla Attachments (Bottiger, John (PMF))
2. Re: Maximum File Size for Bugzilla Attachments (Thorsten Sch?ning)
3. Re: Maximum File Size for Bugzilla Attachments (Andre Klapper)


----------------------------------------------------------------------

Message: 1
Date: Wed, 14 Oct 2015 15:25:13 -0400
From: "Bottiger, John (PMF)" <Bott...@arrowmaker.com>
To: "support-...@lists.mozilla.org"
<support-...@lists.mozilla.org>
Subject: Maximum File Size for Bugzilla Attachments
Message-ID:
<BBFCBAF0A5EDA845A15EEC...@WinTec-EMail.arrowmaker.com>

Content-Type: text/plain; charset="us-ascii"
------------------------------

Message: 2
Date: Wed, 14 Oct 2015 21:54:54 +0200
From: Thorsten Sch?ning <tscho...@am-soft.de>
To: "support-...@lists.mozilla.org"
<support-...@lists.mozilla.org>
Subject: Re: Maximum File Size for Bugzilla Attachments
Message-ID: <1434011602.2...@am-soft.de>
Content-Type: text/plain; charset=windows-1250

Guten Tag Bottiger, John (PMF),
am Mittwoch, 14. Oktober 2015 um 21:25 schrieben Sie:

> Please advise as to what the maximum file size is allowed for Bugzilla
> attachments. I am asking because I tried to attach a zip file that is
> 141MB, and the contents got deleted from the bug. Thank you.

What does "deleted" mean? Did Bugzilla first successfully saved your zip and really deleted it afterwards, e.g. when you reloaded the bug it was gone without any human action? Or did it provide an error message after the upload, that it can't save it? I really doubt that "deleted" describes best what happened and if you got an error message it should have said what's wrong.

How Bugzilla deals with attachments depends on your database configuration and that of Bugzilla, theres an "Attachments" section in the admin UI.

Mit freundlichen Gr??en,

Thorsten Sch?ning

--
Thorsten Sch?ning E-Mail: Thorsten....@AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/

Telefon...........05151- 9468- 55
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln AG Hannover HRB 207 694 - Gesch?ftsf?hrer: Andreas Muchow



------------------------------

Message: 3
Date: Wed, 14 Oct 2015 22:00:48 +0200
From: Andre Klapper <ak...@gmx.net>
To: "support-...@lists.mozilla.org"
<support-...@lists.mozilla.org>
Subject: Re: Maximum File Size for Bugzilla Attachments
Message-ID: <1444852848.2...@gmx.net>
Content-Type: text/plain; charset="UTF-8"
------------------------------

Subject: Digest Footer

_______________________________________________
support-bugzilla mailing list
support-...@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-bugzilla


------------------------------

End of support-bugzilla Digest, Vol 118, Issue 9
************************************************

Thorsten Schöning

unread,
Oct 15, 2015, 9:31:21 AM10/15/15
to support-...@lists.mozilla.org
Guten Tag Bottiger, John (PMF),
am Donnerstag, 15. Oktober 2015 um 14:25 schrieben Sie:

> So now I see why the attachment was rejected (not
> exactly deleted as Thorsten seemed a bit perplexed by my original
> complaint)...maxlocalattachment value is lower than that of
> maxattachmentsize. But the maxlocalattachment value is in MB while
> the maxattachmentsize value is in KB.

Looking at the code, the different units should be considered properly
and if the check fails, an error message is shown. So did you get that
message? If not, your problem is somewhere else.

Bugzilla::Attachment:

> sub _check_data {
> my ($invocant, $params) = @_;
>
> my $data = $params->{data};
> $params->{filesize} = ref $data ? -s $data : length($data);
>
> Bugzilla::Hook::process('attachment_process_data', { data => \$data,
> attributes => $params });
>
> $params->{filesize} || ThrowUserError('zero_length_file');
> # Make sure the attachment does not exceed the maximum permitted size.
> my $max_size = max(Bugzilla->params->{'maxlocalattachment'} * 1048576,
> Bugzilla->params->{'maxattachmentsize'} * 1024);
>
> if ($params->{filesize} > $max_size) {
> my $vars = { filesize => sprintf("%.0f", $params->{filesize}/1024) };
> ThrowUserError('file_too_large', $vars);
> }
> return $data;
> }

> Does this really make sense
> to have one parameter in MB and one in KB?

Depends, some people believe that you ever only want to store really
small data in databases, because file systems are much better suited
for handling non relational data. So for those people it may be easier
to think in terms of "kb", to decide if they want a 10 kb blob in the
database instead of a 900 kb one... But I agree that it's just
unnecessary confusing. File a bug and tell the devs about it.

Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning E-Mail: Thorsten....@AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/

Telefon...........05151- 9468- 55
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

0 new messages