Skip to content
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

Issue with dataSource.passwordEncryptionCodec #50

Closed
tomcomer opened this issue Feb 4, 2016 · 4 comments
Closed

Issue with dataSource.passwordEncryptionCodec #50

tomcomer opened this issue Feb 4, 2016 · 4 comments

Comments

@tomcomer
Copy link

tomcomer commented Feb 4, 2016

When using dataSource.passwordEncryptionCodec and running any dbm-* commands fails with a SQLException for failing to log into the database. I have verified that the application connects to the database just fine when doing 'grails run-app'. Also, if removing the dataSource.passwordEncryptionCodec and storing the database password in plain text, the dbm-* commands work just fine. So it is definitely an issue with the dataSource.passwordEncryptionCodec and what ever the plugin is doing to connect to the database. It is probably ignoring this property and using the encrypted password to try to connect.

@tomcomer
Copy link
Author

tomcomer commented Feb 4, 2016

Looks like this is related to: https://liquibase.jira.com/browse/CORE-1932
Forcing liquibase 3.3.2 by putting compile 'org.liquibase:liquibase-core:3.3.2' in the build.gradle file does not fix the issue.

@tomcomer
Copy link
Author

tomcomer commented Feb 4, 2016

Trying with the latest version of Liquibase 3.4.2 also does not solve the issue.

The actual exception when trying to connect to my local MySQL database is:

Command execution error: java.sql.SQLException: Access denied for user 'my_user'@'localhost' (using password: YES)

Commenting out dataSource.passwordEncryptionCodec and changing the password to be the unencrypted version fixes this, so it is definitely caused by dataSource.passwordEncryptionCodec.

graemerocher added a commit that referenced this issue Feb 16, 2016
Fix for issue #50, ignoring dataSource.passwordEncryptionCodec
@jameskleeh
Copy link
Contributor

@tomcomer What version of Grails / dbm?

@jameskleeh
Copy link
Contributor

Nevermind, looks like this was resolved here: https://github.com/grails-plugins/grails-database-migration/pull/52/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants