You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Richard Liang (JIRA)" <ji...@apache.org> on 2006/05/17 16:24:08 UTC

[jira] Created: (HARMONY-472) java.net.HttpURLConnection.getOutputStream will throw ProtocolException when it's connected

java.net.HttpURLConnection.getOutputStream will throw ProtocolException when it's connected
-------------------------------------------------------------------------------------------

         Key: HARMONY-472
         URL: http://issues.apache.org/jira/browse/HARMONY-472
     Project: Harmony
        Type: Bug

  Components: Classlib  
    Reporter: Richard Liang
    Priority: Minor
 Attachments: luni.src.diff

Hello,

java.net.HttpURLConnection.getOutputStream will throw ProtocolException when it's connected. The following test case will fail on Harmony but pass on RI.

public void test_getOutputStream_afterConnection() throws Exception {
        URLConnection uc = new URL("http://www.apache.org").openConnection();
        uc.setDoOutput(true);
        uc.connect();
        assertNotNull(uc.getOutputStream());
    }

Best regards,
Richard.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (HARMONY-472) java.net.HttpURLConnection.getOutputStream will throw ProtocolException when it's connected

Posted by "George Harley (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-472?page=all ]
     
George Harley resolved HARMONY-472:
-----------------------------------

    Resolution: Fixed

Hi Richard,

Patch committed in revision 407752. Please could you verify that the fix has been applied as expected. 

Many thanks for this enhancement. 

Best regards, 
George

> java.net.HttpURLConnection.getOutputStream will throw ProtocolException when it's connected
> -------------------------------------------------------------------------------------------
>
>          Key: HARMONY-472
>          URL: http://issues.apache.org/jira/browse/HARMONY-472
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Richard Liang
>     Assignee: George Harley
>     Priority: Minor
>  Attachments: luni.src.diff
>
> Hello,
> java.net.HttpURLConnection.getOutputStream will throw ProtocolException when it's connected. The following test case will fail on Harmony but pass on RI.
> public void test_getOutputStream_afterConnection() throws Exception {
>         URLConnection uc = new URL("http://www.apache.org").openConnection();
>         uc.setDoOutput(true);
>         uc.connect();
>         assertNotNull(uc.getOutputStream());
>     }
> Best regards,
> Richard.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (HARMONY-472) java.net.HttpURLConnection.getOutputStream will throw ProtocolException when it's connected

Posted by "George Harley (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-472?page=all ]

George Harley reassigned HARMONY-472:
-------------------------------------

    Assign To: George Harley

> java.net.HttpURLConnection.getOutputStream will throw ProtocolException when it's connected
> -------------------------------------------------------------------------------------------
>
>          Key: HARMONY-472
>          URL: http://issues.apache.org/jira/browse/HARMONY-472
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Richard Liang
>     Assignee: George Harley
>     Priority: Minor
>  Attachments: luni.src.diff
>
> Hello,
> java.net.HttpURLConnection.getOutputStream will throw ProtocolException when it's connected. The following test case will fail on Harmony but pass on RI.
> public void test_getOutputStream_afterConnection() throws Exception {
>         URLConnection uc = new URL("http://www.apache.org").openConnection();
>         uc.setDoOutput(true);
>         uc.connect();
>         assertNotNull(uc.getOutputStream());
>     }
> Best regards,
> Richard.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (HARMONY-472) java.net.HttpURLConnection.getOutputStream will throw ProtocolException when it's connected

Posted by "Richard Liang (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-472?page=comments#action_12412732 ] 

Richard Liang commented on HARMONY-472:
---------------------------------------

Hello George,

Thanks a lot. The fix works fine :-)

Best regards,
Richard

> java.net.HttpURLConnection.getOutputStream will throw ProtocolException when it's connected
> -------------------------------------------------------------------------------------------
>
>          Key: HARMONY-472
>          URL: http://issues.apache.org/jira/browse/HARMONY-472
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Richard Liang
>     Assignee: George Harley
>     Priority: Minor
>  Attachments: luni.src.diff
>
> Hello,
> java.net.HttpURLConnection.getOutputStream will throw ProtocolException when it's connected. The following test case will fail on Harmony but pass on RI.
> public void test_getOutputStream_afterConnection() throws Exception {
>         URLConnection uc = new URL("http://www.apache.org").openConnection();
>         uc.setDoOutput(true);
>         uc.connect();
>         assertNotNull(uc.getOutputStream());
>     }
> Best regards,
> Richard.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (HARMONY-472) java.net.HttpURLConnection.getOutputStream will throw ProtocolException when it's connected

Posted by "Richard Liang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-472?page=all ]

Richard Liang updated HARMONY-472:
----------------------------------

    Attachment: luni.src.diff

Hello,

Please try my patch. Thanks a lot.

Best regards,
Richard

> java.net.HttpURLConnection.getOutputStream will throw ProtocolException when it's connected
> -------------------------------------------------------------------------------------------
>
>          Key: HARMONY-472
>          URL: http://issues.apache.org/jira/browse/HARMONY-472
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Richard Liang
>     Priority: Minor
>  Attachments: luni.src.diff
>
> Hello,
> java.net.HttpURLConnection.getOutputStream will throw ProtocolException when it's connected. The following test case will fail on Harmony but pass on RI.
> public void test_getOutputStream_afterConnection() throws Exception {
>         URLConnection uc = new URL("http://www.apache.org").openConnection();
>         uc.setDoOutput(true);
>         uc.connect();
>         assertNotNull(uc.getOutputStream());
>     }
> Best regards,
> Richard.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (HARMONY-472) java.net.HttpURLConnection.getOutputStream will throw ProtocolException when it's connected

Posted by "George Harley (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-472?page=all ]
     
George Harley closed HARMONY-472:
---------------------------------


Verified by Richard. 

> java.net.HttpURLConnection.getOutputStream will throw ProtocolException when it's connected
> -------------------------------------------------------------------------------------------
>
>          Key: HARMONY-472
>          URL: http://issues.apache.org/jira/browse/HARMONY-472
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Richard Liang
>     Assignee: George Harley
>     Priority: Minor
>  Attachments: luni.src.diff
>
> Hello,
> java.net.HttpURLConnection.getOutputStream will throw ProtocolException when it's connected. The following test case will fail on Harmony but pass on RI.
> public void test_getOutputStream_afterConnection() throws Exception {
>         URLConnection uc = new URL("http://www.apache.org").openConnection();
>         uc.setDoOutput(true);
>         uc.connect();
>         assertNotNull(uc.getOutputStream());
>     }
> Best regards,
> Richard.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira