-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
spring-boot 3.4.0, spring-boot 3.2.4, spring-boot 3.0.4, spring-boot 3.1.4, spring-boot 3.3.2
-
None
Steps to reproduce
- Use 1st Webapps and 2nd REST API artifact in pom.xml
- Start the application
- Perform the following REST API request:
POST http://localhost:8080/rest/external-task/fetchAndLock { "workerId": "aWorkerId", "asyncResponseTimeout": 1800001 }
Observed behavior
- Response body is an empty JSON array
- The wrong rest artifact is used
Expected behavior
- Response body is
{"type":"InvalidRequestException","message":"The asynchronous response timeout cannot be set to a value greater than 1800000 milliseconds"}
- Independently of the ordering of the dependencies, the long-polling containing artifact is used
Ideas to resolve this
- Use the JAX-RS 2 artifact in the webapps (con: would then also expose long polling API in the webapp, which is not needed at all)
- Shade the REST API into the webapp with relocated class names => avoids clash between artifacts