Closed jwsblokland closed 10 months ago
A moment ago, I found the problem. It turns out that the link target path in the call to H5Lcreate_soft()
did not exist in both test_copy_link
and test_move_link
tests. After I corrected the path now the all (including the newly added test) H5Ovisit
tests work. I will create a PR with this fix.
Would it be an idea to actually verify that the specified link target path exist before creating the link to it?
H5Ovisit
is expected to fail when given dangling links, but it appears that the dangling soft links in those two tests were unintentional, so this should be fixed.
Would it be an idea to actually verify that the specified link target path exist before creating the link to it?
From the Link reference page: "Unlike hard links, a soft link in an HDF5 file is allowed to dangle, meaning that the target object need not exist at the time that the link is created."
Ah, thanks for the information. Clearly, my idea is not a good idea.
Resolved by #94
Hello,
I found a bug in testing
H5Ovisit()
function. Here are the steps to reproduce the bug:After some investigation I found out that the call to function
RV_parse_response()
in theswitch (iter_object_type)
code block in the functionRV_object_specific()
(rest_vol_object.c) fails. I have the impression thisRV_parse_response()
fails when there are one or soft links in thelinks
lists. If I remove thetest_copy_link
andtest_move_link
test from thelink_tests
tests everything works including the above mentionedH5Ovisit3(file_id, ...)
test.OS: RHEL 7.9 HDF5: 1.14.0 build using CMake VOL-REST: Build using CMake 3.26.4