Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support long links with HSDS >0.8.5 #115

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

mattjala
Copy link
Collaborator

HDFGroup/hsds#296 (not yet complete) adds API endpoints which allow link names to be provided in the body of a POST request, rather than through the URL. This branch changes some operations (RV_link_create, RV_link_specific, RV_find_object_by_path) to use the newer API if it is available.

Callbacks for RV_find_object_by_path were changed to handle a potential top-level h5paths key if the initial request was a plural attributes/links request.

RV_get_object_info_callback needs the hrefs in the response to get the object's domain/file, and these hrefs aren't returned for links/attributes requests. Another change to the HSDS API (returning the domain for each link/attr?) is still needed to resolve this.

@mattjala mattjala added bug Something isn't working testing Related to testing process labels Jan 22, 2024
@mattjala mattjala marked this pull request as ready for review January 23, 2024 16:03

/* Necessary to prevent curl from potentially accessing freed buffers in subsequent calls */
if (CURLE_OK != curl_easy_setopt(curl, CURLOPT_POST, 0))
FUNC_GOTO_ERROR(H5E_LINK, H5E_CANTSET, FAIL, "can't unset cURL HTTP POST request: %s", curl_err_buf);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should switch this to a FUNC_DONE_ERROR

Copy link
Collaborator

@jhendersonHDF jhendersonHDF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good other than my one comment

@jhendersonHDF jhendersonHDF merged commit cf6ef45 into HDFGroup:master Apr 9, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working testing Related to testing process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants