charms/info 500ing when no results in the channel-map (for requested fields)

Bug #1911005 reported by Guillermo Gonzalez on 2021-01-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snap Store Server
High
Guillermo Gonzalez

Bug Description

curl "https://api.snapcraft.io/v2/charms/info/postgresql-k8s?fields=channel-map.resources"

This only request resources from a charm with no resources, and thus the channel-map is empty, we should include the channelmap just like we do with revision. as there is no point in returning empty channelmap

Changed in snapstore-server:
assignee: nobody → Guillermo Gonzalez (verterok)
status: New → Triaged
importance: Undecided → High
summary: - 500 charms/info when no results in the channel-map (for requested
+ charms/info 500ing when no results in the channel-map (for requested
fields)
Changed in snapstore-server:
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers