File tree 2 files changed +25
-2
lines changed
2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 1
1
7.10.25
2
2
- fixed #12321: Error while deleting a group.
3
3
- fixed #12322: Cache/CHI stomps on the config file
4
+ - fixed #12327: HttpProxy does not clean up cookie jar storage locations
4
5
5
6
7.10.24
6
7
- fixed #12318: asset error causes asset manager to fail
Original file line number Diff line number Diff line change @@ -256,14 +256,36 @@ sub prepareView {
256
256
257
257
=head2 purge
258
258
259
- Extend the base method to delete the cookie jar
259
+ Extend the base method to delete all cookie jars for this HttpProxy
260
260
261
261
=cut
262
262
263
263
sub purge {
264
+ my $self = shift ;
265
+ my $id = $self -> getId;
266
+ my $session = $self -> session;
267
+ my @storageIds = $session -> db-> buildArray(" select cookieJarStorageId from HttpProxy where assetId=?" ,[$id ]);
268
+ my $success = $self -> SUPER::purge;
269
+ return 0 unless $success ;
270
+ foreach my $storageId (@storageIds ) {
271
+ my $storage = WebGUI::Storage-> get($session , $storageId );
272
+ $storage -> delete if defined $storage ;
273
+ }
274
+ return 1;
275
+ }
276
+
277
+ # -------------------------------------------------------------------
278
+
279
+ =head2 purgeRevision
280
+
281
+ Extend the base method to delete the cookie jar for this revision.
282
+
283
+ =cut
284
+
285
+ sub purgeRevision {
264
286
my $self = shift ;
265
287
$self -> getCookieJar-> delete ;
266
- $self -> SUPER::purge ;
288
+ $self -> SUPER::purgeRevision ;
267
289
}
268
290
269
291
You can’t perform that action at this time.
0 commit comments