-
Notifications
You must be signed in to change notification settings - Fork 24
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
HPCC4J-631 Provide meaningful version error message #741
HPCC4J-631 Provide meaningful version error message #741
Conversation
we might need to add a test without credentials which would cause the ESP to respond w/ HTML, but it would require a known secured HPCC test environment |
Jira Issue: https://hpccsystems.atlassian.net/browse/HPCC4J-631 Jirabot Action Result: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rpastrana Looks pretty good, minor question about handling whitespace, but not critical IMO
|
||
if (response == null || response.isEmpty()) | ||
throw new Exception("Cannot get target HPCC build version, received empty " + wsconn.getBaseUrl() + " wssmc/activity response"); | ||
|
||
if (response.startsWith("<html")) //crude, but can prevent wasteful overhead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this handle possible whitespace before the html tag?
- Ensures version response is not HTML based - Adds relevant message to parsing errors Signed-off-by: Rodrigo Pastrana <[email protected]>
9dc1a1b
to
3a43ac4
Compare
@jpmcmu made the change we discussed, please give it a quick look-over |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rpastrana looks good
Jirabot Action Result: |
Type of change:
Checklist:
Testing: