Closed Bug 61944 Opened 25 years ago Closed 25 years ago

Setting a Cookie thru' an applet does not work in case of Secure sites (https:)

Categories

(Core Graveyard :: Java: OJI, defect, P3)

Sun
Other
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: rpallath, Assigned: edburns)

References

()

Details

(Whiteboard: [oji_working])

Attachments

(1 file)

This caseis wheren in an applet tries to set a cookie by invoking a*.cgi from a secure site (https://) using URL connection. It throws an exception on the Console Throws IO Exception.caught java.net.UnknownServiceException: input from HTTPs not expected until OutputStream is closed.
Attached file Java Source File
This case works if the URL is opened from a non-secure site. (http://). The HTML source is <HTML> <HEAD> <TITLE>Set Cookie Applet</TITLE> </HEAD> <CENTER><H1>Set Cookie Applet</H1> <APPLET CODEBASE="../classes" CODE="CookieApplet.class" WIDTH=400 HEIGHT=250> <PARAM NAME=protocol VALUE="https"> <PARAM NAME=hostname VALUE=""> <PARAM NAME=port VALUE="7070"> <PARAM NAME=cgiStr VALUE="/cgi-bin/set_cookie.cgi"> </APPLET> </CENTER> </BODY> </HTML>
Added myself to CC list
Could be related to 60228
*** Bug 51775 has been marked as a duplicate of this bug. ***
*** Bug 51899 has been marked as a duplicate of this bug. ***
Status: NEW → ASSIGNED
Whiteboard: [oji_working]
Actually after unchecked the TLS option in the security manager and at same time, comment out the inConn.setDoOutput(true) (Because if this is set, Input will be set to false and that is not we wanted), you can see the correct display. Marked this bug as fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Verified fixed.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: