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

Make the dap4 code resistant to various server errors. #1593

Merged
merged 1 commit into from
Jan 8, 2020

Conversation

DennisHeimbigner
Copy link
Collaborator

Some versions of some servers are returning malformed responses.
Make the library either handle them or gracefully fail.
The three server errors "fixed" here are as follows.

  1. The attribute _NCProperties sometimes has a trailing nul character
    in its value. Soln is to elide the nul(s).
  2. Sometimes a DAP response has no data part, only a DMR.
    Soln is to detect and return an error code instead of crashing.
  3. Sometimes a server returns a redirection, but our current
    openmagic() function was not following the redirect. Soln
    is to follow redirects.
    Also because of Use GNUInstallDirs to install into /usr/lib64 as needed #2, I am temporarily making --disable-dap-remote-tests
    be the default.

Some versions of some servers are returning malformed responses.
Make the library either handle them or gracefully fail.
The three server errors "fixed" here are as follows.
1. The attribute _NCProperties sometimes has a trailing nul character
   in its value. Soln is to elide the nul(s).
2. Sometimes a DAP response has no data part, only a DMR.
   Soln is to detect and return an error code instead of crashing.
3. Sometimes a server returns a redirection, but our current
   openmagic() function was not following the redirect. Soln
   is to follow redirects.
Also because of Unidata#2, I am temporarily making --disable-dap-remote-tests
be the default.
@WardF WardF self-assigned this Jan 8, 2020
@WardF WardF merged commit 5e8ed92 into Unidata:master Jan 8, 2020
@WardF
Copy link
Member

WardF commented Jan 8, 2020

Thanks @DennisHeimbigner !

@DennisHeimbigner DennisHeimbigner deleted the nonul.dmh branch March 29, 2020 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants