Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#8643 closed (fixed)

Misleading comments in django.http.multipartparser.py

Reported by: KayEss Owned by: Gary Wilson
Component: HTTP handling Version: dev
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

There are a number of comments in the file presumably left over from before the refactoring work. The patch simply removes some and rewords a few others.

  • file_upload_dir isn't mentioned anywhere apart from in the comment. I guess that the upload handlers are now meant to deal with this.

The upload parser does also seem to be missing some error handling. It doesn't appear to check that it has parsed the same number of bytes as the specified content length and it certainly doesn't throw any sort of error if the input data is empty.

The patch is against r8047.

Attachments (1)

mp.patch (906 bytes ) - added by KayEss 16 years ago.
Comments patch

Download all attachments as: .zip

Change History (8)

by KayEss, 16 years ago

Attachment: mp.patch added

Comments patch

comment:1 by Piotr Lewandowski <django@…>, 16 years ago

Component: UncategorizedHTTP handling

comment:2 by Jacob, 16 years ago

milestone: 1.1
Triage Stage: UnreviewedReady for checkin

comment:3 by Gary Wilson, 16 years ago

Owner: changed from nobody to Gary Wilson
Status: newassigned

comment:4 by Gary Wilson, 16 years ago

Resolution: fixed
Status: assignedclosed

(In [10213]) Fixed #8643 -- Corrected docstrings of MultiPartParser, thanks KayEss.

comment:5 by Gary Wilson, 16 years ago

(In [10214]) [1.0.X]: Fixed #8643 -- Corrected docstrings of MultiPartParser, thanks KayEss.

Backport of r10213 from trunk.

comment:6 by Gary Wilson, 16 years ago

In the future, please provide patches from the root of trunk. This makes things easier for committers, as they don't have to go hunting through the tree for the file to patch. Thanks.

comment:7 by Jacob, 13 years ago

milestone: 1.1

Milestone 1.1 deleted

Note: See TracTickets for help on using tickets.
Back to Top