Closed Bug 61669 Opened 24 years ago Closed 23 years ago

Embedding Apps can't do basic auth repeatedly, due to cache [squid proxy]


(Core Graveyard :: Embedding: APIs, defect, P3)



(Not tracked)



(Reporter: edburns, Assigned: darin.moz)



(Whiteboard: [cache])


My embedding app implements nsIPrompt to allow the user to provide username
and password data on a URL fetch.

If your disk cache is clear, and you visit a url with basic auth, it works 
fine.  However, if, at a later session, you visit the same URL, it will not 
work.  Disabling the cache prevents this problem.

Please re-assign to the cache person.
Assignee: valeski → gordon
-> g
*** Bug 59981 has been marked as a duplicate of this bug. ***
Blocks: 59866
Here's the pref to disable the cache:

user_pref("browser.cache.disk_cache_size", 0);
Blocks: 60304
QA Contact: jrgm → mdunn
Updating QA Contact
Blocks: 64833, 70229
This bug seems pretty major, and blocks bug #60304 which is also pretty major. 
Any chance of getting this escalated -- or at least set to a specific milestone?
Target Milestone: --- → mozilla0.9.1
Correction: Changing QA contact for the Embed API bugs to David Epstein.
QA Contact: mdunn → depstein
Ed, is this still a problem with the lastest builds.  We have a new cache and 
we've cleaned up the HTTP validation code quite a bit.
Whiteboard: [cache]
Keywords: qawanted
Target Milestone: mozilla0.9.1 → mozilla0.9.2
It doesn't authenticate at all to me. When I use the TestGtkEmbed and the
authentication dialog appears I can fill in any name/password value (even the
correct one) but the authenticated page never appears only the dialog reappears
again and again. Only the Cancel button works fine -> the authentication error
page appears.
basic auth works just fine for me using TestGtkEmbed.  can you please supply
a testcase for this bug?  thx!
You can try this URL:

User: josef Password: nechvil

I'm using a squid proxy to connect to Internet (I have no other possibility).

I've retested it with my own trunk build from 2001-06-12 and it still doesn't work.
OK.. using a Netscape Proxy, I'm not having any trouble authenticating with the
testcase you provided.  Time to try squid.
-> me
Assignee: gordon → darin
OK.. once i setup a squid proxy i was able to duplicate this bug.
oops... i take that back... it seems to work just fine for me.
i previously mistyped the password :P

so, i'm not sure how to reproduce this bug.

Tom: could you get a packet trace?  (using a tool like ngrep --, and if you have a debug build could you try
getting a HTTP log by setting the NSPR_LOG_MODULES=nsHttp:5 and NSPR_LOG_FILE=log
environment variables?  if you could generate either of these it would greatly
help in tracking down the cause of this problem.  thanks!
Summary: Embedding Apps can't do basic auth repeatedly, due to cache → Embedding Apps can't do basic auth repeatedly, due to cache [squid proxy]
So I've made more tests and it seems that with the M0.9.1 it doesn't work at all 
no matter when using/not using proxy. But I've made fresh trunk checkout and
recompiled it and it is FIXED now! So it could be probably resolved as WFM.
Closed: 23 years ago
Resolution: --- → WORKSFORME
No longer blocks: 64833
was able to authenticate w/ above case.
No longer blocks: 60304
Keywords: qawanted
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.