frostfs-cli object head returns objectType param as int with --json flag #1399

Closed
opened 2024-09-30 09:58:25 +00:00 by abereziny · 0 comments
Member

Expected Behavior

{
    "objectID": {
        "value": "<...>"
    },
    <...>
    "header": {
        <...>
        },
        "objectType": "TOMBSTONE", // or whatever it is
        <...>
    },
    <...>
}

Current Behavior

{
    "objectID": {
        "value": "<...>"
    },
    <...>
    "header": {
        <...>
        },
        "objectType": 1, <<< What is it??
        <...>
    },
    <...>
}

Steps to Reproduce (for bugs)

  1. Make object head with --json flag
frostfs-cli object head --rpc-endpoint '1.1.1.1:8080' --cid 'cid' --oid 'oid' --json

it works without --json flag though:

Type: TOMBSTONE

Regression

Yes

Your Environment

  • Version used: 0.42.0-157-ga5e1aa22
## Expected Behavior ``` { "objectID": { "value": "<...>" }, <...> "header": { <...> }, "objectType": "TOMBSTONE", // or whatever it is <...> }, <...> } ``` ## Current Behavior ``` { "objectID": { "value": "<...>" }, <...> "header": { <...> }, "objectType": 1, <<< What is it?? <...> }, <...> } ``` ## Steps to Reproduce (for bugs) 1. Make object head with --json flag ``` frostfs-cli object head --rpc-endpoint '1.1.1.1:8080' --cid 'cid' --oid 'oid' --json ``` it works without --json flag though: ``` Type: TOMBSTONE ``` ## Regression Yes ## Your Environment * Version used: 0.42.0-157-ga5e1aa22
abereziny added the
bug
triage
labels 2024-09-30 09:58:25 +00:00
fyrchik added this to the v0.44.0 milestone 2024-10-01 11:24:14 +00:00
fyrchik removed the
triage
label 2024-10-01 11:24:18 +00:00
fyrchik self-assigned this 2024-10-01 11:24:21 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#1399
No description provided.