Skip to content

Commit

Permalink
Redirect Log4J 1.x to Log 2.x (netty#11264)
Browse files Browse the repository at this point in the history
Removes flag by Whitesource vulnerability scanner

Motivation:

WhiteSource vulnerability scan flags the Log4J 1.x stream as vulnerable.

Modification:

Replaced reference to `log4j` with `log4j-1.2-api`
Ran `mvn test` (on a Mac) successfully

Result:

Fixes netty#11263
  • Loading branch information
Stwissel authored and 夏无影 committed Jul 8, 2022
1 parent 8171fee commit 3c1a85e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions common/pom.xml
Expand Up @@ -64,8 +64,8 @@
<optional>true</optional>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-1.2-api</artifactId>
<optional>true</optional>
</dependency>
<dependency>
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Expand Up @@ -728,9 +728,9 @@
<version>${log4j2.version}</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-1.2-api</artifactId>
<version>2.14.1</version>
<exclusions>
<exclusion>
<artifactId>mail</artifactId>
Expand Down

0 comments on commit 3c1a85e

Please sign in to comment.