Grails

Url-mappings using Capital letter controller names like ServiceProvider instead of serviceProvider

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.1
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Im running windows vista home premium 64-bit.

Description

If my controller name starts with a capital letter, the url-mappings cannot find the controller.
static mappings = {
"/rest/ServiceProvider/$id?"(controller:"serviceProvider", action="checkm")
"/$controller/$action?/$id?" {
constraints { // apply constraints here }
}
"/"(view: "/index")
"500"(view: '/error')

}
Works while

static mappings = {
"/rest/ServiceProvider/$id?"(controller:"ServiceProvider", action="checkm")
"/$controller/$action?/$id?" {
constraints { // apply constraints here } }
}
"/"(view: "/index")
"500"(view: '/error')

}
Doesnt work.

I bloged about it at http://www.morkeleb.com/2009/04/27/grails-cutom-url-mappings-not-working/
Im avaliable if you need help testing or more info.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Last Reviewed: