You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@grails.apache.org by GitBox <gi...@apache.org> on 2026/10/01 08:29:51 UTC

[GH] (grails-core/12081-interceptor-model-unavailable): Workflow run "CodeQL" failed!

The GitHub Actions job "CodeQL" on grails-core.git/12081-interceptor-model-unavailable has failed.
Run started by GitHub user ruthst00 (triggered by ruthst00).

Head commit for run:
398ca758fcf4bbcefd882cbfe7e986de48853b27 / ruthes00 <ru...@gmail.com>
Updated `getModel()` with fallback: when no `ModelAndView` is set in the request, it returns the value stored under `GrailsApplicationAttributes.TEMPLATE_MODEL`:

1. `getModel()` returns `null` when neither `MODEL_AND_VIEW` nor `TEMPLATE_MODEL` is set (existing behavior, but now explicit)
2. `getModel()` returns the `TEMPLATE_MODEL` map when no `ModelAndView` is present (new behavior)
3. `getModel()` still returns `modelAndView.modelMap` when a `ModelAndView` is present (existing behavior, verify it still works)

 Added two new test cases to `InterceptorSpec`

Report URL: https://github.com/apache/grails-core/actions/runs/36830046158

With regards,
GitHub Actions via GitBox