Skip to content
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

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

Open
cthulhu-rider opened this issue Dec 24, 2024 · 0 comments
Open

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

cthulhu-rider opened this issue Dec 24, 2024 · 0 comments
Labels
bug Something isn't working neofs-cli NeoFS CLI application issues

Comments

@cthulhu-rider
Copy link
Contributor

$ 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

@cthulhu-rider cthulhu-rider added bug Something isn't working neofs-cli NeoFS CLI application issues labels Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working neofs-cli NeoFS CLI application issues
Projects
None yet
Development

No branches or pull requests

1 participant