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
Quarkus Liquibase MongoDB extension properties not used #25850
Comments
Is this still an issue on 2.10.0? My mongodb user doesn't have |
I'll have a look tomorrow and get back to you |
@loicmathieu is this something you want to tackle? |
@geoand I can have a look next week.
For the other properties, we need to implement them, Liquibase MongoDB cannot use our Mongo client instance so we need to pass it the properties, it's not very convenient, that's why all properties are not supported. Maybe also we need to document it a little more. |
@NMichas we honor Note that for disabling liquibase migration you should use |
I had a look and the best I can do is to add the authSource inside the mongodb connection String. |
The issue is still present on 2.13.2 on my side. @NMichas Did you find any workaround ?
Regarding this, it's not really a bug, disabling validation on migration is honored, but not the validation of the changeloglock collection for example. In order to disable those we need to configure liquibase to disable validators globally using the LiquibaseDatabase. |
@mfaghloumi nope, I couldn't make it work. For now in dev, I just gave |
Describe the bug
Quarkus Liquibase extension doesn't respect quarkus mongodb properties as it is expected.
Liquibase extension only uses 3 properties:
connection string
,username
password
.This can be checked in
io.quarkus.liquibase.mongodb.LiquibaseMongodbFactory
increateLiquibase
method.This will lead to an error on application startup if you are using quarkus properties for MongoDB configuration, for an example
quarkus.mongodb.credentials.auth-source
orquarkus.mongodb.database
instead of adding all this params to connection string.Expected behavior
Quarkus mongodb properties are repsected by
quarkus-liquibase-mongodb
extensionActual behavior
Application throws error on starup.
This error will showup if authSource and db not present in connString.
This error will showup if authSource present in connString but no db specified.
How to Reproduce?
Use quarkus mongodb settings and setup
quarkus-liquibase-mongodb
extensionOutput of
uname -a
orver
Darwin Kernel Version 21.1.0
Output of
java -version
openjdk version "11.0.12" 2021-07-20 OpenJDK Runtime Environment Homebrew (build 11.0.12+0) OpenJDK 64-Bit Server VM Homebrew (build 11.0.12+0, mixed mode)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.9.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 7.4.2
Additional information
No response
The text was updated successfully, but these errors were encountered: