GithubHelp home page GithubHelp logo

Wrong root id with dataset post about hsds HOT 2 CLOSED

hdfgroup avatar hdfgroup commented on July 19, 2024
Wrong root id with dataset post

from hsds.

Comments (2)

jreadey avatar jreadey commented on July 19, 2024

Example:

$ curl -X PUT -u test_user1:test --header "Host: /home/test_user1/test_file" http://192.168.99.100:5101/ {"created": 1505328375.5647395, "root": "g-d26ac838-98b3-11e7-be6a-0242ac110009", "lastModified": 1505328375.5647395, "acls": {"test_user1": {"delete": true, "read": true, "update": true, "create": true, "updateACL": true, "readACL": true}, "default": {"delete": false, "read": true, "update": false, "create": false, "updateACL": false, "readACL": false}}, "owner": "test_user1"}(py35)Cardinal:~ jreadey$ (py35)Cardinal:~ jreadey$ (py35)Cardinal:~ jreadey$ curl -X POST -u test_user1:test --header "Host: /home/test_user1/test_file" --header "Content-Type: application/json" --data "{\"shape\": 10, \"type\": \"H5T_IEEE_F32LE\", \"link\": { \"id\": \"g-d26ac838-98b3-11e7-be6a-0242ac110009\", \"name\": \"new_dset\" } }" http://192.168.1.100:5101/datasets curl: (7) Failed to connect to 192.168.1.100 port 5101: Connection refused (py35)Cardinal:~ jreadey$ curl -X POST -u test_user1:test --header "Host: /home/test_user1/test_file" --header "Content-Type: application/json" --data "{\"shape\": 10, \"type\": \"H5T_IEEE_F32LE\", \"link\": { \"id\": \"g-d26ac838-98b3-11e7-be6a-0242ac110009\", \"name\": \"new_dset\" } }" http://192.168.99.100:5101/datasets {"id": "d-1bc23eee-98b4-11e7-be6a-0242ac110009", "lastModified": 1505328498, "type": {"base": "H5T_IEEE_F32LE", "class": "H5T_FLOAT"}, "created": 1505328498, "root": "g-d26ac838-98b3-11e7-be6a-0242ac110009", "attributeCount": 0, "shape": {"dims": [10], "class": "H5S_SIMPLE"}}(py35)Cardinal:~ jreadey$ (py35)Cardinal:~ jreadey$ hsdel -u test_user1 -p test /home/test_user1/test_file (py35)Cardinal:~ jreadey$ curl -X PUT -u test_user1:test --header "Host: /home/test_user1/test_file" http://192.168.99.100:5101/ {"created": 1505328713.8524508, "root": "g-9c0e7ff4-98b4-11e7-be6a-0242ac110009", "lastModified": 1505328713.8524508, "acls": {"test_user1": {"delete": true, "read": true, "update": true, "create": true, "updateACL": true, "readACL": true}, "default": {"delete": false, "read": true, "update": false, "create": false, "updateACL": false, "readACL": false}}, "owner": "test_user1"}(py35)Cardinal:~ jreadey$ (py35)Cardinal:~ jreadey$ (py35)Cardinal:~ jreadey$ curl -X POST -u test_user1:test --header "Host: /home/test_user1/test_file" --header "Content-Type: application/json" --data "{\"shape\": 10, \"type\": \"H5T_IEEE_F32LE\", \"link\": { \"id\": \"g-9c0e7ff4-98b4-11e7-be6a-0242ac110009\", \"name\": \"new_dset\" } }" http://192.168.99.100:5101/datasets {"id": "d-b5244ba4-98b4-11e7-be6a-0242ac110009", "lastModified": 1505328755, "type": {"base": "H5T_IEEE_F32LE", "class": "H5T_FLOAT"}, "created": 1505328755, "root": "g-d26ac838-98b3-11e7-be6a-0242ac110009", "attributeCount": 0, "shape": {"dims": [10], "class": "H5S_SIMPLE"}}

from hsds.

jreadey avatar jreadey commented on July 19, 2024

This is no longer an issue.
Tested with the following cmds:

curl -X PUT -u test_user1:test  http://hsds.hdf.test/?domain=/home/test_user1/test_file

curl -X POST -u test_user1:test  --header "Content-Type: application/json" --data "{\"shape\": 10, \"type\": \"H5T_IEEE_F32LE\", \"link\": { \"id\": \"g-6c313c54-d7a6a1ab-e4b9-b4dc5f-2e2923\", \"name\": \"new_dset\" } }" http://hsds.hdf.test/datasets?domain=/home/test_user1/test_file

hsrm /home/test_user1/test_file

And then re putting the domain followed by reposting the dataset. The dataset has the root id of the new domain.

from hsds.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.