-
Notifications
You must be signed in to change notification settings - Fork 272
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
Fix Owner Validation #3593
Fix Owner Validation #3593
Conversation
@@ -259,7 +259,13 @@ public void updateArtifactOwner(String groupId, String artifactId, ArtifactOwner | |||
requireParameter("groupId", groupId); | |||
requireParameter("artifactId", artifactId); | |||
|
|||
ArtifactOwnerDto dto = new ArtifactOwnerDto(data.getOwner()); | |||
String owner = data.getOwner(); | |||
requireParameter("owner", owner); |
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.
Is calling the requireParameter
method not sufficient for this purpose?
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.
Please address the feedback or reply to the comment.
Hi @carlesarnal , thank you for the review. I thought |
bd602fd
to
836e1d3
Compare
Hi @carlesarnal , |
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.
Looks perfect, thanks @renjingxiao
* Add null checks on role mapping (#3800) * Add null checks on role mapping * Add check for Role and Unit Test * Fixed a regression in the Settings page search box (#3798) * modified state change checks in ArtifactStateExt and AbstractSqlRegistryStorage (#3637) * Incorrect default value avro serialization (#3633) * Fix default value converter * Add test for default byte type value in converter test * Correct comment * added unit tests (#3593) * Bugfix: prase decimal's default --------- Co-authored-by: Amoncy <[email protected]> Co-authored-by: Eric Wittmann <[email protected]> Co-authored-by: Jean Xiao <[email protected]> Co-authored-by: Anshu Anna Moncy <[email protected]> Co-authored-by: j2gg0s <[email protected]>
* Add null checks on role mapping (Apicurio#3800) * Add null checks on role mapping * Add check for Role and Unit Test * Fixed a regression in the Settings page search box (Apicurio#3798) * modified state change checks in ArtifactStateExt and AbstractSqlRegistryStorage (Apicurio#3637) * Incorrect default value avro serialization (Apicurio#3633) * Fix default value converter * Add test for default byte type value in converter test * Correct comment * added unit tests (Apicurio#3593) * Bugfix: prase decimal's default --------- Co-authored-by: Amoncy <[email protected]> Co-authored-by: Eric Wittmann <[email protected]> Co-authored-by: Jean Xiao <[email protected]> Co-authored-by: Anshu Anna Moncy <[email protected]> Co-authored-by: j2gg0s <[email protected]>
* Add null checks on role mapping (#3800) * Add null checks on role mapping * Add check for Role and Unit Test * Fixed a regression in the Settings page search box (#3798) * modified state change checks in ArtifactStateExt and AbstractSqlRegistryStorage (#3637) * Incorrect default value avro serialization (#3633) * Fix default value converter * Add test for default byte type value in converter test * Correct comment * added unit tests (#3593) * Bugfix: prase decimal's default --------- Co-authored-by: Amoncy <[email protected]> Co-authored-by: Eric Wittmann <[email protected]> Co-authored-by: Jean Xiao <[email protected]> Co-authored-by: Anshu Anna Moncy <[email protected]> Co-authored-by: j2gg0s <[email protected]>
Hi @EricWittmann and @carlesarnal ,
In this PR I have added checks for the
owner
to ensure it's neithernull
or an empty string.MissingRequiredParameterException
will be thrown if the check fails.It will close #3476 .
Thank you for reviewing.