Skip to content

Grails 3.2.2: Interceptor not executed #10284

@itpragmatik

Description

@itpragmatik

Steps to Reproduce

  1. install grails 3.2.2
  2. grails -v to confirm i am running 3.2.2
  3. grails create-app myapp
  4. add an interceptor myapp/grails-app/controllers/myapp/AuthenticationInterceptor.groovy
  5. grails clean && grails war
  6. java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 build/libs/myapp.war
  7. From my IntelliJ IDEA, set a breakpoint in the before() method of AuthenticationInterceptor
  8. Start debug from IDE
  9. Access http://localhost:8080/

Expected Behaviour

  1. Execution suspends at the breakpoint

Actual Behaviour

  1. Grails default index.html welcome page is shown; interceptor breakpoint is not hit.

Environment Information

  • Operating System: macOS Sierra Version 10.12.1
  • Grails Version: 3.2.2
  • JDK Version: java version "1.8.0_102", Java(TM) SE Runtime Environment (build 1.8.0_102-b14), Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)

Example Application

https://github.com/itpragmatik/myapp.git

Note

The breakpoint is hit when I do: grails run-app --debug-jvm

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions