public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/14013] New: HttpURLConnection.receiveReply
@ 2004-02-04  6:32 k dot allan-gcc at au dot darkbluesea dot com
  2004-02-04  6:48 ` [Bug libgcj/14013] HttpURLConnection.receiveReply() does not deal with code only responses k dot allan-gcc at au dot darkbluesea dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: k dot allan-gcc at au dot darkbluesea dot com @ 2004-02-04  6:32 UTC (permalink / raw)
  To: gcc-bugs

receiveReply

-- 
           Summary: HttpURLConnection.receiveReply
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: k dot allan-gcc at au dot darkbluesea dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14013


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/14013] HttpURLConnection.receiveReply() does not deal with code only responses
  2004-02-04  6:32 [Bug libgcj/14013] New: HttpURLConnection.receiveReply k dot allan-gcc at au dot darkbluesea dot com
@ 2004-02-04  6:48 ` k dot allan-gcc at au dot darkbluesea dot com
  2004-02-04  6:52 ` k dot allan-gcc at au dot darkbluesea dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: k dot allan-gcc at au dot darkbluesea dot com @ 2004-02-04  6:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From k dot allan-gcc at au dot darkbluesea dot com  2004-02-04 06:48 -------
The code only responses that some HTTP servers can send back will cause
recieveReply to fail with a "Server reply was unparseable" IOException.

Commonly webserver repsponses will emit a status code, and a reason phrase as
for example:
  HTTP/1.1 404 Not Found
or
  HTTP/1.1 200 OK

This however is not required by RFC2616 (HTTP/1.1), It lists the reason phrase
as optional, and some webservers actually serve out only the status code without
a reason phrase.

When this is the case, the GCJ version of HttpURLConnection.receiveReply() fails
with an IOException of "Server reply was unparseable".

Attached is a patch that will rectify this problem.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|HttpURLConnection.receiveRep|HttpURLConnection.receiveRep
                   |ly                          |ly() does not deal with code
                   |                            |only responses


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14013


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/14013] HttpURLConnection.receiveReply() does not deal with code only responses
  2004-02-04  6:32 [Bug libgcj/14013] New: HttpURLConnection.receiveReply k dot allan-gcc at au dot darkbluesea dot com
  2004-02-04  6:48 ` [Bug libgcj/14013] HttpURLConnection.receiveReply() does not deal with code only responses k dot allan-gcc at au dot darkbluesea dot com
@ 2004-02-04  6:52 ` k dot allan-gcc at au dot darkbluesea dot com
  2004-02-04  6:59 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: k dot allan-gcc at au dot darkbluesea dot com @ 2004-02-04  6:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From k dot allan-gcc at au dot darkbluesea dot com  2004-02-04 06:52 -------
Created an attachment (id=5677)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5677&action=view)
Patch against gcc/libjava/gnu/java/net/protocol/http/Connection.java

This patch will allow HTTP/1.1 Status lines without Reason phrases to be
parsed.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14013


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/14013] HttpURLConnection.receiveReply() does not deal with code only responses
  2004-02-04  6:32 [Bug libgcj/14013] New: HttpURLConnection.receiveReply k dot allan-gcc at au dot darkbluesea dot com
  2004-02-04  6:48 ` [Bug libgcj/14013] HttpURLConnection.receiveReply() does not deal with code only responses k dot allan-gcc at au dot darkbluesea dot com
  2004-02-04  6:52 ` k dot allan-gcc at au dot darkbluesea dot com
@ 2004-02-04  6:59 ` pinskia at gcc dot gnu dot org
  2004-06-27 16:22 ` mckinlay at redhat dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-04  6:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-04 06:59 -------
Confirm, patches for libjava should to both gcc-patches and java-patches after reading http://
gcc.gnu.org/contribute.html, note this might need to go into classpath also as libjava gets merged in 
from there.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-02-04 06:59:08
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14013


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/14013] HttpURLConnection.receiveReply() does not deal with code only responses
  2004-02-04  6:32 [Bug libgcj/14013] New: HttpURLConnection.receiveReply k dot allan-gcc at au dot darkbluesea dot com
                   ` (2 preceding siblings ...)
  2004-02-04  6:59 ` pinskia at gcc dot gnu dot org
@ 2004-06-27 16:22 ` mckinlay at redhat dot com
  2005-01-07 22:42 ` konqueror at gmx dot de
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mckinlay at redhat dot com @ 2004-06-27 16:22 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |16229
              nThis|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14013


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/14013] HttpURLConnection.receiveReply() does not deal with code only responses
  2004-02-04  6:32 [Bug libgcj/14013] New: HttpURLConnection.receiveReply k dot allan-gcc at au dot darkbluesea dot com
                   ` (3 preceding siblings ...)
  2004-06-27 16:22 ` mckinlay at redhat dot com
@ 2005-01-07 22:42 ` konqueror at gmx dot de
  2005-01-11 20:21 ` cvs-commit at gcc dot gnu dot org
  2005-01-11 20:28 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: konqueror at gmx dot de @ 2005-01-07 22:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From konqueror at gmx dot de  2005-01-07 22:42 -------
I'm working on it. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |konqueror at gmx dot de
                   |dot org                     |
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14013


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/14013] HttpURLConnection.receiveReply() does not deal with code only responses
  2004-02-04  6:32 [Bug libgcj/14013] New: HttpURLConnection.receiveReply k dot allan-gcc at au dot darkbluesea dot com
                   ` (4 preceding siblings ...)
  2005-01-07 22:42 ` konqueror at gmx dot de
@ 2005-01-11 20:21 ` cvs-commit at gcc dot gnu dot org
  2005-01-11 20:28 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-11 20:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-01-11 20:20 -------
