Skip to content

Commit

Permalink
Small fix when multiple cookies sent.
Browse files Browse the repository at this point in the history
  • Loading branch information
at88mph committed Jan 11, 2024
1 parent 1fa5979 commit 8a9a7f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
# tags with and without build number so operators use the versioned
# tag but we always keep a timestamped tag in case a semantic tag gets
# replaced accidentally
VER=0.2.0
VER=0.2.1
TAGS="${VER} ${VER}-$(date -u +"%Y%m%dT%H%M%S")"
unset VER
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ repositories {

dependencies {
implementation 'com.opencsv:opencsv:[5.1,6.0)'
implementation 'commons-net:commons-net:3.6'
implementation 'org.apache.commons:commons-configuration2:2.3'
implementation 'commons-net:commons-net:3.9.0'
implementation 'org.apache.commons:commons-configuration2:2.7'
implementation 'org.opencadc:cadc-access-control-identity:[1.1.0,)'
implementation 'org.opencadc:cadc-gms:[1.0.12,2.0)'
implementation 'org.opencadc:cadc-log:[1.1.5,)'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ protected Subject getCurrentSubject() throws Exception {
if (StringUtil.hasText(rawCookieHeader)) {
final String[] firstPartyCookies =
Arrays.stream(rawCookieHeader.split(";"))
.map(String::trim)
.filter(cookieString -> cookieString.startsWith(
ApplicationConfiguration.FIRST_PARTY_COOKIE_NAME))
.toArray(String[]::new);
Expand Down

0 comments on commit 8a9a7f1

Please sign in to comment.