Skip to content

Fix #933 URLConnection to invalid HTTP URL is not detected as failure - #936

Merged
josemduarte merged 3 commits into
biojava:masterfrom
aalhossary:amr/fix933
Jun 24, 2021
Merged

josemduarte merged 3 commits into
biojava:masterfrom
aalhossary:amr/fix933

Conversation

@aalhossary

Copy link
Copy Markdown
Member

When the httpConnection is invalid, the application does not detect it, and it saves an empty (precisely a 20 bytes) file.
This fix detects when the connection is invalid or the file has no contents.
Related to #703
Adding a flag to be successful only when at least one byte is successfully read from the server

…failure

When the httpConnection is invalid, the application does not detect it,
and it saves an empty (precisely a 20 bytes) file.
This fix detects when the connection is invalid or the file has no
contents.
Related to biojava#703
@aalhossary aalhossary linked an issue Jun 16, 2021 that may be closed by this pull request

@josemduarte josemduarte left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks! One comment about the error message

@aalhossary
aalhossary requested a review from josemduarte June 17, 2021 22:55

@josemduarte josemduarte left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@josemduarte

Copy link
Copy Markdown
Contributor

@aalhossary , we are having some trouble with the CI tests. Could you try pushing an empty commit (git commit --allow-empty -m "Trigger Build" ) to see if that triggers the tests?

@josemduarte
josemduarte merged commit 50b4372 into biojava:master Jun 24, 2021
@aalhossary
aalhossary deleted the amr/fix933 branch June 25, 2021 00:08
jnbdz pushed a commit to jnbdz/biojava that referenced this pull request Aug 2, 2026
Fix biojava#933 URLConnection to invalid HTTP URL is not detected as failure
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.

URLConnection to invalid HTTP URL is not detected as a failure

2 participants