-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
neofs-cli doesn't support raw session tokens #1933
Comments
I think we accidentally lost the ability to unmarshal tokens in raw format here #1873 |
It is expected according to command description
So we need to support it. |
cthulhu-rider
added a commit
to cthulhu-rider/neofs-node
that referenced
this issue
Oct 20, 2022
There is a need to support NeoFS-binary sessions along with JSON ones in NeoFS CLI. Provide generic `common.ReadBinaryOrJSON` functions which tries to decode NeoFS-binary structure and falls back to JSON format. Use this function in all places with token reading. Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
cthulhu-rider
added a commit
to cthulhu-rider/neofs-node
that referenced
this issue
Oct 20, 2022
…lete` In current implementation `put` and `delete` commands of `object` session in the NeoFS CLI stores objects in the container using remote session. According to this, it doesn't make sense to accept static sessions: such sessions will have no effect or fail the operation. Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
cthulhu-rider
added a commit
to cthulhu-rider/neofs-node
that referenced
this issue
Oct 20, 2022
There is a need to support NeoFS-binary sessions along with JSON ones in NeoFS CLI. Provide generic `common.ReadBinaryOrJSON` functions which tries to decode NeoFS-binary structure and falls back to JSON format. Use this function in all places with token reading. Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
cthulhu-rider
added a commit
to cthulhu-rider/neofs-node
that referenced
this issue
Oct 20, 2022
…lete` In current implementation `put` and `delete` commands of `object` session in the NeoFS CLI stores objects in the container using remote session. According to this, it doesn't make sense to accept static sessions: such sessions will have no effect or fail the operation. Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
cthulhu-rider
added a commit
to cthulhu-rider/neofs-node
that referenced
this issue
Oct 20, 2022
…lete` In current implementation `put` and `delete` commands of `object` session in the NeoFS CLI stores objects in the container using remote session. According to this, it doesn't make sense to accept static sessions: such sessions will have no effect or fail the operation. Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
cthulhu-rider
added a commit
to cthulhu-rider/neofs-node
that referenced
this issue
Oct 20, 2022
There is a need to support NeoFS-binary sessions along with JSON ones in NeoFS CLI. Provide generic `common.ReadBinaryOrJSON` functions which tries to decode NeoFS-binary structure and falls back to JSON format. Use this function in all places with token reading. Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
cthulhu-rider
added a commit
to cthulhu-rider/neofs-node
that referenced
this issue
Oct 20, 2022
…lete` In current implementation `put` and `delete` commands of `object` session in the NeoFS CLI stores objects in the container using remote session. According to this, it doesn't make sense to accept static sessions: such sessions will have no effect or fail the operation. Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
cthulhu-rider
added a commit
to cthulhu-rider/neofs-node
that referenced
this issue
Oct 20, 2022
There is a need to support NeoFS-binary sessions along with JSON ones in NeoFS CLI. Provide generic `common.ReadBinaryOrJSON` functions which tries to decode NeoFS-binary structure and falls back to JSON format. Use this function in all places with token reading. Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
cthulhu-rider
added a commit
to cthulhu-rider/neofs-node
that referenced
this issue
Oct 20, 2022
There is a need to support NeoFS-binary sessions along with JSON ones in NeoFS CLI. Provide generic `common.ReadBinaryOrJSON` functions which tries to decode NeoFS-binary structure and falls back to JSON format. Use this function in all places with token reading. Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
cthulhu-rider
added a commit
to cthulhu-rider/neofs-node
that referenced
this issue
Oct 20, 2022
Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
neofs-cli should support
raw
andjson
session tokensCurrent Behavior
neofs-cli doesn't support raw session tokens
Steps to Reproduce (for bugs)
raw
session token:Versions:
Your Environment
Server setup and configuration:
cloud, 4 VMs, 4 SN, 4 http qw, 4 s3 gw
Operating System and version (uname -a):
linux vedi 5.10.0-16-amd64 #1 SMP Debian 5.10.127-1 (2022-06-30) x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: