-
Notifications
You must be signed in to change notification settings - Fork 644
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
Allow runCmds to change user. #1772
base: master
Are you sure you want to change the base?
Allow runCmds to change user. #1772
Conversation
3ecaead
to
355f7b4
Compare
As discussed in fabric8io#913 (comment), except the user tag is not limited to the first entry. A user tag will however disable the optimize option. Signed-off-by: Jens Andersen <[email protected]>
355f7b4
to
c47e054
Compare
Signed-off-by: Jens Andersen <[email protected]>
Quality Gate failedFailed conditions |
@@ -101,7 +101,7 @@ public String decrypt(String password) { | |||
|
|||
@BeforeEach | |||
void containerSetup() throws ComponentLookupException, SecDispatcherException { | |||
Mockito.lenient().when(container.lookup(SecDispatcher.ROLE, "maven")).thenReturn(secDispatcher); | |||
// Mockito.lenient().when(container.lookup(SecDispatcher.ROLE, "maven")).thenReturn(secDispatcher); |
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.
Why is this mockito expectation commented out?
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.
Ugh i guess I forgot about those. As i remember, it happened because the Security dispatcher stuff doesn't work with never versions of maven. I guess it should be enabled, so that whoever knows how it is supposed to work can make the appropriate fixes.
// throw new MojoExecutionException("Error looking security dispatcher",e); | ||
// } catch (ReflectiveOperationException e) { | ||
// throw new MojoExecutionException("Cannot decrypt password: " + e.getCause(),e); | ||
// } |
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.
This code is used for decrypting password from maven settings.xml . Why is this commented out? Disabling this might cause problems for users who are using encryption with maven
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.
same as above
Signed-off-by: Jens Andersen <[email protected]>
As discussed in #913 (comment), except the user tag is not limited to the first entry. A user tag will however disable the optimize option