Sumit Verma said the following on 10/05/2010 09:12 PM:
Hi Peter,
I downloaded the BER and it's still not working.
http://<host>/user/x...@x%2ecom - strips ".com" and returns "x...@x"
http://<host>/user/[email protected] - throws 404
* Did you reload clear your CFML engine template cache and reload your
application?
* If you append a file extension, you will still need to URLEncode the
".". Can you try this: http://<host>/user/x...@x%2ecom.json ?
* The 404 is probably being caused by any rewriting rules you are
using since it appears that you aren't accessing the endpoint like
http:///www.example.com/index.cfm/apiEndpoint/user/x...@x%2ecom.json
* We do throw a 404 if you hit an endpoint that is not defined:
<cfcatch type="MachII.endpoints.EndpointNotDefined">
<!--- No endpoint so send a 404 --->
<cfheader statuscode="404" statustext="Not Found" />
<cfheader name="machii.endpoint.error" value="#cfcatch.message#" />
<cfset variables.log.error(cfcatch.message, event.getArgs()) />
<cfsetting enablecfoutputonly="false"
/><cfoutput>#cfcatch.message#</cfoutput><cfsetting
enablecfoutputonly="true" />
Try taking a peek at the headers being sent back using something like
Firebug. I like to use Firefox Poster plugin to make other calls like
"PUT" or "DELETE".
* The UrlEncode "." as %2E is passing our unit tests on Apache /
Tomcat/ OpenBD and I manually tested on CF8. Something is probably
foobared on your system.
--
You received this message because you are subscribed to Mach-II for CFML list.
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/mach-ii-for-coldfusion?hl=en
***New URLs as of April 29th, 2010***
SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/