Is the FORM area always empty? Is the url scope ok?

I am running the legacy CF Fusebox 5.5 application on Railo 4.0.2.002 Express with Jetty 8 on Mac OS X 10.8 with java 1.7. I also use the urlrewrite berth http://tuckey.org/urlrewrite/ (if relevant)

Why is the FORM area always empty when submitting forms? But if I use a URL scope, it works fine.

The app works great in all other CF versions and should also work fine here.

UPDATE 1:
Also, when I do onRequestStart inside Application.cfc and I delete the FORM scope, it is also empty.

Does anyone have a problem with this? I don’t think it is necessarily β€œfusebox”, so I wonder if this is a problem with the compatibility issue with Railo 4?

UPDATE 2:
When a form submits to /admin/index.cfm?event=Main.Login
the form area works great. But when it is sent to /admin/event/Main.Login, the scope of the form is missing.

 <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.0//EN" "http://tuckey.org/res/dtds/urlrewrite3.0.dtd"> <urlrewrite> <rule> <from>^/admin/event/(.*)</from> <to last="false">/admin/index.cfm?event=$1</to> </rule> <rule> <from>^/lms/event/(.*)</from> <to last="false">/lms/index.cfm?event=$1</to> </rule> </urlrewrite> 

UPDATE 3:
It should also be noted that Charles (proxy) correctly detects a POST request. It contains Email / Password and other form elements correctly sent to the server.
Does the Jetty server just not see them or redirect them to a Railo engine or something?

UPDATE 4:
Here is the tuckey configuration that they will tell you in their web.xml . I actually placed this in the webdefault.xml directory in etc/ the Railo Express directory, which, I think, might just be a Jetty file.

 <filter> <filter-name>UrlRewriteFilter</filter-name> <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class> </filter> <filter-mapping> <filter-name>UrlRewriteFilter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </filter-mapping> 
+7
source share
1 answer

I had a lot of problems with Tuckey and I ended up using Apache and modrewrite for functions that Tuckey simply did not support. This suggests that Railo + Tomcat / Jetty is not ColdFusion with Jrun, and the configuration was a difficult task to ensure that mod_rewrite had all the request information and even had the request at all. Even Adobe had to fix CF10 after the release because they lacked the original functionality from the CF9- + JRUN connectors.

However, for your decision you need to reach out and exit. See Section here.

https://groups.google.com/forum/#!msg/railo/uw-U9hCFu5k/bEmr_I2Kl8sJ

Other people have the same problem and work around it, putting this on onRequestStart:

 <cfscript> if(gethTTPRequestData().method eq "POST") { if(NOT structKeyExists(form,"fieldnames")) { var paramMap = getPageContext().getRequest().getParameterMap(); var paramMapKeys = structKeyList(paramMap); form.fieldnames = paramMapKeys; for(x =1; x lte listLen(paramMapKeys); x++) { param = listGetAt(paramMapKeys,x); form[param] = paramMap[param][1]; } } } </cfscript> 

It is not clear if this is a mistake in Jetty, Railo or Tuckey.

0
source

All Articles