[Geoserver-devel] [JIRA] (GEOS-10484) JDK 17 failure in ResourceControllerTest#testDirectoryJSON_multiple_children

Andrea Aime created an issue

GeoServer / BugGEOS-10484

JDK 17 failure in ResourceControllerTest#testDirectoryJSON_multiple_children

Issue Type:

BugBug

Assignee:

Andrea Aime

Created:

06/May/22 9:53 AM

Priority:

MediumMedium

Reporter:

Andrea Aime

Happens installing the latest JDK 17 release, one file that used to be detected as generic binary, is now detected (correctly!) as json:

{"ResourceDirectory": {
  "name": "mydir2",
  "parent":   {
    "path": "/",
    "link":     {
      "href": "http://localhost:8080/geoserver/rest/resource/",
      "rel": "alternate",
      "type": "application/json"
    }
  },
  "lastModified": "2022-05-06 07:50:50.935 UTC",
  "children": {"child":   [
        {
      "name": "fake.png",
      "link":       {
        "href": "http://localhost:8080/geoserver/rest/resource/mydir2/fake.png",
        "rel": "alternate",
        "type": "image/png"
      }
    },
        {
      "name": "imagewithoutextension",
      "link":       {
        "href": "http://localhost:8080/geoserver/rest/resource/mydir2/imagewithoutextension",
        "rel": "alternate",
        "type": "image/png"
      }
    },
        {
      "name": "myres.json",
      "link":       {
        "href": "http://localhost:8080/geoserver/rest/resource/mydir2/myres.json",
        "rel": "alternate",
        "type": "application/json" <-- Used to be application/octect-stream
      }
    },
        {
      "name": "myres.xml",
      "link":       {
        "href": "http://localhost:8080/geoserver/rest/resource/mydir2/myres.xml",
        "rel": "alternate",
        "type": "application/xml"
      }
    }
  ]}
 }} 

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100198-sha1:597f829)

Atlassian logo