Status/Resolution/Reason: Closed/Won't Fix/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 01/07/2015
Components: REST Services
Versions: 11.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Minor / Very few users will encounter
Locale/System: English / Win All
Vote Count: 0
Currently, the case-sensitivity of the "/rest/" portion of REST URLs prevents them from being CAPSLOCK-friendly.
Steps to reproduce:
Application.cfc
---------------
component {
THIS.name = "restcaps";
function onApplicationStart() {
restInitApplication(expandPath("./"), "foo", {useHOST=true});
}
}
index.cfm is empty file
R.cfc
-----
component restpath="{b:[bB][aA][rR]}" {remote string function abc() httpmethod="GET" {return "foobar";}}
1) In uriworkermap.properties, add: /REST/* = cfusion
2) In web.xml, add:
<servlet-mapping id="coldfusion_mapping_9999">
<servlet-name>CFRestServlet</servlet-name>
<url-pattern>/REST/*</url-pattern>
</servlet-mapping>
3) Restart CF
4) Browse to WWW.DOMAIN.COM/REST/FOO/BAR and see 404 (bad)
5) Browse to WWW.DOMAIN.COM/rest/FOO/BAR and see "foobar" (good)
Sometimes users type URLs w/ CAPSLOCK on (I've observed this). Browsers only lowercase the host portion before passing the URL to the web server. Since we can't control how users type and since CAPSLOCK breaks REST URLs, can UPPERCASE "/REST/" please be allowed?
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3917003
External Customer Info:
External Company:
External Customer Name: itisdesign
External Customer Email:
External Test Config: Verified w/ CF11 Update 3 Standalone Enterprise on Windows 8.1 Pro w/ IIS
Attachments:
Comments: