Skip to content

Commit

Permalink
- CHG: Dependency update to support Tomcat 10.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-raubach committed Jun 21, 2023
1 parent d9ebfdd commit 156ef55
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ dependencies {
implementation 'cisd:jhdf5:14.12.6'
implementation 'net.coobird:thumbnailator:0.4.18'
// implementation 'com.zaxxer:HikariCP:4.0.3'
implementation 'org.jooq:jooq:3.16.6'
implementation 'org.jooq:jooq:3.16.18'
implementation 'org.dhatim:fastexcel-reader:0.14.0'
implementation 'com.drewnoakes:metadata-extractor:2.18.0'
implementation 'xerces:xercesImpl:2.12.2'
Expand All @@ -68,8 +68,8 @@ dependencies {

implementation 'javax.annotation:javax.annotation-api:1.3.2'
implementation 'javax.activation:activation:1.1.1'
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:3.0.1'
implementation 'org.glassfish.jaxb:jaxb-runtime:3.0.2'
implementation 'org.glassfish.jaxb:jaxb-runtime:4.0.2'
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.0'

implementation 'org.flywaydb:flyway-core:6.5.7'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
Expand All @@ -78,11 +78,11 @@ dependencies {

implementation 'de.ipk-gatersleben:isa4j:1.1.0'

compileOnly 'jakarta.platform:jakarta.jakartaee-api:9.1.0'
providedCompile 'jakarta.servlet:jakarta.servlet-api:6.0.0'

implementation 'org.glassfish.jersey.containers:jersey-container-servlet:3.0.8'
implementation 'org.glassfish.jersey.inject:jersey-hk2:3.0.8'
implementation 'org.glassfish.jersey.media:jersey-media-multipart:3.0.8'
implementation 'org.glassfish.jersey.containers:jersey-container-servlet:3.1.1'
implementation 'org.glassfish.jersey.inject:jersey-hk2:3.1.1'
implementation 'org.glassfish.jersey.media:jersey-media-multipart:3.1.1'

implementation 'javax.media:jai_core:1.1.3'
implementation 'org.geotools:gt-shapefile:27.2'
Expand Down
Binary file modified lib/germinate-brapi-4.6.0.jar
Binary file not shown.
Binary file modified lib/germinate-codegen-4.6.0.jar
Binary file not shown.
Binary file modified lib/germinate-importer-4.6.0.jar
Binary file not shown.
5 changes: 0 additions & 5 deletions src/main/java/jhi/germinate/server/AuthenticationFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public static void updateAcceptedDatasets(HttpServletRequest req, HttpServletRes
ids.add(licenseId);

Cookie cookie = new Cookie("accepted-licenses", CollectionUtils.join(ids, ","));
cookie.setVersion(0);
cookie.setPath(getContextPath(req));
cookie.setMaxAge((int) (AGE / 1000));
cookie.setHttpOnly(true);
Expand Down Expand Up @@ -292,15 +291,13 @@ private static void setCookie(String token, HttpServletRequest request, HttpServ
if (delete)
{
Cookie cookie = new Cookie("token", "");
cookie.setVersion(0);
cookie.setPath(getContextPath(request));
cookie.setMaxAge(0);
cookie.setHttpOnly(true);
response.addCookie(cookie);

// This is for the docker image that uses a proxy-reverse
cookie = new Cookie("token", "");
cookie.setVersion(0);
cookie.setPath("/");
cookie.setMaxAge(0);
cookie.setHttpOnly(true);
Expand All @@ -309,7 +306,6 @@ private static void setCookie(String token, HttpServletRequest request, HttpServ
else
{
Cookie cookie = new Cookie("token", token);
cookie.setVersion(0);
cookie.setPath(getContextPath(request));
cookie.setMaxAge((int) (AGE / 1000));
cookie.setHttpOnly(true);
Expand All @@ -325,7 +321,6 @@ private static void setDatasetCookie(boolean delete, HttpServletRequest request,
if (!CollectionUtils.isEmpty(ids))
{
Cookie cookie = new Cookie("accepted-licenses", CollectionUtils.join(ids, ","));
cookie.setVersion(0);
cookie.setPath(getContextPath(request));
cookie.setMaxAge(delete ? 0 : (int) (AGE / 1000));
cookie.setHttpOnly(true);
Expand Down

0 comments on commit 156ef55

Please sign in to comment.