bugsavcern - Bugs: bug #4065, attachment incorrectly refused,...

Show feedback again

bug #4065: attachment incorrectly refused, mail sent anyway

Submitted by:  Maarten Litmaath <maart>
Submitted on:  2004-07-07 20:42  
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedReproducibility: Every Time
Browser: AllCERN specific: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


2005-09-29 13:00, comment #3:


As this problem is supposed to be fixed, I close the report. Feel free to comment further if you still encounter this problem (or post a new report, at your convenience).


Mathieu Roy <yeupou>
Project Member
2004-07-23 18:01, comment #2:

Sorry for the delay but I was busy with new developments and the problem you reported was actually more tricky that it appeared at first sight. It made me discover three bugs!
a) the file size check (20 < file size < 512000) was done after insertion of backslashes to escape critical characters instead of being made on the actual file
b) the size check was done with the strlen function which does not work for very large strings
c) in case of file larger than 2 MB, the value returned as file content fooled the (buggy) code and made it skip the actual writing of the file in the database
In principle all this is fixed now but I wait until you tested it successfully in order to close this bug.

Yves Perrin <ype>
Site Administrator
2004-07-08 10:16, comment #1:


Thank you for pointing out this bug. I am currently working on other ones which, unfortunately, are more critical and therefore which should be handled with higher priority. I'll investigate the bug you reported asap and I'll let you know.
Yves Perrin

Yves Perrin <ype>
Site Administrator
2004-07-07 20:42, original submission:

I tried to attach a file whose size was 508606 ("ls -l");
when I clicked the Submit button, an error message stated
that the attachment was refused because it should be 512000
bytes or less, and yet the bug update e-mail was sent.
(So there are 2 bugs here.)
I reduced the size to 479185 and then it was accepted.

Maarten Litmaath <maart>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by yeupou (Updated the item)
  • -unavailable- added by ype (Posted a comment)
  • -unavailable- added by maart
  • -unavailable- added by maart (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independantly of the priority of the item set by tracker managers.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    2005-09-29 13:00yeupouStatusNone=>Fixed
    2004-07-07 20:42maartCarbon-Copy-=>Added i --DOT-- stokes-rees1 --AT-- physics --DOT-- ox --DOT-- ac --DOT-- uk
    Show feedback again

    Back to the top

    Powered by Savane SVN (toward 3.1)