We need to change the base insert POST url to something other than "/"
Suggestion: /servlet/Insert The old InsertServlet accepted POSTs to "/" and then relies on fproxy to render its status information. The new InsertServlet_ renders it's own status info. Having the insert servlet monopolize all POST requests on "/" is a bad idea. Allowing the new servlet to report it's status on "/" is also problematic, because you would have to do horrible hacks to make it play nice with fproxy, which really should own all unclaimed "/" GET requests. In order to ease the transition, I checked in a little change so that InsertServlet_ can be configured to to emulate the old (broken) InsertServlet behavior. To get the same functionality, you need to run two instances of InsertServlet_. It is a bad hack because 1) it requires and extra instance 2) it relies on the fact that both instances are running in the same JVM, so it might not work for other containers (like Tomcat). I propose that we put this hack in the default configuration, post warnings to freesite author's that they should update the post URLs of their NIM forms to the devl and the support list and CofE, then back it out after say a month. --gj Here's the config info: # freenet.conf lines to replace the old insert servlet with InsertServlet_ mainport.params.servlet.4.uri=/ mainport.params.servlet.4.method=POST # NOTE: I hard coded this in InsertServlet_ because # servlet parameter parsing appears to be # broken -- gj. # Must match URI in 9 mainport.params.servlet.4.redirectPath=/servlet/Insert mainport.params.servlet.4.class=freenet.client.http.InsertServlet_ mainport.params.servlet.4.name=InsertServlet POST (alpha!) mainport.params.servlet.9.uri=/servlet/Insert mainport.params.servlet.9.method=BOTH mainport.params.servlet.9.class=freenet.client.http.InsertServlet_ mainport.params.servlet.9.name=InsertServlet BOTH (alpha!) _______________________________________________ devl mailing list [EMAIL PROTECTED] http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/devl
