Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

[🚧] REST: Request fails if one of two parameters is not specified #201

Open
finnWellers opened this issue Jun 16, 2020 · 0 comments
Open
Assignees
Labels
bug Something isn't working feedback wanted Extra discussion is needed

Comments

@finnWellers
Copy link
Contributor

finnWellers commented Jun 16, 2020

Describe the bug
When expecting more than one request parameter and at least one is not provided, the request fails with a

java.lang.IllegalArgumentException: argument "content" is null
	at com.fasterxml.jackson.databind.ObjectMapper._assertNotNull(ObjectMapper.java:4413) ~[jackson-databind-2.10.2.jar:2.10.2]
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3172) ~[jackson-databind-2.10.2.jar:2.10.2]
	at de.fearnixx.jeak.service.controller.connection.HttpServer.fromJson(HttpServer.java:146) ~[classes/:?]
	at de.fearnixx.jeak.service.controller.connection.HttpServer.transformRequestOption(HttpServer.java:90) ~[classes/:?]
	at de.fearnixx.jeak.service.controller.controller.SparkAdapter.lambda$generateRoute$3(SparkAdapter.java:128) ~[classes/:?]
	at spark.RouteImpl$1.handle(RouteImpl.java:72) ~[spark-core-2.9.1.jar:?]
	at spark.http.matching.Routes.execute(Routes.java:61) ~[spark-core-2.9.1.jar:?]
	at spark.http.matching.MatcherFilter.doFilter(MatcherFilter.java:134) ~[spark-core-2.9.1.jar:?]
	at

Error

@finnWellers finnWellers added bug Something isn't working feedback wanted Extra discussion is needed labels Jun 16, 2020
@finnWellers finnWellers assigned MarkL4YG and finnWellers and unassigned MarkL4YG Jun 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working feedback wanted Extra discussion is needed
Development

No branches or pull requests

2 participants