CDN circuit breaker doesn't return CDN urls for snapd

Bug #1681315 reported by Michael Nelson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snap Store Server
Fix Released
High
Michael Nelson

Bug Description

While testing the circuit breaker on staging, I noticed that while some responses contain the direct CDN url, those returned to snapd did not. The difference seemed to be whether the fields qparam is used to filter the fields returned [1].

Checking the code, indeed it currently requires 3 field (download_url, anon_download_url and _download_url_rewritable) or it will not rewrite the urls. This wasn't an issue when the circuit breaker was tested, but since then snapd has updated to explicitly name which fields it requires and the index code doesn't yet account for this when rewriting cdn urls.

[1] https://pastebin.canonical.com/185353/

Revision history for this message
Michael Nelson (michael.nelson) wrote :
Changed in snapstore:
assignee: nobody → Michael Nelson (michael.nelson)
status: Triaged → Fix Committed
William Grant (wgrant)
Changed in snapstore:
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.