You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Grails 5, i can get app environment name in GSP with ${grails.util.Metadata.current.getEnvironment()}
Actual Behaviour
${grails.util.Metadata.current.getEnvironment()} returns nothing. I can however, get environment name with ${grails.util.Environment.current.name}.
Using ${grails.util.Metadata.current.getProperties()} i see environment name is null developmentEnvironmentAvailable=true, environment=null,
Steps To Reproduce
1- add ${grails.util.Metadata.current.getEnvironment()} to a GSP. It won't return anything.
2- add ${grails.util.Environment.current.name} this shows environment name.
Expected Behavior
In Grails 5, i can get app environment name in GSP with ${grails.util.Metadata.current.getEnvironment()}
Actual Behaviour
${grails.util.Metadata.current.getEnvironment()} returns nothing. I can however, get environment name with ${grails.util.Environment.current.name}.
Using ${grails.util.Metadata.current.getProperties()} i see environment name is null
developmentEnvironmentAvailable=true, environment=null,
Steps To Reproduce
1- add ${grails.util.Metadata.current.getEnvironment()} to a GSP. It won't return anything.
2- add ${grails.util.Environment.current.name} this shows environment name.
Environment Information
Example Application
https://github.com/jamesfredley/grails-website-test/tree/7.0.0-SNAPSHOT
Version
grails=7.0.0-SNAPSHOT
The text was updated successfully, but these errors were encountered: