apache / apache/openwhisk

OpenWhisk Web Enabled action pickup random subject

Open
#4,944 7 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Scala
Stars
6.8k
Forks
1.2k
Avg merge
2d 14h
Merged PRs (30d)
2

Description

## Environment details:

*Kubernetes, kubernetes 1.13
* Docker version 18.09.7

## Steps to reproduce the issue:

1. Create an action with Web enabled
wsk -i action create HelloGet helloget.py --web true
2. Use the action URL to call it via a browser
Get action URL > wsk -i action get --url
Example https:///api/v1/web/testns/default/HelloGet

3. The subject is random ID in your namespace

## Provide the expected results and outputs:

It should rather tie to an internal OpenWhisk account or allow administrator to set a default id to use for web enabled actions
activations
output comes here
```
"namespace": "testns",
"name": "HelloGet",
"version": "0.0.2",
**"subject": "",** <-- Should have ability to use some internal id for the activation or allow to set a default ID for web enabled activations

## Provide the actual results and outputs:

```
"namespace": "testns",
"name": "HelloGet",
"version": "0.0.2",
**"subject": "zuser1",** <-- picks a random ID or appears to be the first id with first alphabet descending order
```

## Additional information you deem important:
* The issue happens consistently for any invocation to web enabled action via curl or any browser.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.