Closed Bug 240061 Opened 22 years ago Closed 21 years ago

Cookies are not passed from Java applets.

Categories

(Core :: Networking: Cookies, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED EXPIRED

People

(Reporter: jason, Assigned: darin.moz)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040307 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040307 Only on Windows(98SE), with Mozilla 1.6 and Java Plug-in 1.4.2_04 for Netscape Navigator, when my applet makes an HTTP (GET) request to a servlet, the cookie headers are not being sent, so I can't maintain a session. Even after a session cookie has been established, as by viewing a servlet page, the applet is not passing the cookie header: though all other headers are coming through. This bug only appears in Moz' on Windows. I.E. works properly on the same machine, same Java plug-in (so this doesn't look like a Java issue). Also, Mozilla 1.6 on Linux does not have this problem either. Just 1.6 on Windows 98SE is this a bug, as far as I know. Reproducible: Always Steps to Reproduce: 1.Write a servlet or CGI that sets a session cookie and outputs all headers 2.Write an applet that calls it 3.Notice the cookie header is passed when you call the page directly, but not when the applet calls it Actual Results: The browser sends cookie headers when the page is requested directly, but it is omitted when the applet calls it. Expected Results: The cookie header should be added, as with the browsers/platforms that work properly. This just uses basic URL connection code, as follows: URL servletURL = new URL(BASE_URL, MY_PATH); URLConnection connection = servletURL.openConnection(); connection.setDoOutput(true); BufferedReader input = new BufferedReader(new InputStreamReader(connection.getInputStream())); while ((line = input.readLine()) != null) ...
darin, any ideas on how the java plugin might be related to this?
Is this a dup of bug 239933? Jason, does it work if you change your cookie prefs, as described in bug 239933?
Yes, actually. I didn't know about the workaround, thanks! I hope my comments help, anyway.
This is an automated message, with ID "auto-resolve01". This bug has had no comments for a long time. Statistically, we have found that bug reports that have not been confirmed by a second user after three months are highly unlikely to be the source of a fix to the code. While your input is very important to us, our resources are limited and so we are asking for your help in focussing our efforts. If you can still reproduce this problem in the latest version of the product (see below for how to obtain a copy) or, for feature requests, if it's not present in the latest version and you still believe we should implement it, please visit the URL of this bug (given at the top of this mail) and add a comment to that effect, giving more reproduction information if you have it. If it is not a problem any longer, you need take no action. If this bug is not changed in any way in the next two weeks, it will be automatically resolved. Thank you for your help in this matter. The latest beta releases can be obtained from: Firefox: http://www.mozilla.org/projects/firefox/ Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html Seamonkey: http://www.mozilla.org/projects/seamonkey/
This bug has been automatically resolved after a period of inactivity (see above comment). If anyone thinks this is incorrect, they should feel free to reopen it.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → EXPIRED
You need to log in before you can comment on or make changes to this bug.