juju / charmstore

The charm store server.
http://gopkg.in/juju/charmstore.v5
GNU Affero General Public License v3.0
15 stars 37 forks source link

charm revoke removing results of bundles in other namespaces #636

Open frankban opened 8 years ago

frankban commented 8 years ago

See https://github.com/CanonicalLtd/jujucharms.com/issues/287:

There are 2 bundles that are almost identical but separated by namespaces:

https://jujucharms.com/observable-kubernetes/bundle/0 https://jujucharms.com/u/conjure/observable-kubernetes/bundle/1

When I search for a particular tag conjure-kubernetes it shows 2 results listed above. However, when I run

charm revoke ~conjure/bundle/observable-kubernetes-1 everyone Meaning I only want ~conjure/observable-kubernetes-1 removed from public view it actually removes both bundles from the search results! Note that I do want ~containers/observable-kubernetes showing up in the results list.

https://jujucharms.com/q/?tags=conjure-kubernetes

adam-stokes commented 8 years ago

This also affects bundles in the same namespace, for example:

running charm revoke cs:~conjure/bundle/openstack-novalxd-0

Will remove the following bundles from search results

cs:~conjure/bundle/openstack-novalxd-0
cs:~conjure/bundle/openstack-novalxd-14

Also if you attempt to just grant access to cs:~conjure/bundle/openstack-novalxd-14 it'll show both revision 0 and revision 14.

fabricematrat commented 6 years ago

work as specified as the granularity is on channel not revision number.