File tree 2 files changed +6
-3
lines changed
authhelper/src/main/java/org/zaproxy/addon/authhelper
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -168,21 +168,23 @@ public class AuthUtils {
168
168
* session management to auto-detect, setting the checking strategy to "poll" but not specified
169
169
* a URL.
170
170
*/
171
- private static Map <Integer , VerificationRequestDetails > contextVerifMap = new HashMap <>();
171
+ private static Map <Integer , VerificationRequestDetails > contextVerifMap =
172
+ Collections .synchronizedMap (new HashMap <>());
172
173
173
174
/**
174
175
* The best session management request we have found for a context. There will only be a
175
176
* verification request recorded if the user has indicated that they want ZAP to auto-detect one
176
177
* by setting session management to auto-detect.
177
178
*/
178
179
private static Map <Integer , SessionManagementRequestDetails > contextSessionMgmtMap =
179
- new HashMap <>();
180
+ Collections . synchronizedMap ( new HashMap <>() );
180
181
181
182
/**
182
183
* The URLs (and methods) we've checked for finding good verification requests. These will only
183
184
* be recorded if the user has set verification to auto-detect.
184
185
*/
185
- private static Map <Integer , Set <String >> contextVerificationMap = new HashMap <>();
186
+ private static Map <Integer , Set <String >> contextVerificationMap =
187
+ Collections .synchronizedMap (new HashMap <>());
186
188
187
189
public static long getTimeToWaitMs () {
188
190
return timeToWaitMs ;
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
12
12
13
13
### Fixed
14
14
- Address exception when loading Client Script authentication method.
15
+ - Changes to address concurrent modification exceptions.
15
16
16
17
## [ 0.48.0] - 2025-03-04
17
18
### Changed
You can’t perform that action at this time.
0 commit comments