The GitHub Actions job "Groovy Snapshot Canary Build" on 
grails-core.git/fix/resource-link-controller-lookup has failed.
Run started by GitHub user codeconsole (triggered by codeconsole).

Head commit for run:
49e6984103abeab1443b5b4b3d42686501ce6134 / Scott Murphy Heiberg 
<[email protected]>
Resolve resource links to the controller exposing the domain class

A resource link derived its controller from the domain class name via
PersistentEntity.getDecapitalizedName(), so a controller not named after
its domain class was never found. Adopting plural controller names, the
convention Rails uses and the one that makes wildcard REST mappings
practical, meant <g:link resource="${person}"> targeted a non-existent
"person" controller.

DefaultLinkGenerator now keeps a lazily built domain-class-to-controller
index alongside the existing namespace index, guarded by the same
artefact array identity check so it costs nothing on the common path and
rebuilds on a development-mode reload. A controller's domain class is
resolved by walking its superclass hierarchy for a generic type argument
the mapping context recognises as a persistent entity, so it works for
any generic REST base class at any depth without this class depending on
that hierarchy.

Resolution only applies when exactly one controller declares the domain
class; an ambiguous or absent declaration falls back to the previous
behaviour, keeping the change additive.

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

With regards,
GitHub Actions via GitBox

Reply via email to