{"action":"created","issue":{"url":"https://api.github.com/repos/HDFGroup/hpd-ws/issues/26","labels_url":"https://api.github.com/repos/HDFGroup/hpd-ws/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/HDFGroup/hpd-ws/issues/26/comments","events_url":"https://api.github.com/repos/HDFGroup/hpd-ws/issues/26/events","html_url":"https://github.com/HDFGroup/hpd-ws/issues/26","id":68164259,"number":26,"title":"Server can't publish data when string dataset has value.","user":{"login":"hyoklee","id":4994401,"avatar_url":"https://avatars.githubusercontent.com/u/4994401?v=3","gravatar_id":"","url":"https://api.github.com/users/hyoklee","html_url":"https://github.com/hyoklee","followers_url":"https://api.github.com/users/hyoklee/followers","following_url":"https://api.github.com/users/hyoklee/following{/other_user}","gists_url":"https://api.github.com/users/hyoklee/gists{/gist_id}","starred_url":"https://api.github.com/users/hyoklee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyoklee/subscriptions","organizations_url":"https://api.github.com/users/hyoklee/orgs","repos_url":"https://api.github.com/users/hyoklee/repos","events_url":"https://api.github.com/users/hyoklee/events{/privacy}","received_events_url":"https://api.github.com/users/hyoklee/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HDFGroup/hpd-ws/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/HDFGroup/hpd-ws/labels/high%20priority","name":"high priority","color":"0052cc"}],"state":"open","locked":false,"assignee":{"login":"ajelenak-thg","id":7944846,"avatar_url":"https://avatars.githubusercontent.com/u/7944846?v=3","gravatar_id":"","url":"https://api.github.com/users/ajelenak-thg","html_url":"https://github.com/ajelenak-thg","followers_url":"https://api.github.com/users/ajelenak-thg/followers","following_url":"https://api.github.com/users/ajelenak-thg/following{/other_user}","gists_url":"https://api.github.com/users/ajelenak-thg/gists{/gist_id}","starred_url":"https://api.github.com/users/ajelenak-thg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajelenak-thg/subscriptions","organizations_url":"https://api.github.com/users/ajelenak-thg/orgs","repos_url":"https://api.github.com/users/ajelenak-thg/repos","events_url":"https://api.github.com/users/ajelenak-thg/events{/privacy}","received_events_url":"https://api.github.com/users/ajelenak-thg/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-04-13T18:37:35Z","updated_at":"2015-05-07T16:52:53Z","closed_at":null,"body":"If I supply payload like below with value for string dataset:\r\n```json\r\n{\r\n  \"shape\": {\r\n    \"class\": \"H5S_SCALAR\"\r\n  },\r\n  \"type\": {\r\n    \"length\": 32768,\r\n    \"charSet\": \"H5T_CSET_ASCII\",\r\n    \"class\": \"H5T_STRING\",\r\n    \"strPad\": \"H5T_STR_NULLPAD\"\r\n  },\r\n  \"value\": \"This is a string\"\r\n}\r\n```\r\nthe server generates JSON with creation properties:\r\n```json\r\n{\r\n  \"datasets\": {\r\n    \"9fbd015d-9208-4a3a-ab66-c6fc2ca09d7a\": {\r\n      \"description\": \"\",\r\n      \"type\": {\r\n        \"length\": 32768,\r\n        \"charSet\": \"H5T_CSET_ASCII\",\r\n        \"class\": \"H5T_STRING\",\r\n        \"strPad\": \"H5T_STR_NULLPAD\"\r\n      },\r\n      \"attributes\": [],\r\n      \"value\": \"This is a string\",\r\n      \"shape\": {\r\n        \"class\": \"H5S_SCALAR\"\r\n      },\r\n      \"creationProperties\": {\r\n        \"layout\": {\r\n          \"class\": \"H5D_CONTIGUOUS\"\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\nIf I try to publish it, I get \r\n```json\r\n{\r\n  \"message\": \"No conversion path for type: dtype('<U16')\",\r\n  \"link\": \"...removed links...\"\r\n}\r\n```\r\nIf I send \"\" for \"value\", I can publish it.  The JSON looks like\r\n```json\r\n{\r\n  \"datasets\": {\r\n    \"135e3265-1462-4069-959c-33773dbb2e83\": {\r\n      \"description\": \"\",\r\n      \"creationProperties\": {\r\n        \"layout\": {\r\n          \"class\": \"H5D_CONTIGUOUS\"\r\n        }\r\n      },\r\n      \"type\": {\r\n        \"length\": 32768,\r\n        \"charSet\": \"H5T_CSET_ASCII\",\r\n        \"class\": \"H5T_STRING\",\r\n        \"strPad\": \"H5T_STR_NULLPAD\"\r\n      },\r\n      \"shape\": {\r\n        \"class\": \"H5S_SCALAR\"\r\n      },\r\n      \"attributes\": []\r\n    }\r\n  }\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/HDFGroup/hpd-ws/issues/comments/99936916","html_url":"https://github.com/HDFGroup/hpd-ws/issues/26#issuecomment-99936916","issue_url":"https://api.github.com/repos/HDFGroup/hpd-ws/issues/26","id":99936916,"user":{"login":"ajelenak-thg","id":7944846,"avatar_url":"https://avatars.githubusercontent.com/u/7944846?v=3","gravatar_id":"","url":"https://api.github.com/users/ajelenak-thg","html_url":"https://github.com/ajelenak-thg","followers_url":"https://api.github.com/users/ajelenak-thg/followers","following_url":"https://api.github.com/users/ajelenak-thg/following{/other_user}","gists_url":"https://api.github.com/users/ajelenak-thg/gists{/gist_id}","starred_url":"https://api.github.com/users/ajelenak-thg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajelenak-thg/subscriptions","organizations_url":"https://api.github.com/users/ajelenak-thg/orgs","repos_url":"https://api.github.com/users/ajelenak-thg/repos","events_url":"https://api.github.com/users/ajelenak-thg/events{/privacy}","received_events_url":"https://api.github.com/users/ajelenak-thg/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T16:52:52Z","updated_at":"2015-05-07T16:52:52Z","body":"Yes, ok for now. I will let you know if I come up with something useful in the meantime."}}