segfault on http errors in bootstrap

Bug #1333797 reported by Alejandro J. Cura
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-scope-click (Ubuntu)
Fix Released
Critical
Alejandro J. Cura

Bug Description

The code is expecting a 405 on the bootstrap call, but when it gets a 404 the scope segfaults.

RegistryObject::ScopeProcess::exec(): Process for scope: "com.canonical.scopes.clickstore" started
2014-06-24 13:16:13,411 - DEBUG - Running command: click list
2014-06-24 13:16:13,696 - DEBUG - command finished with exit code: 0
2014-06-24 13:16:13,697 - DEBUG - performing bootstrap request
2014-06-24 13:16:21,537 - WARNING - Network error: "Error downloading https://search.apps.ubuntu.com/api/v1 - server replied: Not Found (203)"
 "{"errors": ["Not found"], "result": "error"}"
2014-06-24 13:16:21,537 - WARNING - departments call failed due to network error
2014-06-24 13:16:21,537 - DEBUG - departments: calling callback
2014-06-24 13:16:21,537 - WARNING - bootstrap request failed
scoperunner: ../scope/clickstore/store-query.cpp:291: virtual void click::Query::add_highlights(const SearchReplyProxy&, const PackageSet&): Assertion `curdep' failed.
RegistryObject::ScopeProcess::on_process_death(): Process for scope: "com.canonical.scopes.clickstore" terminated
RegistryObject::ScopeProcess: Scope: "com.canonical.scopes.clickstore" closed unexpectedly. Either the process crashed or was killed forcefully.

Related branches

dobey (dobey)
Changed in unity-scope-click (Ubuntu):
status: In Progress → Fix Committed
dobey (dobey)
Changed in unity-scope-click (Ubuntu):
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.