Search and info conflict on snaps with whitelisted country
Bug #1904911 reported by
Toto Bille
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snap Store Server |
Confirmed
|
Low
|
Unassigned |
Bug Description
All this is done with a UK IP (if it matters :) )
The snap raspberrymonitor has whitelisted a selection of territories.
If you search for the snap you can find it:
```
curl -H 'X-Ubuntu-Store: ubuntu' "https:/
```
But if you get info of the snap, it returns a 404:
```
curl -s -H 'Snap-device-
```
(this impacts the storefront: see https:/
To post a comment you must log in.
The snap is allowed only in Italy, this explains why you can't get info for it from a UK IP address, which I confirmed from a US address as well.
We don't consider the snap's allowed territories in find as it would make the already- slower- than-desired find much slower, since we would have to filter each snap in the result against the requesting IP's geolocation.