Skip to content

/v1/file/stats/ for moved files lack the write_marker. #471

@krishnemd

Description

@krishnemd

So here is the response for original path for file/stats request:

{
  "actual_file_hash": "cb91dc0cc3bcf26bccc2084215e3467a74f01d309f2e2d8eeec1eb95ea965935",
  "actual_file_size": 674,
  "actual_thumbnail_hash": "",
  "actual_thumbnail_size": 0,
  "attributes": {},
  "chunk_size": 65536,
  "commit_meta_txns": null,
  "content_hash": "cb91dc0cc3bcf26bccc2084215e3467a74f01d309f2e2d8eeec1eb95ea965935",
  "created_at": "2021-12-18T09:24:47.51471Z",
  "custom_meta": "",
  "encrypted_key": "",
  "hash": "c4d4fe2a4c3c10d1ad3b846f1640fbc29deac9b2e64d98798a8b6f65060a53f8",
  "last_challenge_txn": "",
  "lookup_hash": "61503ff4358374353f3db5ddeb80831e83d8e3c4c3fcb71798d8b2ecd4f80c9c",
  "merkle_root": "0690c9b0edb1b0583c71e8c0e80eb34255945f3538db4ce505407881720fb89e",
  "mimetype": "application/json",
  "name": "wallet.json",
  "num_of_block_downloads": 0,
  "num_of_blocks": 1,
  "num_of_challenges": 0,
  "num_of_failed_challenges": 0,
  "num_of_updates": 1,
  "on_cloud": false,
  "path": "/k/1/wallet.json",
  "path_hash": "61503ff4358374353f3db5ddeb80831e83d8e3c4c3fcb71798d8b2ecd4f80c9c",
  "size": 674,
  "thumbnail_hash": "",
  "thumbnail_size": 0,
  "type": "f",
  "updated_at": "2021-12-18T09:24:47.51471Z",
  "write_marker_txn": "5f456c70c16925ce53db2acc67b50a299e043a3f56e8588e351f79bf5791ee31"
}

Also here is the response for the moved file on file/stats request:

{
  "actual_file_hash": "cb91dc0cc3bcf26bccc2084215e3467a74f01d309f2e2d8eeec1eb95ea965935",
  "actual_file_size": 674,
  "actual_thumbnail_hash": "",
  "actual_thumbnail_size": 0,
  "attributes": {},
  "chunk_size": 65536,
  "commit_meta_txns": null,
  "content_hash": "cb91dc0cc3bcf26bccc2084215e3467a74f01d309f2e2d8eeec1eb95ea965935",
  "created_at": "2021-12-18T09:33:56.997721Z",
  "custom_meta": "",
  "encrypted_key": "",
  "hash": "bdc5ff11c34f4eb70340bcfe8f8b29771688e0736878d338ad8c49d30c4ea0d4",
  "lookup_hash": "60ce73f41ef7290b86a7bec269adcb2e1373446a8725eb7453d086799c666104",
  "merkle_root": "0690c9b0edb1b0583c71e8c0e80eb34255945f3538db4ce505407881720fb89e",
  "mimetype": "application/json",
  "name": "wallet.json",
  "num_of_blocks": 1,
  "on_cloud": false,
  "path": "/wallet.json",
  "path_hash": "60ce73f41ef7290b86a7bec269adcb2e1373446a8725eb7453d086799c666104",
  "size": 674,
  "thumbnail_hash": "",
  "thumbnail_size": 0,
  "type": "f",
  "updated_at": "2021-12-18T09:33:57.035188Z"
}

Metadata

Metadata

Assignees

Labels

DoingbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions