You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2010/03/19 02:43:59 UTC
DO NOT REPLY [Bug 48942] New: Incorrect CONTENT_TYPE Boundary String
https://issues.apache.org/bugzilla/show_bug.cgi?id=48942
Summary: Incorrect CONTENT_TYPE Boundary String
Product: Apache httpd-2
Version: 2.3-HEAD
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_cgi
AssignedTo: bugs@httpd.apache.org
ReportedBy: dkk.ext@gmail.com
When POSTing a file to a CGI binary (written in C), the environment variable
CONTENT_TYPE contains a "boundary=------1234567890abcdef" that has 2 fewer
dashes than the boundary strings in the actual POST content.
Extracting the incorrect boundary string from the CONTENT_TYPE results in
offset errors when using strstr() to parse out the delimited data sections in
the content.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 48942] Incorrect CONTENT_TYPE Boundary String
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48942
Dan Poirier <po...@pobox.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
--- Comment #3 from Dan Poirier <po...@pobox.com> 2010-03-19 13:50:27 UTC ---
Not going to google it for you, but i just confirmed Nick's assertion myself in
about 3 minutes of looking.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 48942] Incorrect CONTENT_TYPE Boundary String
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48942
--- Comment #9 from Dan <dk...@gmail.com> 2010-03-19 15:21:46 UTC ---
(In reply to comment #8)
> My 2cents:
>
> "Hi Dan,
>
> Please use the user support mailing list described at
> http://httpd.apache.org/lists.html#http-users to try to work out the issue
> you're having with the POST body. We don't think it is a suspected bug in
> httpd. Thanks!"
Thanks Jeff, this issue is "closed" because the bug is with my eyeballs ;)
All is well.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 48942] Incorrect CONTENT_TYPE Boundary String
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48942
--- Comment #5 from Dan <dk...@gmail.com> 2010-03-19 14:33:56 UTC ---
I also do not see anything enlightening at:
http://httpd.apache.org/docs/2.0/misc/known_client_problems.html
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 48942] Incorrect CONTENT_TYPE Boundary String
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48942
--- Comment #8 from Jeff Trawick <tr...@apache.org> 2010-03-19 15:16:16 UTC ---
My 2cents:
"Hi Dan,
Please use the user support mailing list described at
http://httpd.apache.org/lists.html#http-users to try to work out the issue
you're having with the POST body. We don't think it is a suspected bug in
httpd. Thanks!"
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 48942] Incorrect CONTENT_TYPE Boundary String
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48942
Dan <dk...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|2.3-HEAD |2.2.14
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 48942] Incorrect CONTENT_TYPE Boundary String
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48942
Dan <dk...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #4 from Dan <dk...@gmail.com> 2010-03-19 14:08:20 UTC ---
(In reply to comment #3)
> Not going to google it for you, but i just confirmed Nick's assertion myself in
> about 3 minutes of looking.
I have read much documentation on CGI and how Apache sets environment variables
etc. My question is not about MIME.
I am well aware that the CONTENT_TYPE env var defines the mime type of data
being POSTed to the CGI script. It also contains a boundary string that
delimits the data sections in the content. If this string is incorrectly set by
Apache, then this is a bug, yes?
I have googled "CGI POST MIME" to try and find where I should RTFM...I see
nothing relevant to my problem....which doesn't surprise me.
Please, if I am overlooking something obvious, past a link or some google
search terms to enlighten me. The hoohoo.ncsa server is dead, the golux server
likewise.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 48942] Incorrect CONTENT_TYPE Boundary String
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48942
Dan <dk...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #7 from Dan <dk...@gmail.com> 2010-03-19 15:10:19 UTC ---
(In reply to comment #6)
> Since you're obviously incapable of reading the spec, please use a CGI library
> written by someone competent. It's not a known client problem, because known
> clients get the format right.
>
> Idiot.
That's a very unhelpful, unprofessional and immature attitude, Mr. Kew.
You could have simply posted something like:
"This is not a bug. The difference you see is due to the way boundary strings
are encoded. Please read http://tools.ietf.org/html/rfc2046 section 5.1.1"
Sometimes, Mr. Kew, people miss details (mea culpa). A civilized person would
kindly point this out.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 48942] Incorrect CONTENT_TYPE Boundary String
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48942
Nick Kew <ni...@webthing.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Nick Kew <ni...@webthing.com> 2010-03-19 08:29:39 UTC ---
Please RTFM on MIME.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 48942] Incorrect CONTENT_TYPE Boundary String
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48942
Dan <dk...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #2 from Dan <dk...@gmail.com> 2010-03-19 13:24:41 UTC ---
(In reply to comment #1)
> Please RTFM on MIME.
If I am in error, a brief explanation would be nice.
Is the boundary string, declared in the CONTENT_TYPE, supposed to match the
boundary string used in the content itself? I presume that it should. If Apache
does not provide the correct boundary string in CONTENT_TYPE, is that not a
bug?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 48942] Incorrect CONTENT_TYPE Boundary String
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48942
Nick Kew <ni...@webthing.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
--- Comment #6 from Nick Kew <ni...@webthing.com> 2010-03-19 15:01:34 UTC ---
Since you're obviously incapable of reading the spec, please use a CGI library
written by someone competent. It's not a known client problem, because known
clients get the format right.
Idiot.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org