HDFGroup / HDFGroup/h5serv

External link to subgroup of domain

Open
#109 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
170
Forks
35
PR merge metrics
No merged PRs in 30d

Description

I am trying to repackage individual groups (of nexus entries) stored under separate domains into one hdf5 file. I have already created an external database of searchable metadata from within the individual scans, and want to be able to download (using the exporth5.py or a modifed version) the contents of this temporary domain (which is just a series of links of similiar scans from across the h5server database) . To this end I started by creating a temporary domain, temp.sgm.clsi.ca, and started adding external links to the desired groups. It turns out that the generated external link e.g.
`links": [
{
"target": "http://localhost:5000/#h5path(/entry1)?host=Cu_mesh_scan.zarthur.sgm.clsi.ca",
"h5path": "/entry1",
"title": "entry1",
"h5domain": "Cu_mesh_scan.zarthur.sgm.clsi.ca",
"href": "http://localhost:5000/groups/8ad1657e-0e78-11e7-b869-080027f91ab0/links/entry1?host=temp.sgm.clsi.ca",
"class": "H5L_TYPE_EXTERNAL"
}
]`
.. doesn't actually refer to anything and is redirected to the base uri for the h5serv. In fact, even the root of the domain isn't accessible using this href construct. I created the external link using the python requests library:
>>> payload
{'h5domain': 'Cu_mesh_scan.zarthur.sgm.clsi.ca', 'h5path': '/entry1'}
>>> string
'http://localhost:5000/groups/8ad1657e-0e78-11e7-b869-080027f91ab0/links/entry1'
>>> rsg = requests.put(string, data = json.dumps(payload), headers={'host':'temp.sgm.clsi.ca'})

Additionaly, no matter how I construct the GET request using h5path and h5domain parameters I can't seem to get the desired response from getUUIDByPath coming out of hdf5db either. In summary, it seems like the external linking is not functioning the way one would hope, and I am unsure of how best to remedy or work around this problem.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.