Proxy tunnel is running when not needed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu One Client |
Triaged
|
High
|
Manuel de la Peña | ||
ubuntuone-client (Ubuntu) |
Triaged
|
Undecided
|
Manuel de la Peña |
Bug Description
def check_proxy_
"""Check if the proxy is enabled."""
port = int(port)
if sys.platform.
settings = gsettings.
enabled = len(settings) > 0
if enabled:
proxy = build_proxy(
else:
return enabled
else:
query = QNetworkProxyQu
proxies = QNetworkProxyFa
# This is wrong -------
return len(proxies) and proxies[0].type() != QNetworkProxy.
When proxy is not enabled:
>>> from PyQt4.QtNetwork import (QNetworkProxyF
>>> QNetworkProxyFa
>>> query = QNetworkProxyQu
>>> proxies = QNetworkProxyFa
>>> proxies
[<PyQt4.
>>> proxies[0]
<PyQt4.
>>> proxies[0].type()
2
Where 2 = QNetworkProxy.
Checked on Ubuntu and Windows
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ubuntuone-client 3.0.0-0ubuntu1
ProcVersionSign
Uname: Linux 3.2.0-23-generic x86_64
ApportVersion: 2.0.1-0ubuntu4
Architecture: amd64
Date: Thu Apr 19 14:15:36 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120225)
PackageArchitec
SourcePackage: ubuntuone-client
UbuntuOneSyncda
UpgradeStatus: No upgrade log present (probably fresh install)
summary: |
- Proxy started when not needed + Proxy tunnel started when not needed |
Changed in ubuntuone-client: | |
status: | New → Triaged |
Changed in ubuntuone-client (Ubuntu): | |
status: | New → Triaged |
Changed in ubuntuone-client: | |
importance: | Undecided → High |
tags: | added: desktop+ |
summary: |
- Proxy tunnel started when not needed + Proxy tunnel is running when not needed |
I have to note that the original check indeed works on Ubuntu so this is not a simple "replace checks" task, needs to be investigated on both platforms.