Closed
Bug 296163
Opened 19 years ago
Closed 19 years ago
Auto-detect proxy settings (proxy configuration over a URL, PAC) doesn't work if PAC file contains non-ASCII text
Categories
(Core :: Networking, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.8beta3
People
(Reporter: bugzilla.alex, Assigned: darin.moz)
References
Details
(Keywords: regression)
Attachments
(5 files)
38.52 KB,
text/plain
|
Details | |
163.52 KB,
text/plain
|
Details | |
20.83 KB,
text/plain
|
Details | |
1.45 KB,
patch
|
Biesinger
:
review+
asa
:
approval-aviary1.1a2+
asa
:
approval1.8b3+
|
Details | Diff | Splinter Review |
38.39 KB,
text/plain
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050518 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050530 The proxy configuration over a URL like http://proxyconf doesn't work. Sites with access over the proxy could not be reach. I found the problem with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050518 and reproduce it with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050530 There are no problems with the release version of Mozilla 1.8b. Reproducible: Always Steps to Reproduce: Use a proxyserver to access sites and use a configuration scrit to setup the browser.
Updated•19 years ago
|
Assignee: general → darin
Component: General → Networking
Keywords: regression
Product: Mozilla Application Suite → Core
QA Contact: general → benc
Version: unspecified → Trunk
Reporter | ||
Comment 1•19 years ago
|
||
The proxy configuration file was loaded from Mozilla but was not used to set up the proxy.
Comment 2•19 years ago
|
||
A good way to get closer to the problem is to test nightly builds between this two beta releases. When does the bug first occur? If we have a date then we could take a look at the checkins on that day. Are the URLs you trying to load in inside your LAN? Do they contain secret content or can you post the content of the pac file?
Reporter | ||
Comment 3•19 years ago
|
||
Do you have any nighly builds between February and Mai? The oldest builds on ftp.mozilla.org are from middle Mai. I have no builds from this time. The URL for the PAC is in our LAN but I think I could post a part of the PAC when I delete the the IPs.
Comment 4•19 years ago
|
||
try http://archive.mozilla.org maybe
Comment 5•19 years ago
|
||
BTW: Does it work when you manually press the button "Reload" in the Proxy configuration dialog?
Reporter | ||
Comment 6•19 years ago
|
||
It doesn't work when I press "Reload". I have only a connection to the Internet when I manually enter the proxyserver and port. The tests with the older nightlies following in the next week.
*** Bug 296445 has been marked as a duplicate of this bug. ***
Summary: proxy configuration over a URL doesn't work → Auto-detect proxy settings (proxy configuration over a URL, PAC) doesn't work
Comment 8•19 years ago
|
||
Mmh while using a pac file for myself at work I can't reproduce this with Deer Park Alpha 1. I've only the problem that it doesn't work on startup when loading the homepage. Reloading the page shows it correctly. But this is bug 247057.
Assignee | ||
Comment 9•19 years ago
|
||
based on the log file, this appears to be a duplicate of bug 100022. the PAC file is loaded after the home page is loaded. *** This bug has been marked as a duplicate of 100022 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 10•19 years ago
|
||
The two bugs (296163 and 100022) are not the same. The auto-detect has always worked and with the actual version it never work. Not with the first page, not with the second, no page will be loaded over the proxy when the proxy settings will be set over a PAC. You can get also a debug log with 20 retrys of different pages.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Comment 11•19 years ago
|
||
> You can get also a debug log with 20 retrys of different pages.
could you attach that one?
Reporter | ||
Comment 12•19 years ago
|
||
> > You can get also a debug log with 20 retrys of different pages.
> could you attach that one?
Thats no problem, I can attach it tomorrow.
How long I must be wait befor I reload the page? Until the timeout?
When I find enouth free time tomorrow I will test different nightly from the
last months to say the first version with this problem. Otherwise I will test it
in the current week.
Reporter | ||
Comment 13•19 years ago
|
||
In this file I made several retrys for two domains. For the last retry I made a manual reload from the proxy config file.
Comment 14•19 years ago
|
||
Btw. do you get any error within the JavaScript Console? Don't forget to activate strict javascript warnings and there showing.
Reporter | ||
Comment 15•19 years ago
|
||
I have activate the JS Warnings and made a restart from Mozilla but I get no entrys in the JavaScript Console.
Assignee | ||
Comment 16•19 years ago
|
||
Can you load http://proxyconf/ in a browser window and copy the contents to this bug report? That would help us debug the problem. Thanks!
Reporter | ||
Comment 17•19 years ago
|
||
Assignee | ||
Comment 18•19 years ago
|
||
It appears that the PAC file contains some non-ASCII text. The new isAscii check in nsPACMan.cpp is getting hit, and that is causing the PAC load to fail: http://lxr.mozilla.org/mozilla/source/netwerk/base/src/nsPACMan.cpp#376 Perhaps we should ignore that error, and just proceed to treat the text as ISO-Latin-1. That would be consistent with the older versions of the browser.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Assignee | ||
Updated•19 years ago
|
Target Milestone: --- → mozilla1.8beta3
Assignee | ||
Comment 19•19 years ago
|
||
The non-ASCII byte 0xCF appears twice in the PAC file, but in both cases it only appears inside a comment section. So, treating it as ISO-Latin-1 when converting to Unicode would not cause any problems for this PAC file.
Assignee | ||
Comment 20•19 years ago
|
||
Attachment #186141 -
Flags: review?(cbiesinger)
Comment 21•19 years ago
|
||
Comment on attachment 186141 [details] [diff] [review] v1 patch people wanting to use IDN or somesuch will just have to use \u1234 escapes, I guess..
Attachment #186141 -
Flags: review?(cbiesinger) → review+
Comment 22•19 years ago
|
||
(unless, of course, ISO-8859-1 suffices for them)
Assignee | ||
Comment 23•19 years ago
|
||
Comment on attachment 186141 [details] [diff] [review] v1 patch This patch restores our code to the way it was in Gecko versions 1.8b1 and earlier.
Attachment #186141 -
Flags: approval1.8b3?
Attachment #186141 -
Flags: approval-aviary1.1a2?
Updated•19 years ago
|
Attachment #186141 -
Flags: approval1.8b3?
Attachment #186141 -
Flags: approval1.8b3+
Attachment #186141 -
Flags: approval-aviary1.1a2?
Attachment #186141 -
Flags: approval-aviary1.1a2+
Assignee | ||
Comment 24•19 years ago
|
||
fixed-on-trunk
Status: ASSIGNED → RESOLVED
Closed: 19 years ago → 19 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 25•19 years ago
|
||
It works fine. Thanks. testet with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050621
Comment 26•19 years ago
|
||
This bug isn't fully fixed. At work we are using the rewrite engine of apache on the web server. In that case the pac file couldn't be loaded by the first connection. It seems that only one connection is made to retrieve the pac file before the start page is loaded? I'll attach my HTTP log.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Whiteboard: [checkin needed]
Comment 27•19 years ago
|
||
Assignee | ||
Comment 28•19 years ago
|
||
Henrik: I think you are talking about a different bug. This bug is about a regression that occured recently involving non-ASCII characters appearing in the text of the PAC file. I think there is already a bug on file regarding the issue you are describing, and I have a patch for that. See bug 100022. Marking FIXED (again)
Status: REOPENED → RESOLVED
Closed: 19 years ago → 19 years ago
Resolution: --- → FIXED
Summary: Auto-detect proxy settings (proxy configuration over a URL, PAC) doesn't work → Auto-detect proxy settings (proxy configuration over a URL, PAC) doesn't work if PAC file contains non-ASCII text
Comment 29•19 years ago
|
||
I'm using TB 1.1a 20050622 and I get a problem with the autoload of proxy info. The pac file may have non-ascii chars in it? The header looks like this. I can't post any more because it has server names /* DO NOT EDIT! DO NOT EDIT! DO NOT EDIT! DO NOT EDIT! 1,1,-1,-1 1,.aaa.com * Proxy autoconfig file for Netscape Navigator * Generated by Netscape-Proxy/2.5 * Generated on Mon Dec 30 18:28:20 1996 * * DO NOT EDIT! DO NOT EDIT! DO NOT EDIT! DO NOT EDIT! *Any changes you make could be overwritten by the admin interface */ function FindProxyForURL(url, host) { // Direct connections to non-aaa hosts if (isPlainHostName(host)) { return "DIRECT"; } // Direct connections to local domain This caused the endless throbber in TB. The JavaScript console reports: Error: redeclaration of const kMailToLength Source File: chrome://communicator/content/nsContextMenu.js Line: 13 Error: redeclaration of const imgICache Source File: chrome://communicator/content/contentAreaUtils.js Line: 232 Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: chrome://messenger- newsblog/content/Feed.js :: anonymous :: line 174" data: no] Source File: chrome://messenger-newsblog/content/Feed.js Line: 174 (Twice) Is this the same bug? thanks
Assignee | ||
Comment 30•19 years ago
|
||
will: please file a new bug, and attach a PAC file that demonstrates the problem. if you cannot attach the PAC file from your company, then please create a reduced version that you can submit to the new bug report that you file. thanks!
Comment 31•19 years ago
|
||
(In reply to comment #29) > This caused the endless throbber in TB. The JavaScript console reports: > > Error: redeclaration of const kMailToLength > Source File: chrome://communicator/content/nsContextMenu.js > Line: 13 > > Error: redeclaration of const imgICache > Source File: chrome://communicator/content/contentAreaUtils.js > Line: 232 Will, none of this errors are related to this bug. kMailToLength is already covered by bug 298624 where I already attached a patch. imgICache will come tomorrow.
You need to log in
before you can comment on or make changes to this bug.
Description
•