Subject: Bug 14013

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mkoch@gcc.gnu.org	2005-01-11 20:19:57

Modified files:
	libjava        : ChangeLog Makefile.am Makefile.in 
	libjava/gnu/java/net/protocol/http: Handler.java 
	libjava/javax/net/ssl: HttpsURLConnection.java 
Added files:
	libjava/gnu/java/net: BASE64.java EmptyX509TrustManager.java 
	                      LineInputStream.java 
	libjava/gnu/java/net/protocol/http: Authenticator.java 
	                                    ByteArrayRequestBodyWriter.java 
	                                    ByteArrayResponseBodyReader.java 
	                                    ChunkedInputStream.java 
	                                    Cookie.java 
	                                    CookieManager.java 
	                                    Credentials.java 
	                                    HTTPConnection.java 
	                                    HTTPDateFormat.java 
	                                    HTTPURLConnection.java 
	                                    Headers.java Request.java 
	                                    RequestBodyWriter.java 
	                                    Response.java 
	                                    ResponseBodyReader.java 
	                                    ResponseHeaderHandler.java 
	                                    SimpleCookieManager.java 
	libjava/gnu/java/net/protocol/http/event: ConnectionEvent.java 
	                                          ConnectionListener.java 
	                                          RequestEvent.java 
	                                          RequestListener.java 
Removed files:
	libjava/gnu/java/net/protocol/http: Connection.java 

Log message:
	2005-01-11  Michael Koch  <konqueror@gmx.de>
	
	PR libgcj/14012, PR libgcj/14013, PR libgcj/15157, PR libgcj/15509
	* gnu/java/net/BASE64.java,
	gnu/java/net/EmptyX509TrustManager.java,
	gnu/java/net/LineInputStream.java,
	gnu/java/net/protocol/http/Authenticator.java,
	gnu/java/net/protocol/http/ByteArrayRequestBodyWriter.java,
	gnu/java/net/protocol/http/ByteArrayResponseBodyReader.java,
	gnu/java/net/protocol/http/ChunkedInputStream.java,
	gnu/java/net/protocol/http/Cookie.java,
	gnu/java/net/protocol/http/CookieManager.java,
	gnu/java/net/protocol/http/Credentials.java,
	gnu/java/net/protocol/http/HTTPConnection.java,
	gnu/java/net/protocol/http/HTTPDateFormat.java,
	gnu/java/net/protocol/http/HTTPURLConnection.java,
	gnu/java/net/protocol/http/Headers.java,
	gnu/java/net/protocol/http/Request.java,
	gnu/java/net/protocol/http/RequestBodyWriter.java,
	gnu/java/net/protocol/http/Response.java,
	gnu/java/net/protocol/http/ResponseBodyReader.java,
	gnu/java/net/protocol/http/ResponseHeaderHandler.java,
	gnu/java/net/protocol/http/SimpleCookieManager.java,
	gnu/java/net/protocol/http/event/ConnectionEvent.java,
	gnu/java/net/protocol/http/event/ConnectionListener.java,
	gnu/java/net/protocol/http/event/RequestEvent.java,
	gnu/java/net/protocol/http/event/RequestListener.java: New files.
	* gnu/java/net/protocol/http/Connection.java: Removed.
	* gnu/java/net/protocol/http/Handler.java,
	javax/net/ssl/HttpsURLConnection.java: Updated.
	* Makefile.am: Added new files and remove old ones.
	* Makefile.in: Regenerated.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3283&r2=1.3284
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.am.diff?cvsroot=gcc&r1=1.434&r2=1.435
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.in.diff?cvsroot=gcc&r1=1.464&r2=1.465
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/BASE64.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/EmptyX509TrustManager.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/LineInputStream.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/Authenticator.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/ByteArrayRequestBodyWriter.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/ByteArrayResponseBodyReader.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/ChunkedInputStream.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/Cookie.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/CookieManager.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/Credentials.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/HTTPConnection.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/HTTPDateFormat.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/HTTPURLConnection.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/Headers.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/Request.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/RequestBodyWriter.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/Response.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/ResponseBodyReader.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/ResponseHeaderHandler.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/SimpleCookieManager.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/Handler.java.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/Connection.java.diff?cvsroot=gcc&r1=1.23&r2=NONE
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/event/ConnectionEvent.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/event/ConnectionListener.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/event/RequestEvent.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/http/event/RequestListener.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/javax/net/ssl/HttpsURLConnection.java.diff?cvsroot=gcc&r1=1.1&r2=1.2



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14013


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/14013] HttpURLConnection.receiveReply() does not deal with code only responses
  2004-02-04  6:32 [Bug libgcj/14013] New: HttpURLConnection.receiveReply k dot allan-gcc at au dot darkbluesea dot com
                   ` (5 preceding siblings ...)
  2005-01-11 20:21 ` cvs-commit at gcc dot gnu dot org
@ 2005-01-11 20:28 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-11 20:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-11 20:27 -------
Fixed. on the mainline.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14013


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-01-11 20:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-04  6:32 [Bug libgcj/14013] New: HttpURLConnection.receiveReply k dot allan-gcc at au dot darkbluesea dot com
2004-02-04  6:48 ` [Bug libgcj/14013] HttpURLConnection.receiveReply() does not deal with code only responses k dot allan-gcc at au dot darkbluesea dot com
2004-02-04  6:52 ` k dot allan-gcc at au dot darkbluesea dot com
2004-02-04  6:59 ` pinskia at gcc dot gnu dot org
2004-06-27 16:22 ` mckinlay at redhat dot com
2005-01-07 22:42 ` konqueror at gmx dot de
2005-01-11 20:21 ` cvs-commit at gcc dot gnu dot org
2005-01-11 20:28 ` pinskia at gcc dot gnu dot org

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).