-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How do I check the version of log4j library version deployed in the Java runtime? #1923
Comments
This is a bug introduced by the ne CI release process.RalphOn Oct 30, 2023, at 10:28 AM, Deepak Pant ***@***.***> wrote:
As clearly indicated in the Log4j support page, please use mailing lists for questions!
Up until version 2.20.0, I was able to use following method to check the version #.
org.apache.logging.log4j.LogManager.class.getPackage().getImplementationVersion()
Starting version 2.21.1 the above method returns null as I could not find "Implementation-Version" entry in the MANIFEST.MF file.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
@pantdeepak, thanks for the report, I am on it. @rgoers, not by the CI release process, but the newly employed |
Generally speaking one can not expect However, since Log4j used to provide the Remark: if the purpose of this version check is a basic scan for vulnerable versions, I would rather parse the The presence of such a file is as "standard" as the Using this method you could find that the old |
…ST.MF` to `bnd-maven-plugin` configuration (apache/logging-log4j2#1923)
@pantdeepak, Log4j et al. is parented by |
Thank you very much for your prompt attention to this issue. Much appreciated. |
As clearly indicated in the Log4j support page, please use mailing lists for questions!
Up until version 2.20.0, I was able to use following method to check the version #.
org.apache.logging.log4j.LogManager.class.getPackage().getImplementationVersion()
Starting version 2.21.1 the above method returns null as I could not find "Implementation-Version" entry in the MANIFEST.MF file.
The text was updated successfully, but these errors were encountered: