kbase / shock_java_client

Basic java client for Shock.
MIT License
0 stars 2 forks source link

File format is not returned when running against blobstore #26

Closed MrCreosote closed 4 months ago

MrCreosote commented 2 years ago
$ curl -H "Authorization: OAuth $BLOBTOKEN" http://localhost:39453/node/18f7e92e-2cc6-4559-9579-ba96527fb3ef
{
  "data": {
    "attributes": null,
    "created_on": "2022-03-19T02:03:20.000Z",
    "file": {
      "checksum": {
        "md5": "b2d0efbdc48f4b7bf42f8ab76d71f84e"
      },
      "name": "fname2",
      "size": 9
    },
    "format": "text2",
    "id": "18f7e92e-2cc6-4559-9579-ba96527fb3ef",
    "last_modified": "2022-03-19T02:03:20.000Z"
  },
  "error": null,
  "status": 200
}
System.out.println(WS_OWNED_SHOCK.getNode(n2.getId()));

ShockNode [file=ShockFileInformation [
        checksum={md5=b2d0efbdc48f4b7bf42f8ab76d71f84e},
        name=fname2,
        format=null,
        size=9],
    id=us.kbase.shock.client.ShockNodeId [id=18f7e92e-2cc6-4559-9579-ba96527fb3ef], 
    version=null,
    deleted=false]
MrCreosote commented 4 months ago

Fixed by https://github.com/kbase/shock_java_client/pull/30