Bug 36655 - Yet another exception with bad profile and content roaming
Summary: Yet another exception with bad profile and content roaming
Alias: None
Product: papyon
Classification: Unclassified
Component: general (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: papyon-bugs
QA Contact:
Depends on:
Reported: 2011-04-28 05:28 UTC by Riccardo (c10ud)
Modified: 2011-08-14 07:25 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description Riccardo (c10ud) 2011-04-28 05:28:28 UTC
This can happen if the user has a really bad profile.
The fix is to tell the user to fix his/her/its profile, but to prevent the eventual exception a tiny diff is necessary.

diff --git a/papyon/service/ContentRoaming/storage.py b/papyon/service/ContentRoaming/storage.py
index 908056f..6c79cba 100644
--- a/papyon/service/ContentRoaming/storage.py
+++ b/papyon/service/ContentRoaming/storage.py
@@ -145,7 +145,8 @@ class Storage(SOAPService):
         def request_static_tile(error, *args):
             # Request using the PreAuthURL didn't work, try with static tilephoto
             scheme, host, port, resource = url_split(user_tile_url)
-            self.get_resource(scheme, host, resource, callback, errback)
+            if host:
+                self.get_resource(scheme, host, resource, callback, errback)
         scheme, host, port, resource = url_split(pre_auth_url)
         resource += '?t=' + urllib.quote(token.split('&')[0][2:], '')
Comment 1 Riccardo (c10ud) 2011-04-28 05:29:51 UTC
see this emesene bug as an example: https://github.com/emesene/emesene/issues/462
Comment 2 Louis-Francis Ratté-Boulianne 2011-08-14 07:25:03 UTC
Fixed in master. Thanks.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.