StackStorm/st2

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

Open

#4,789 创建于 2019年9月12日

在 GitHub 查看
 (18 评论) (0 反应) (0 负责人)Python (5,794 star) (740 fork)batch import
CLIbugcomponent:st2clientgood first issue

描述

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.

贡献者指南