Comment #14 on issue 522 by [email protected]: Servlet forwards from servlets with pathinfo mishandled
http://code.google.com/p/google-guice/issues/detail?id=522

I run into this bug so often just when experimenting with test cases that I'm surprised people can use Guice in a production environment at all!

I can't even get Stripes quickstart to work, and I think I've traced it to Guice forwarding. Here's the original issue I raised on the Stripes user list. From what I could see from the stack Stripes' DispatcherServlet was doing everything it should do, and then the forward back to the URL was being botched by Guice.
http://permalink.gmane.org/gmane.comp.java.stripes.user/12594

I attempted to set up a testing environment, (thanks for the info), and started trying to author a test case but I struggled so much with the 'correct' model of the name/value pairs being thrown around at each stage in the Servlet processing that I found it very hard to author mocks which adequately recreate the behaviour of my (Jetty) servlet environment.

@tmikov Glad an expert who can follow what all these attributes should do was able to look into it. Thanks for all your efforts. I hope the detail you've provided means a patch makes it into guice-servlets trunk for the rest of us.

At this stage I don't have a web.xml at all, though looks like I'll have to go back to it to incorporate your patch, or possibly drop guice-servlets to avoid maintaining two different ways to wire things. When Guice dies on such a mainstream operation as a forward, it's hard to keep the faith.

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en.

Reply via email to