forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 9130: Pulsar-admin sinks create: bad error message "java.lang.N…
…ullPointerException: path is 'null'." in case of missing "--name" parameter (apache#9131) Fixes apache#9130 ### Motivation Return a better error to the user ### Modifications Add an explicit validation and do not let WebTarget#path throw an internal error. The validation covers tenant,namespace and sinkname in all of the functions regarding sinks. We must do the validation here because we have to prevent code to pass bad values to JAX-RS client ### Verifying this change This change added unit tests
- Loading branch information
Showing
2 changed files
with
298 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.