Closed Bug 280893 Opened 20 years ago Closed 20 years ago

Applets hang when using plugin 1.5 in Linux with Mozilla 1.7.x when authentication is turned on the webserver

Categories

(Core Graveyard :: Plug-ins, defect)

1.7 Branch
x86
Linux
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: thatts, Unassigned)

References

()

Details

(Keywords: hang)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041217
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041217 

Client - Mozilla 1.7.5
https Webserver - with authentication turned on

A DESCRIPTION OF THE PROBLEM :
  From my applet when I tried to make a URL connection and geinputstream the
browser hangs. I have authentication turned on the webserver. I think the plugin
is trying to popup the login dialog and some how it can't do that and hangs
there.
This works okay with jre1.5 on windows
On Linux it works with jre1.4.2 but not 1.5

Here is the code

String str = "https://ppp.qqq.com/admin/test.gif";
    try {
      
      System.out.println("Getting ->" +str);
      URL url = new URL(str);
      
      URLConnection con = url.openConnection();
      
      if(con.getAllowUserInteraction())
        System.out.println("User interaction allowed");
      else
        System.out.println("User interaction not allowed");
        
      con.setDoInput(true);
      InputStream _inp = con.getInputStream(); //Hangs here
}

Reproducible: Always

Steps to Reproduce:
1.Access a website with applet
2.Inside the applet make a call to fetch some file from the webserver using
URLConnection
3.Have authentication turned on the webserver

Actual Results:  
Mozilla hangs. Have to use kill -9 pid to close the process.
Enabled http log on the browser and got the following log

nsHttpResponseHead::Reset 
1077631840[8081fc8]: Destroying nsHttpConnectionInfo @864bc70 
1077631840[8081fc8]: nsHttpHandler::Observe [topic="timer-callback"] 
1077631840[8081fc8]: nsSocketTransportService::PostEvent [event=84d5198] 
1091439936[81e7450]: nsHttpConnectionMgr::OnMsgPruneDeadConnections 
1091439936[81e7450]:   calling PR_Poll [active=0 idle=0] 
1077631840[8081fc8]: nsHttpHandler::Observe [topic="timer-callback"] 
1077631840[8081fc8]: nsSocketTransportService::PostEvent [event=84d5198] 
1091439936[81e7450]: nsHttpConnectionMgr::OnMsgPruneDeadConnections 
1091439936[81e7450]:   calling PR_Poll [active=0 idle=0] 
1077631840[8081fc8]: nsHttpAuthCache::GetAuthEntryForDomain
[key=https://xxx.xxx.59.219:443 realm=PIX]  -> ipaddress changed here



Expected Results:  
The applet shold have been loaded normally.

The same problem happens with Firefox 1.0 also.
Version: unspecified → 1.7 Branch
plugins (OJI?)
Assignee: general → nobody
Component: General → Plug-ins
Keywords: hang
Product: Mozilla Application Suite → Core
QA Contact: general → plugins
This is not a mozilla problem. SUN confirmed this as a bug in their jva plugin 
1.5. Here are the details 

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6226589

So please go ahead and close it.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.