Open mgencur opened 6 years ago
Looks like the backend returns a 200 response for the invalid package list call and a 403 for the invalid action list call.
the reason - for the sake of discussion - is that you can query any namespace for its list of public packages. the controller does not confirm the presence or absence of a namespace when listing packages since returning []
is also a valid response (the namespace has no shared packages).
furthermore, i'd say wsk package get
rather than wsk package list
should be scrutinized to have a response similar to wsk action list
and it does.
wsk package get /whisk.syssstem/utils
and the controller will respond with 403 and "The supplied authentication is not authorized to access 'whisk.syssstem/utils'.".
Environment details:
Steps to reproduce the issue:
Provide the expected results and outputs:
I'd expect both of the commands would return a message saying that the respective namespace or package doesn't exist.
Provide the actual results and outputs:
The output of wsk action list is
The output of wsk package list is
Additional thoughts