Skip to content

Conversation

rogin
Copy link
Contributor

@rogin rogin commented Jul 2, 2025

Adds null check as property file may not exist.

To Reproduce: upgrade 4.5.1 to 4.5.2 without log4j2-cli.properties in the /conf directory

Related
nextgenhealthcare/connect#6327
Summary table in #121

Signed-off-by: Richard Ogin <rogin@users.noreply.github.com>
@rogin rogin force-pushed the fix-migration-4.5.2 branch from 8ae1a66 to c856702 Compare July 4, 2025 01:49
@kpalang kpalang requested review from a team, kayyagari, gibson9583, ssrowe and pacmano1 and removed request for a team September 8, 2025 15:32
Copy link
Contributor

@pacmano1 pacmano1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this code write some log event somewhere on skipping?

Copy link
Contributor

@mgaffigan mgaffigan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem right: the file is in the setup conf directory, and this migration seems to be the dual of 249b900. UTF-8 is not the default for appender.console.layout.charset. How are we assuming the install got to this state?

Perhaps the file should be created if it is not present? At a minimum, I would presume a warning would be called for.

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

Successfully merging this pull request may close these issues.

3 participants