PAC file is not loaded when changing mode "Use proxies based on their pre-defined patterns and priorities"

Hello,
I have faced the following behaviour (see below) and I think it is a bug.

I have the following configuration:
DIRECT_ACCESS : direct access for trafic intended to 127.0.0.0/8 (my PAC file forbid access to localhost)
PAC_FILE : proxy.mydomain port 3128 for http://.*/.*\.(zip|iso|rar...)$
Default: direct access

Here is the buggy behaviour :
1) configure foxyproxy to "Use DIRECT_ACCESS for any URL"
2) close firefox
3) open firefox
4) configure foxyproxy to "Use proxies based on their pre-defined patterns and priorities"
Result: The PAC file will not be loaded !

Here is the workaround I found :
5) configure foxyproxy to "Use PAC_FILE for any URL" (this make foxyproxy load the PAC file)
6) configure foxyproxy to "Use proxies based on their pre-defined patterns and priorities"

This not really a big deal, but I think the PAC file should be loaded at step 4 so I reported it.

ERRATA

Sorry, I made a mistake on the line:
PAC_FILE : proxy.mydomain port 3128 for http://.*/.*\.(zip|iso|rar...)$

It should read:
PAC_FILE : use PAC file at http://wpad.mydomain/proxy.pac

Thanks for the information.

Thanks for the information. I"ll test it to see if I can reproduce it. Sounds like an easy thing to fix if it is consistent. Are you really using wpad?

Eric

Yes I am using wpad. For the

Yes I am using wpad.

For the sake of clarity, I give my configuration (without mistake):
DIRECT_ACCESS : direct access for trafic intended to 127.0.0.0/8 (my PAC file forbid access to localhost)
PAC_FILE : use PAC file at http://wpad.mydomain/proxy.pac
Default: direct access

Hi, It's working for me.

Hi,

It's working for me. After I open Firefox and switch FoxyProxy to "Use proxies based on their pre-defined patterns and priorities", I see the sliding notification from FoxyProxy telling me it loaded the PAC file. Maybe if you post your foxyproxy.xml file (removing private info), I can find the problem.

Based on the rules you defined, which proxy should load the proxy.pac file? DIRECT_ACCESS or ?

Oups

Hi,
Well, I do not know how to say that ... Its working for me too now ...
Sorry for wasting your time !
I do not understand what happened.

Just for the record, I

Just for the record, I eventually found what happens:
1) from foxy proxy configured to "Use proxies based on their pre-defined patterns and priorities"
2) close firefox
3) connect to a network from which the PAC file is not available
4) open firefox
5) foxy proxy tries to get the PAC file but cannot -> this will make the proxy configuration "PAC_FILE" disable.
6) configure foxyproxy to always use DIRECT_ACCESS
7) close firefox
8) connect to a network where the PAC file is available
9) open firefox
10) configure foxyproxy to "Use proxies based on their pre-defined patterns and priorities", this will not load the PAC file since the proxy "PAC_FILE" is disabled.

Do you consider this as a bug ? (I would understand if you don't, maybe that is what you want foxyproxy to do)

I don't consider that a bug,

I don't consider that a bug, but I'm open to suggestions as to how else FoxyProxy should work. I imagine you want step 10 to be:

10. FoxyProxy automatically knows which proxies it disabled due to unresolved PAC files, and then re-enables them in order to try to get the PAC again.

Is that correct?

Yes indeed, that would be

Yes indeed, that would be great !

Nevertheless, I would understand if implementing such a functionality is not a priority for you.

Thanks for your answers anyway !