StackStorm/st2

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

オープン

#4,789 opened on 2019/09/12

 (19 件のコメント) (0 件のリアクション) (0 人の担当者)Python (740 件のフォーク)batch import
CLIbugcomponent:st2clientgood first issue

Repository metrics

Stars
 (5,794 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド