[Bug 1401560] Re: smart-scopes-proxy doesn't use cached remote scopes if network is not available

2014-12-12 Thread Michi Henning
** Changed in: unity-scopes-api (Ubuntu)
   Importance: Undecided = Critical

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1401560

Title:
  smart-scopes-proxy doesn't use cached list remote scopes if network is
  not available

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1401560/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1401560] Re: smart-scopes-proxy doesn't use cached remote scopes if network is not available

2014-12-11 Thread Pawel Stolowski
** Summary changed:

- smart-scopes-proxy reports JSON parsing errors if network is not available
+ smart-scopes-proxy doesn't use cached remote scopes if network is not 
available

** Description changed:

  It seems that network failure is not correctly handled where it should be 
while fetching list of remote scopes, and we attempt to parse empty string -
  smart-scopes-proxy.log:
  
  [2014-12-11 14:31:16.212609] INFO: SSRegistry:
  SmartScopesClient.get_remote_scopes(): Remote scopes:
  
  [2014-12-11 14:31:16.214007] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes() Failed to parse json response from uri: 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes: unity::ResourceException: 
Failed to parse json string: * Line 1, Column 1
    Syntax error: value, object or array expected.
  
  [2014-12-11 14:31:16.214467] ERROR: SSRegistry: SSRegistryObject: 
get_remote_scopes() failed: unity::ResourceException: Failed to parse json 
string: * Line 1, Column 1
    Syntax error: value, object or array expected.
  
  
+ This causes cached remote-scopes.json to be ignored, and all remote scopes 
disappear from Manage Dash until network becomes available.
+ 
  Steps to reproduce:
  1) Enable flight mode
  2) Reboot the phone
  3) Watch /home/phablet/.cache/upstart/smart-scopes-proxy.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1401560

Title:
  smart-scopes-proxy doesn't use cached remote scopes if network is not
  available

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1401560/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1401560] Re: smart-scopes-proxy doesn't use cached remote scopes if network is not available

2014-12-11 Thread Pawel Stolowski
** Description changed:

  It seems that network failure is not correctly handled where it should be 
while fetching list of remote scopes, and we attempt to parse empty string -
  smart-scopes-proxy.log:
  
  [2014-12-11 14:31:16.212609] INFO: SSRegistry:
  SmartScopesClient.get_remote_scopes(): Remote scopes:
  
  [2014-12-11 14:31:16.214007] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes() Failed to parse json response from uri: 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes: unity::ResourceException: 
Failed to parse json string: * Line 1, Column 1
    Syntax error: value, object or array expected.
  
  [2014-12-11 14:31:16.214467] ERROR: SSRegistry: SSRegistryObject: 
get_remote_scopes() failed: unity::ResourceException: Failed to parse json 
string: * Line 1, Column 1
    Syntax error: value, object or array expected.
  
- 
- This causes cached remote-scopes.json to be ignored, and all remote scopes 
disappear from Manage Dash until network becomes available.
+ This causes cached remote-scopes.json to be ignored, and all remote
+ scopes disappear from Manage Dash until network becomes available.
  
  Steps to reproduce:
- 1) Enable flight mode
- 2) Reboot the phone
- 3) Watch /home/phablet/.cache/upstart/smart-scopes-proxy.log
+ 1) Make sure you see remote scopes in Manage Dash - All.
+ 2) Enable flight mode
+ 3) Reboot the phone
+ 4) Watch /home/phablet/.cache/upstart/smart-scopes-proxy.log
+ 5) Go to Manage Dash - All: NO remote scopes are listed.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1401560

Title:
  smart-scopes-proxy doesn't use cached remote scopes if network is not
  available

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1401560/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs