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

Improve reporting of missing/incorrect authorization in remote operations #258

Open
jesse-gallagher opened this issue Feb 12, 2021 · 1 comment
Labels
enhancement New feature or request maven Issues related to nsfodp-maven-plugin

Comments

@jesse-gallagher
Copy link
Member

Currently, when using a non-anonymous-allowing remote server without specifying credentials, the Maven mojos fail with generic I/O exceptions. It would be better to catch the specific response code and display an appropriate error message to the user.

@jesse-gallagher jesse-gallagher added enhancement New feature or request maven Issues related to nsfodp-maven-plugin labels Feb 12, 2021
@jesse-gallagher
Copy link
Member Author

There's similar trouble when the tooling isn't installed at all. It presumably received 404s, but outputs generic errors:

Feb 12, 2021 5:06:02 PM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request to {}->http://surinam.galaxia:9001: Broken pipe (Write failed)
Feb 12, 2021 5:06:02 PM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {}->http://surinam.galaxia:9001
Feb 12, 2021 5:06:02 PM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request to {}->http://surinam.galaxia:9001: Broken pipe (Write failed)
Feb 12, 2021 5:06:02 PM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {}->http://surinam.galaxia:9001
Feb 12, 2021 5:06:02 PM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request to {}->http://surinam.galaxia:9001: Protocol wrong type for socket (Write failed)
Feb 12, 2021 5:06:02 PM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {}->http://surinam.galaxia:9001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request maven Issues related to nsfodp-maven-plugin
Projects
None yet
Development

No branches or pull requests

1 participant