-
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
Default ConsoleUIService.allowPrompt to false #1689
Comments
➤ Wesley Willard commented: Code reviewed by Wesley Willard |
➤ Erzsebet Carmean commented: I'm having trouble getting this issue to replicate. Passing the ticket back to Nathan Voxland for some help. |
I attached a repo project. Run |
➤ Erzsebet Carmean commented: Liquibase 4.3.2-LB-1220-SNAPSHOT, #1Validate NPE reproduces when a console is available but inappropriate to call. PASS Error Message{CODE} Manually verify fix addresses the NPE using the example project attached to the ticket. PASS Manually verify the Maven integration is unaffected by changes. PASS Notes on Testing
|
➤ Erzsebet Carmean commented: Everything looks good. Thanks for building the sample application for me, Nathan Voxland. Moving this to ready to merge. |
Description
The allowPrompt property controls whether systems using the ConsoleUIService will allow user prompts. The ConsoleUIService is activated any time a console/keyboard is available, but there are times (such as when starting a spring boot server from the command line) that a console IS available, even though we're not in a spot where we actually want keyboard input.
Changes
Change the default value to "false" and specifically set it to true only in the CLI interface
Expected Behavior
Running
liquibase update
CLI operations will prompt when needed (such as "would you like to join hub")Running
java -jar my-spring-app.jar
will NOT prompt for anythingActual Behavior
Running
java -jar my-spring-app.jar
prompts for joining hubLiquibase Internal QA Requirements
These tests are run on an internal Jenkins and results are not available to the wider community.
No automated tests are required for this ticket.
The text was updated successfully, but these errors were encountered: