From: Jeremy Kemper <jeremy@bitsweat.net>
To: rack-devel@googlegroups.com
Subject: Re: Consider reverting multipart parsing change
Date: Tue, 6 Jul 2010 00:54:19 -0700 [thread overview]
Message-ID: <AANLkTilH3Dz4_SxZ8gAp5NbvA1GW5y_Fg79d41Ql995A@mail.gmail.com> (raw)
In-Reply-To: <ed08a345-2e38-45b3-8016-87ef1fb88706@a30g2000yqn.googlegroups.com>
On Mon, Jul 5, 2010 at 3:57 PM, Mark Goris <mark.goris@gmail.com> wrote:
> It's been a long time since I created the initial ticket, so I've lost
> some of the context (especially in the subsequent discussion that led
> to this change that you've suggested to revert). It seemed best to me
> that tempfiles only be used in the case of having a filename attribute
> be present, regardless of content-type. Your suggestion seems to
> focus on the specific type of content-type driving logic regarding
> whether or not a part is treated as a file upload. I guess my
> question is, why not just use the filename attribute to drive this
> logic? I don't know of a downside to this approach (meaning, I'm not
> exactly clear on the intention for the change that prompted ticket 79
> in the first place).
Checking for filename works for file uploads from web browsers. All
other MIME parts are flattened to a "normal" form parameter even it it
was neither a form param or a file upload. For example, see the
multipart/mixed regression on #79.
The fix for #79 restricts what may be considered a file upload rather
than broadening what may be considered a normal form param to include
MIME parts with a text/plain Content-Type.
Rather than treating all MIME parts as form params and making a
special case for file uploads by looking for a filename, we should be
doing the opposite, making a special case to identify form param MIME
parts by their missing filename and missing or text/plain
Content-Type.
jeremy
next prev parent reply other threads:[~2010-07-06 7:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-04 22:20 Consider reverting multipart parsing change Jeremy Kemper
2010-07-05 22:57 ` Mark Goris
2010-07-06 7:54 ` Jeremy Kemper [this message]
2010-07-08 5:03 ` Joshua Ballanco
2010-07-10 2:26 ` Mateo Murphy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://groups.google.com/group/rack-devel
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTilH3Dz4_SxZ8gAp5NbvA1GW5y_Fg79d41Ql995A@mail.gmail.com \
--to=rack-devel@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).