Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malformed Post URL #16

Open
maleficarum opened this issue Jul 29, 2014 · 0 comments
Open

Malformed Post URL #16

maleficarum opened this issue Jul 29, 2014 · 0 comments

Comments

@maleficarum
Copy link

I've implemented all methods in the controller, but in the test case testAddVideoData I've noticed that the URL (in subsequent POST) is malformed :

2014-07-28 21:35:21.853 DEBUG 16681 --- [nio-8080-exec-2] o.s.web.servlet.view.JstlView : Forwarding to resource [video/1/data] in InternalResourceView 'video/1/data'
2014-07-28 21:35:21.856 DEBUG 16681 --- [nio-8080-exec-2] o.s.web.servlet.DispatcherServlet : DispatcherServlet with name 'dispatcherServlet' processing POST request for [/video/1/video/1/data]
2014-07-28 21:35:21.856 DEBUG 16681 --- [nio-8080-exec-2] o.s.web.servlet.DispatcherServlet : Request is already a MultipartHttpServletRequest - if not in a forward, this typically results from an additional MultipartFilter in web.xml
2014-07-28 21:35:21.857 DEBUG 16681 --- [nio-8080-exec-2] s.w.s.m.m.a.RequestMappingHandlerMapping : Looking up handler method for path /video/1/video/1/data
2014-07-28 21:35:21.858 DEBUG 16681 --- [nio-8080-exec-2] s.w.s.m.m.a.RequestMappingHandlerMapping : Did not find handler method for [/video/1/video/1/data]
2014-07-28 21:35:21.860 DEBUG 16681 --- [nio-8080-exec-2] o.s.w.s.handler.SimpleUrlHandlerMapping : Matching patterns for request [/video/1/video/1/data] are [/**]
2014-07-28 21:35:21.860 DEBUG 16681 --- [nio-8080-exec-2] o.s.w.s.handler.SimpleUrlHandlerMapping : URI Template variables for request [/video/1/video/1/data] are {}
2014-07-28 21:35:21.861 DEBUG 16681 --- [nio-8080-exec-2] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapping [/video/1/video/1/data] to HandlerExecutionChain with handler [org.springframework.web.servlet.resource.ResourceHttpRequestHandler@2492eec9] and 1 interceptor

I'm not pretty sure whether is a bug in the test case or in my implementation; I'm supposing that some part of code is re-appending the POST URL at the end; also I've reviewed and debugged my code in order to determine if I'm appending the URL or not, and I've noticed that my code isn't doing that.

Can somebody confirm this behaviour?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant