Closed Trumeet closed 5 years ago
These lines do not override the CredentialProvider.
I'm more worried by https://github.com/vert-x3/vertx-config/blob/037932a898fa05d98886678fdada01382359cf5e/vertx-config-git/src/main/java/io/vertx/config/git/GitConfigStore.java#L155. We should check for null
before setting them.
Can you check and open a PR?
@cescoffier Sorry, I'm currently not understanding these codes enough...
@cescoffier @Trumeet let me take a look at this issue. If anyone is already working on this let me know here.
Thanks @SINGS079 !
the issue is with this line where CredentialProvider is missing in case of Username and password authenticated Repo (https://github.com/vert-x3/vertx-config/blob/c8e66fec319d0215161715642f4c90399b34c227/vertx-config-git/src/main/java/io/vertx/config/git/GitConfigStore.java#L205)
I'm creating a pull request with this fix. Tested with my personal repo.
Can we close this issue as this is already resolved?
I'm using the
config
component withgit
config store. My config files are stored in a private git repo and I'm authentic by using username and password, which is set via:But I'm not speified a
idRsaKeyPath
attribute, it always says I don't provide aCredentialsProvider
:I've checked the source code, these lines may overrides the pervious
CredentialsProvider
which is set by username and password: https://github.com/vert-x3/vertx-config/blob/037932a898fa05d98886678fdada01382359cf5e/vertx-config-git/src/main/java/io/vertx/config/git/GitConfigStore.java#L97 https://github.com/vert-x3/vertx-config/blob/037932a898fa05d98886678fdada01382359cf5e/vertx-config-git/src/main/java/io/vertx/config/git/GitConfigStore.java#L118Is it a bug? I'm looking for your response, thanks.