glib-pacrunner does not support file:// pac files

Bug #981856 reported by Chow Loong Jin
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glib Networking
Fix Released
Medium
glib-networking (Ubuntu)
Fix Released
Undecided
Unassigned
Precise
Fix Released
Undecided
Unassigned

Bug Description

When using a local pac file via file:///path/to/pac-file.pac, glib-pacrunner falls back upon wpad://, thus using either a wrongly-obtained pac file via wpad, or not being able to find a pac file to run in the first place.

This causes issues with Liferea's Webkit-based HTML-view, and probably a couple of other applications I haven't noticed as well.

TEST CASE:
1. Open Liferea
2. Subscribe to the xkcd.com feed
3. Click on one of the feed items
4. Notice that an image is displayed.
5. Save the following as a .pac file, e.g. in /tmp/bug-981856.pac
---->8----
function FindProxyForURL(url, host) {
    return 'DIRECT';
}
----8<-----
6. Quit Liferea
7. Set proxy in GNOME to file:///tmp/bug-981856.pac
9. Open Liferea
10. Click on a previously unopened feed item (the image may be cached)
11. Observe if the image loads
    - With the bugfix in place, it should, but without, it doesn't.

Revision history for this message
Chow Loong Jin (hyperair) wrote :

I'll attach a patch for this shortly.

Revision history for this message
Chow Loong Jin (hyperair) wrote :

Debdiff to fix this

Changed in glib-networking (Ubuntu):
status: New → Confirmed
Changed in glib-networking:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
Bryce Harrington (bryce) wrote :

Heya, thanks for the patch!

Unfortunately development on Precise has closed, as we're now in Final Freeze. This looks like an important bug, but only fixes for issues specifically flagged by the release team can be included in Precise here on out.

However, there's a chance this could get in as a Stable Release Update, which would go out post-release. I'm not certain if this qualifies, but below is a link to the policy document for you to review. It also explains how to update your bug report into an SRU, if you decide this issue really does need fixed in precise. Otherwise, hold tight and this can go in once Q-series opens for development.

https://wiki.ubuntu.com/StableReleaseUpdates

Btw, please also make sure this patch is sent upstream; it likely won't be acceptable as an SRU until then.

I'm unsubscribing ubuntu-sponsors for now; go ahead and re-subscribe them when it's ready to be reviewed again.

Changed in glib-networking (Ubuntu):
status: Confirmed → Incomplete
Changed in glib-networking:
status: New → Fix Released
Revision history for this message
Chow Loong Jin (hyperair) wrote :

Here's an amended debdiff incorporating the patch extracted from upstream git, and targetting precise-proposed instead.

Changed in glib-networking (Ubuntu):
status: Incomplete → Confirmed
milestone: none → precise-updates
description: updated
Revision history for this message
Daniel Holbach (dholbach) wrote :

Patch uploaded, I merely had to run 'update-maintainer'. Ran through the test-case - after updating glib-networking (and restarting the session) it works nicely.

It should be sitting in the SRU/Release queue now.

Changed in glib-networking (Ubuntu Precise):
status: Confirmed → Fix Committed
Revision history for this message
Daniel Holbach (dholbach) wrote :

Unsubscribing sponsors for now.

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Chow, or anyone else affected,

Accepted glib-networking into precise-proposed. The package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Martin Pitt (pitti) wrote :

Anyone who can test this?

Revision history for this message
Daniel Holbach (dholbach) wrote :

I tested the instructions in the initial comment and it worked for me.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package glib-networking - 2.32.1-1ubuntu1

---------------
glib-networking (2.32.1-1ubuntu1) precise-proposed; urgency=low

  * debian/patches/fix-file-scheme-pacfiles.patch:
    - Allow usage of file:// pac files (LP: #981856)
 -- Chow Loong Jin <email address hidden> Tue, 24 Apr 2012 09:20:08 +0800

Changed in glib-networking (Ubuntu):
status: Fix Committed → Fix Released
Changed in glib-networking (Ubuntu Precise):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.