Skip to content

--main-only flag of CLI object head has no effect #3065

@cthulhu-rider

Description

@cthulhu-rider
$ neofs-cli object head -h
...
      --main-only             Return only main fields
...

Expected Behavior

partial header is requested and printed

Current Behavior

full header

Possible Solution

  1. drop the flag. Im pretty sure nobody uses it
  2. or be good and fix support

Steps to Reproduce (for bugs)

$ neofs-cli object head -r s01.neofs.devenv:8080 -w ../devenv/wallets/wallet.json --cid HGrqyy4TifmtwhSAkFFgug954Da9F2p44bs6bB4W1GdB --oid 88CZvYAdJDtj5BsQ1Vjkn3qsePBqzo9AphhnpeyTTbCu --main-only

for any object prints Attributes: section. For split objects can also print:

Split ParentID: DvCHgDaQDYSGqqMXLUns7RfyYfuY7iFDvXg37AtXCA6W
Split PreviousID: GN6ioSR1waMqb6ouFtQMYGREwRzFDCLYvoKF4HfrgN4C
Split FirstID: Gqg6GawmYW28sCqcu8B7jE3a3Z5m6TCbEFiht2x3iRv

Split Parent Header:
ID: DvCHgDaQDYSGqqMXLUns7RfyYfuY7iFDvXg37AtXCA6W
CID: HGrqyy4TifmtwhSAkFFgug954Da9F2p44bs6bB4W1GdB
Owner: NbUgTSFvPmsRxmGeWpuuGeJUoRoi6PErcM
CreatedAt: 382
Size: 67108864
HomoHash: 074aee53fc21316970d2cd7e476545a27b43ef547c7a3a0006b192c85d687c1672207f18a2da38e7209a565384feaf8b6fd2099ebfe0112936b619fcc5dccd7e
Checksum: df29f76231532e494e145361ea25c62e3e409f0126ba956627e395dfba470ba3
Type: REGULAR
Attributes:
  FileName=testfile
  Timestamp=1735039123 (2024-12-24 14:18:43 +0300 MSK)
ID signature:
  public key: 020a6bcf754d3df0224dff3747613393e34b3efee1eb4a99546c875d9b831b2158
  signature: 045f2b4ce993d6eb41ec5772382c9d070231936af6d1e353b67028a66a932c45d12ad7c9dc2df97914900c5fa7981a28de2e155f5ba4db8014ee5c5ea7c0afc919

Regression

from e0dce10

Your Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneofs-cliNeoFS CLI application issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions