GeezerVison is showing github.com — slf4j 升级到 1.7.32 parent 依赖升级 fix #317 · AbbottLiu/feilong@fb8efd0
File tree
Expand file treeCollapse file tree
Open diff view settings
feilong-lib/feilong-lib-ognl/src/main/java/com/feilong/lib/ognl/security
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: feilong-example/pom.xml +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
14 | 14 |
|
15 | 15 |
|
16 | 16 | <!-- https://junit.org/junit4/ --> |
17 | | - <version.junit>4.13.1</version.junit> |
| 17 | + <version.junit>4.13.2</version.junit> |
18 | 18 | <version.hamcrest-library>1.3</version.hamcrest-library> |
19 | 19 |
|
20 | 20 | <!-- http://logging.apache.org/log4j/1.2/download.html --> |
21 | 21 | <version.log4j>1.2.17</version.log4j> |
22 | 22 |
|
23 | 23 | <!-- https://logback.qos.ch/news.html --> |
24 | | - <version.logback>1.2.3</version.logback> |
| 24 | + <version.logback>1.2.5</version.logback> |
25 | 25 | <!-- http://www.slf4j.org/news.html --> |
26 | | - <version.slf4j>1.7.30</version.slf4j> |
| 26 | + <version.slf4j>1.7.32</version.slf4j> |
27 | 27 |
|
28 | 28 | <!-- http://hc.apache.org/downloads.cgi --> |
29 | | - <version.httpcomponents>4.5.12</version.httpcomponents> |
| 29 | + <version.httpcomponents>4.5.13</version.httpcomponents> |
30 | 30 |
|
31 | 31 |
|
32 | 32 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: feilong-lib/feilong-lib-ognl/src/main/java/com/feilong/lib/ognl/security/OgnlSecurityManager.java +5-7Lines changed: 5 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -36,11 +36,11 @@ public class OgnlSecurityManager extends SecurityManager{ |
36 | 36 |
|
37 | 37 | private static final Class<?> FILE_PERMISSION_CLASS = FilePermission.class; |
38 | 38 |
|
39 | | - private SecurityManager parentSecurityManager; |
| 39 | + private final SecurityManager parentSecurityManager; |
40 | 40 |
|
41 | | - private List<Long> residents = new ArrayList<>(); |
| 41 | + private final List<Long> residents = new ArrayList<>(); |
42 | 42 |
|
43 | | - private SecureRandom rnd = new SecureRandom(); |
| 43 | + private final SecureRandom rnd = new SecureRandom(); |
44 | 44 |
|
45 | 45 | public OgnlSecurityManager(SecurityManager parentSecurityManager){ |
46 | 46 | this.parentSecurityManager = parentSecurityManager; |
@@ -55,9 +55,8 @@ private boolean isAccessDenied(Permission perm){ |
55 | 55 | // TODO: might be risky but we have to - fix it if any POC discovered |
56 | 56 | // relax a bit with containers class loaders lazy class load |
57 | 57 | return false; |
58 | | - }else{ |
59 | | - isInsideClassLoader = false; |
60 | 58 | } |
| 59 | + isInsideClassLoader = false; |
61 | 60 | } |
62 | 61 | if (OGNL_SANDBOX_CLASS_NAME.equals(c.getName())){ |
63 | 62 | return true; |
@@ -93,9 +92,8 @@ public Long enter(){ |
93 | 92 | if (install()){ |
94 | 93 | residents.add(token); |
95 | 94 | return token; |
96 | | - }else{ |
97 | | - return null; |
98 | 95 | } |
| 96 | + return null; |
99 | 97 | } |
100 | 98 | residents.add(token); |
101 | 99 | return token; |
|
Collapse file
Copy file name to clipboardExpand all lines: pom.xml +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
99 | 99 | <version.jstl>1.2</version.jstl> |
100 | 100 |
|
101 | 101 | <!-- https://junit.org/junit4/ --> |
102 | | - <version.junit>4.13.1</version.junit> |
| 102 | + <version.junit>4.13.2</version.junit> |
103 | 103 | <version.hamcrest-library>1.3</version.hamcrest-library> |
104 | 104 |
|
105 | 105 | <!-- http://logging.apache.org/log4j/1.2/download.html --> |
106 | 106 | <version.log4j>1.2.17</version.log4j> |
107 | 107 |
|
108 | 108 | <!-- https://logback.qos.ch/news.html --> |
109 | | - <version.logback>1.2.3</version.logback> |
| 109 | + <version.logback>1.2.5</version.logback> |
110 | 110 |
|
111 | 111 | <version.aspectjweaver>1.6.8</version.aspectjweaver> |
112 | 112 |
|
|
118 | 118 | <version.ooxml-schemas>1.4</version.ooxml-schemas> |
119 | 119 |
|
120 | 120 | <!-- http://www.slf4j.org/news.html --> |
121 | | - <version.slf4j>1.7.30</version.slf4j> |
| 121 | + <version.slf4j>1.7.32</version.slf4j> |
122 | 122 |
|
123 | 123 | <!-- http://velocity.apache.org/news.html --> |
124 | 124 | <!-- Velocity Engine 2.1 now requires Java 1.8+. --> |
|