I'm testing this on my local machine where template/component cache is off.
Machii_config_mode is set to 1. So, basically no caching. I'm not using any
rewriting. I just didn't add index.cfm in code here (sorry about that).

I'm using the chrome poster plugin to test.

So, here is my request:

Request: http://<host>/index.cfm/api/subscribe/x...@x
Result: 200 ok (x...@x passed as value)

Request: http://<host>/index.cfm/api/subscribe/x...@x%2ecom
Result: 200 ok (x...@x passed as value)

Request: http://<host>/index.cfm/api/subscribe/x...@x%2ecom.json
Result: 404 ; No REST URI was found for '/api/subscribe/[email protected]',
httpMethod='GET'.

Now, let me know if I got the BER from the right location! I got it from:
http://svn.mach-ii.com/machii/framework/1-9-0/trunk/

Thanks,

Sumit Verma
Partner / Vice President | ten24, LLC
office: 877.886.5806 x 103 | mobile: 617.290.8214
www.ten24web.com | www.linkedin.com/in/sverma | twitter: blogonria


On Tue, Oct 5, 2010 at 10:38 PM, Peter J. Farrell <[email protected]> wrote:

>  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/
>

-- 
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/

Reply via email to