StackStorm/st2

st2 fails to store a Key-Value in the datastore if there is a "/" in the key name.

Open

#4.789 aberto em 12 de set. de 2019

Ver no GitHub
 (18 comments) (0 reactions) (0 assignees)Python (740 forks)batch import
CLIbugcomponent:st2clientgood first issue

Métricas do repositório

Stars
 (5.794 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

SUMMARY

st2 fails to store a Key-Value in the datastore if there is a "/" in the key name. I am sorry if I missed anything in the docs, which says that you cannot store a key with "/" in it and please feel free to close this issue if that is the case. Thank you.

STACKSTORM VERSION

st2 3.1.0, on Python 2.7.5

OS, environment, install method:

CentOS/Docker, custom install.

Steps to reproduce the problem

bash-4.2$ st2 key set "foo / bar" "foo_bar"
ERROR: 404 Client Error: Not Found
MESSAGE: The resource could not be found. for url: http://127.0.0.1:9101/v1/keys/foo%20/%20bar

Expected Results

st2 should have accepted the key-value pair and stored it.

Actual Results

st2 has failed to store the key-value pair.

Guia do colaborador