-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Describe the bug
I'm trying to get https://github.com/georust/ogcapi to pass the conformance tests successfully.
However, I don't understand why the tests testJobCreationInputValidation and testJobCreationInputRef fail.
To Reproduce
I logged the requests and responses from the server:
###
GET http://localhost:8484/
User-Agent: Jersey/3.1.8 (HttpUrlConnection 17.0.16)
Accept: text/html, image/gif, image/jpeg, */*; q=0.2
Connection: keep-alive
### Response ###
# Status Code: 200
# Response Headers:
# content-type: application/json
# x-request-id: 0e682762-309e-4c3c-85c4-9f91b12a22bc
# vary: origin, access-control-request-method, access-control-request-headers, accept-encoding
# access-control-allow-origin: *
# access-control-expose-headers: *
# content-length: 1029
# date: Wed, 22 Oct 2025 15:40:19 GMT
# Response Body:
# {"title":"root","description":"root","links":[{"href":"http://localhost:8484/collections","rel":"data","type":"application/json","title":"Metadata about the resource collections"},{"href":"http://localhost:8484/tiles","rel":"tilesets-vector","type":"application/json","title":"List of available vector features tilesets for the dataset"},{"href":"http://localhost:8484/processes","rel":"processes","type":"application/json","title":"Metadata about the processes"},{"href":"http://localhost:8484/","rel":"self","type":"application/json"},{"href":"http://localhost:8484/","rel":"root","type":"application/json"},{"href":"http://localhost:8484/api","rel":"service-desc","type":"application/vnd.oai.openapi+json;version=3.0","title":"The Open API definition"},{"href":"http://localhost:8484/swagger","rel":"service-doc","type":"text/html","title":"The Open API definition (Swagger UI)"},{"href":"http://localhost:8484/conformance","rel":"conformance","type":"application/json","title":"Conformance classes implemented by this API"}]}
###
GET http://localhost:8484/processes/echo
Accept: application/json
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.14 (Java/17.0.16)
Accept-Encoding: gzip,deflate
### Response ###
# Status Code: 200
# Response Headers:
# content-type: application/json
# x-request-id: c7b4b823-1820-4f36-90d8-0b66d717b5de
# vary: origin, access-control-request-method, access-control-request-headers, accept-encoding
# access-control-allow-origin: *
# access-control-expose-headers: *
# content-encoding: gzip
# transfer-encoding: chunked
# date: Wed, 22 Oct 2025 15:40:19 GMT
# Response Body:
# {"id":"echo","version":"1.0.0","jobControlOptions":["sync-execute","async-execute"],"outputTransmission":["value"],"links":[{"href":"http://localhost:8484/processes/echo","rel":"self","type":"application/json"},{"href":"./echo/execution","rel":"http://www.opengis.net/def/rel/ogc/1.0/execute","title":"Execution endpoint"}],"inputs":{"stringInput":{"title":"String Literal Input Example","description":"This is an example of a STRING literal input.","schema":{"title":"StringInput","type":"string"}}},"outputs":{"stringOutput":{"schema":{"title":"StringInput","type":"string"}}}}
###
POST http://localhost:8484/processes/echo/execution
Accept: application/json
Content-Length: 95
Content-Type: application/json; charset=UTF-8
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.14 (Java/17.0.16)
Accept-Encoding: gzip,deflate
{
"inputs": {
"stringInput": "teststring"
},
"outputs": {
"stringOutput": {
"transmissionMode": "value"
}
}
}
### Response ###
# Status Code: 200
# Response Headers:
# content-type: text/plain
# x-request-id: 1c60d3cc-82ab-4ccc-b5ab-66c38fd4d7df
# vary: origin, access-control-request-method, access-control-request-headers
# access-control-allow-origin: *
# access-control-expose-headers: *
# content-length: 10
# date: Wed, 22 Oct 2025 15:40:19 GMT
# Response Body:
# teststring
CITE responses with
Unrecognized token 'teststring': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 11] (IGNORED)
Expected behavior
I would expect the response to be okay.
I tried to return "teststring" because of Accept: application/json, but this did not work.
I tried to return an error, but only 200 seems to be okay.
Returning document instead of raw also did not succeed.
And the error message is not helpful at all.
Additional context
Maybe you have an idea of what to do here and whether this is an error on the CITE side.
I tried to look at pygeoapi, but the test is skipped there (I also do not know why).
And for GNOSIS Map Server, which is certified for OGC API Processes, this tests fails with some MIME type stuff.
Thank you very much for looking at this issue!