Skip to content

Commit bb0a8d7

Browse files
authored
Issue 50592: labkey.setDefaults to also clear the CSRF token cache when clearing the httr session cookies (#105)
v3.2.2
1 parent 2735a8c commit bb0a8d7

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

Rlabkey/DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: Rlabkey
2-
Version: 3.2.1
3-
Date: 2024-04-04
2+
Version: 3.2.2
3+
Date: 2024-06-06
44
Title: Data Exchange Between R and 'LabKey' Server
55
Author: Peter Hussey
66
Maintainer: Cory Nathe <cnathe@labkey.com>

Rlabkey/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Changes in 3.2.2
2+
o Issue 50592: labkey.setDefaults to also clear the CSRF token cache when clearing the httr session cookies
3+
14
Changes in 3.2.1
25
o labkey.setDefaults to clear httr session cookies
36

Rlabkey/R/labkey.defaults.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ labkey.setDefaults <- function(apiKey="", baseUrl="", email="", password="")
2424
# with any reset of the defaults, clear the httr session cookies (https://stackoverflow.com/questions/39979393/how-to-remove-cookies-preserved-by-httrget)
2525
if (!is.null(.lkdefaults$baseUrl)) {
2626
handle_reset(.lkdefaults$baseUrl)
27+
28+
# Issue 50592: clear the CSRF token cache as well
29+
urlBase = labkey.getBaseUrl()
30+
.lkcsrf[[urlBase]] = NULL
2731
}
2832

2933
if (baseUrl != "")

Rlabkey/man/Rlabkey-package.Rd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ schema objects (\code{labkey.getSchema}).
1818
\tabular{ll}{
1919
Package: \tab Rlabkey\cr
2020
Type: \tab Package\cr
21-
Version: \tab 3.2.1\cr
22-
Date: \tab 2024-04-04\cr
21+
Version: \tab 3.2.2\cr
22+
Date: \tab 2024-06-06\cr
2323
License: \tab Apache License 2.0\cr
2424
LazyLoad: \tab yes\cr
2525
}

0 commit comments

Comments
 (0)