You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2022/01/29 06:42:33 UTC

[logging-log4j2] branch release-2.x updated (0aee498 -> a4590f7)

This is an automated email from the ASF dual-hosted git repository.

mattsicker pushed a change to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git.


    from 0aee498  Port build logic to codeql scan
     new 84e73a4  Use https url for repository
     new a4590f7  Remove CSRF disabling in sample code

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../log4j-spring-cloud-config-sample-server/pom.xml                     | 2 +-
 .../log4j/spring/cloud/config/service/config/SecurityConfiguration.java | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

[logging-log4j2] 01/02: Use https url for repository

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mattsicker pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 84e73a458c002da0c909fc06cdac6f8b968cfdb5
Author: Matt Sicker <ma...@apache.org>
AuthorDate: Sat Jan 29 00:39:52 2022 -0600

    Use https url for repository
---
 .../log4j-spring-cloud-config-sample-server/pom.xml                     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/log4j-spring-cloud-config/log4j-spring-cloud-config-samples/log4j-spring-cloud-config-sample-server/pom.xml b/log4j-spring-cloud-config/log4j-spring-cloud-config-samples/log4j-spring-cloud-config-sample-server/pom.xml
index e0761c0..7d67214 100644
--- a/log4j-spring-cloud-config/log4j-spring-cloud-config-samples/log4j-spring-cloud-config-sample-server/pom.xml
+++ b/log4j-spring-cloud-config/log4j-spring-cloud-config-samples/log4j-spring-cloud-config-sample-server/pom.xml
@@ -252,7 +252,7 @@
     <repository>
       <id>apache.snapshots</id>
       <name>Apache snapshots repository</name> 
-      <url>http://repository.apache.org/content/groups/snapshots</url> 
+      <url>https://repository.apache.org/content/groups/snapshots</url> 
       <snapshots> 
         <enabled>true</enabled>
       </snapshots> 

[logging-log4j2] 02/02: Remove CSRF disabling in sample code

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mattsicker pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit a4590f7b7bab114658fa1f6e1267e9ae588cbab3
Author: Matt Sicker <ma...@apache.org>
AuthorDate: Sat Jan 29 00:42:00 2022 -0600

    Remove CSRF disabling in sample code
    
    Don't want to encourage bad practices after all.
---
 .../log4j/spring/cloud/config/service/config/SecurityConfiguration.java  | 1 -
 1 file changed, 1 deletion(-)

diff --git a/log4j-spring-cloud-config/log4j-spring-cloud-config-samples/log4j-spring-cloud-config-sample-server/src/main/java/org/apache/logging/log4j/spring/cloud/config/service/config/SecurityConfiguration.java b/log4j-spring-cloud-config/log4j-spring-cloud-config-samples/log4j-spring-cloud-config-sample-server/src/main/java/org/apache/logging/log4j/spring/cloud/config/service/config/SecurityConfiguration.java
index 1abf6d7..98c0963 100644
--- a/log4j-spring-cloud-config/log4j-spring-cloud-config-samples/log4j-spring-cloud-config-sample-server/src/main/java/org/apache/logging/log4j/spring/cloud/config/service/config/SecurityConfiguration.java
+++ b/log4j-spring-cloud-config/log4j-spring-cloud-config-samples/log4j-spring-cloud-config-sample-server/src/main/java/org/apache/logging/log4j/spring/cloud/config/service/config/SecurityConfiguration.java
@@ -32,6 +32,5 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
         web.ignoring().antMatchers("/health")
             .antMatchers("/metrics")
             .antMatchers("/info");
-        getHttp().csrf().disable();
     }
 }