Inconsistency between action and package list actions with invalid namespace
- Dominant language
- Scala
- Stars
- 6.8k
- Forks
- 1.2k
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 2
Description
## Environment details:
* local deployment, running OpenWhisk in Minishift according to https://github.com/apache/incubator-openwhisk-deploy-openshift
## Steps to reproduce the issue:
1. List actions with an invalid namespace/package:
```
wsk action list /whisk.syssstem/utils
```
2. List packages with an invalid namespace:
```
wsk package list /whisk.systsdf
```
## 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
```
error: Unable to obtain the list of actions for namespace 'whisk.syssstem': The supplied authentication is not authorized to access 'whisk.syssstem/utils'. (code 1119)
Run 'wsk --help' for usage.
```
The output of wsk package list is
```
packages
```
Additional thoughts
* returning an empty result in the second case might be misleading, I'd probably want to know that I'm entering an invalid/non-existent package
Contributor guide
Assessment
This issue has not been assessed yet.