Skip to content

7.0.0-M4 BUG - Unexpected URLMapping Resolution #14814

@codeconsole

Description

@codeconsole

Expected Behavior

This worked fine prior but broke M4. If you have a plugin with a controller, it takes priority over the controller with the same name even if it is in a different namespace IF you run a jar. If you run via bootRun, it works fine.

plugin/grails-app/controllers/UserController

class UserController {
     static namespace = 'myplugin'

     def index() {}
}

grails-app/controllers/UserController

class UserController {
     def index() {}
}

UrlMappings .groovy

"/$controller/$action?/$id?(.$format)?"

grails bootRun
http://localhost/user/index -> grails-app/controllers/UserController.index

grails bootJar
java -jar build/.../sample.jar
http://localhost/user/index ->plugin/grails-app/controllers/UserController.index

Version

7.0.0-M4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions