-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fixed NullPointerException in SecureLogFilter.isLoggable #2630
Conversation
@nvoxland I don't have access to the "Stable Liquibase Pro" build, so I don't know why/what failed. Is it something I need to fix on my side? Also, the "Package Artifacts" failed due to some kind of infrastructure issue. |
The SafeToBuild label is something we have to add based on reviewing the code. It's a temporary solution as we're fixing up the build logic to be more secure |
@nvoxland, this build did not run, despite having the |
…into nikosmoum-fix_log_npe
#2777 removes this class completely, so if that PR gets merged first this can be closed as "unneeded" |
@@ -3,10 +3,12 @@ package liquibase.integration.commandline | |||
|
|||
import liquibase.command.CommandBuilder | |||
import liquibase.configuration.ConfigurationDefinition | |||
import picocli.CommandLine | |||
import liquibase.logging.LogMessageFilter |
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.
@nvoxland, can you please confirm that we want to swap out piccoli.CommandLine in favor of using liquibase.logging.LogMessageFilter? I ask because there are plans to deprecate the LogMessageFilter class.
CC @nikosmoum
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.
That is the right class to be importing, and also part of why this PR won't be needed if/when #2777 goes through. I just hadn't closed this one yet since whether we want to do this or not will depend on what happens with 2777
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.
- Fix is focused on addressing a Null Pointer.
- New integration and unit tests added.
- No further testing required.
Passing Test Harness Execution
Passing Functional Tests
APPROVED
Environment
Liquibase Version: 4.8.0
Liquibase Integration & Version: CLI
Liquibase Extension(s) & Version: none
Database Vendor & Version: I don't think it matters, but I tested with Postgres 12
Operating System Type & Version: all (I tested on Fedora35)
Pull Request Type
Description
Fixes #1858
Steps To Reproduce
List the steps to reproduce the behavior.
liquibase.change.custom.CustomTaskChange
).liquibase.integration.commandline.Main
orliquibase.integration.commandline.LiquibaseCommandLine
, and setting the--log-level=
argument (it's value doesn't matter, could be info/debug/whatever)Actual Behavior
The update fails. Here is the last part of the stacktrace:
Expected/Desired Behavior
The update should succeed.
Fast Track PR Acceptance Checklist:
Need Help?
Come chat with us on our discord channel