Network proxy settings does not keep "DIRECT" value in apt.conf when set back to method "None"

Bug #877254 reported by Nobuto Murata
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-system-service (Ubuntu)
Confirmed
Undecided
Unassigned
Oneiric
Won't Fix
Undecided
Unassigned

Bug Description

Network proxy settings in gnome-control-center removes Acquire::*::proxy::HOST "DIRECT" value when set proxy method "None".

NOTE: Acquire::*::proxy::HOST "DIRECT" works as no_proxy for APT.

How to reproduce:
  1. open network settings in gnome-control-center
  2. set proxy like the example below:
      * method - manual
      * HTTP Proxy - example.com:8080
      * HTTPS Proxy - example.com:8090
  3. press "Apply system wide"
      - confirm proxy settings are written in /etc/apt/apt.conf
  4. add the line below into /etc/apt/apt.conf manually
      - Acquire::http::proxy::server1.local "DIRECT";
  5. add the line below into /etc/apt/apt.conf.d/90no-proxy.conf
      - Acquire::http::proxy::server2.local "DIRECT";
  6. turn off proxy by set back the Method to "None" and press "Apply system wide" again.

Expected to happen:
  7. the three lines below are removed from /etc/apt/apt.conf
          - Acquire::http::proxy "http://example.com:8080/";
          - Acquire::https::proxy "http://example.com:8080/";
          - Acquire::ftp::proxy "http://example.com:8080/";
     but leave the lines below in /etc/apt/apt.conf and /etc/apt/apt.conf.d/90no-proxy.conf as is to be useful for the next time.
          - Acquire::http::proxy::server1.local "DIRECT";
          - Acquire::http::proxy::server2.local "DIRECT";

What happened instead:
  7. the three lines are removed and also "DIRECT" lines are removed.

NOTE:
"Apply system wide" for /etc/environment leave no_proxy value as is.

ProblemType: BugDistroRelease: Ubuntu 11.10
Package: gnome-control-center 1:3.2.0-0ubuntu6
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
CasperVersion: 1.285
Date: Tue Oct 18 05:07:00 2011
LiveMediaBuild: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bashSourcePackage: gnome-control-center
UpgradeStatus: No upgrade log present (probably fresh install)
usr_lib_gnome-control-center:
 deja-dup 20.0-0ubuntu3
 gnome-bluetooth 3.2.0-0ubuntu1
 indicator-datetime 0.3.0-0ubuntu3

Revision history for this message
Nobuto Murata (nobuto) wrote :
description: updated
summary: Network proxy settings does not keep "DIRECT" value in apt.conf when set
- method "None"
+ back to method "None"
Changed in gnome-control-center (Ubuntu):
assignee: nobody → Rodrigo Moya (rodrigo-moya)
Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

This is a bug in ubuntu-system-service again, which is the responsible for writing the proxy settings to /etc/apt/apt.conf.

affects: gnome-control-center (Ubuntu) → ubuntu-system-service (Ubuntu)
Changed in ubuntu-system-service (Ubuntu):
assignee: Rodrigo Moya (rodrigo-moya) → nobody
Michael Vogt (mvo)
Changed in ubuntu-system-service (Ubuntu Oneiric):
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Nobuto, or anyone else affected,

Accepted ubuntu-system-service into oneiric-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!

Changed in ubuntu-system-service (Ubuntu Oneiric):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Nobuto Murata (nobuto) wrote :

ubuntu-system-service/oneiric-proposed 0.1.26.1 works fine. It keeps all "DIRECT" values.

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-system-service (Ubuntu):
status: New → Confirmed
Revision history for this message
Rolf Leggewie (r0lf) wrote :

oneiric has seen the end of its life and is no longer receiving any updates. Marking the oneiric task for this ticket as "Won't Fix".

Changed in ubuntu-system-service (Ubuntu Oneiric):
status: Fix Committed → Won't Fix
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.