spring-ws
spring-ws copied to clipboard
Route works when running application but produces 404 during tests [SWS-977]
Martin Formanek opened SWS-977 and commented
Steps to reproduce:
- Clone the reproduction project
- Build the project using
./mvnw verify-> 1 test failure - Run the project using
./mvnw spring-boot:run - Use Postman or a similar program to upload a file via PUT to the URL from the test failure (http://localhost:8080/images/upload) -> works
What puzzles me:
- The route is clearly defined in com.example.presentation.ImageController
- It works when running the actual application, but it fails when running the tests
- Even during the tests, there is the following line in the log:
2016-12-05 10:53:31.878 INFO 8933 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/images/upload],methods=[PUT]}" onto public void com.example.presentation.ImageController.uploadImage(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) throws java.io.IOException
After asking several other people to take a look at this, I have come to the conclusion that this is likely a bug. Unfortunately, I have no idea where to start looking for it.
I would appreciate it if somebody could look into this, as it currently prevents me from making progress with my journeypiece / thesis.
Reference URL: https://github.com/fNek/spring-framework-issues/tree/master/SWS-977