File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
grails-web-url-mappings/src/main/groovy/org/grails/web/mapping Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 3232import grails .core .GrailsApplication ;
3333import grails .web .mapping .UrlMappingInfo ;
3434import grails .web .mapping .exceptions .UrlMappingException ;
35+ import org .apache .commons .logging .Log ;
36+ import org .apache .commons .logging .LogFactory ;
3537import org .grails .web .servlet .mvc .GrailsWebRequest ;
3638import org .grails .web .util .WebUtils ;
3739import org .springframework .context .ApplicationContext ;
4951 */
5052public class DefaultUrlMappingInfo extends AbstractUrlMappingInfo {
5153
54+ private static final Log LOG = LogFactory .getLog (DefaultUrlMappingInfo .class );
5255 private static final String SETTING_GRAILS_WEB_DISABLE_MULTIPART = "grails.web.disable.multipart" ;
5356 private static final String CONTROLLER_PREFIX = "controller:" ;
5457 private static final String ACTION_PREFIX = "action:" ;
@@ -238,6 +241,11 @@ private String checkDispatchAction(HttpServletRequest request) {
238241 break ;
239242 }
240243 }
244+
245+ if (LOG .isWarnEnabled () && dispatchActionName != null ) {
246+ LOG .warn (String .format ("Dispatch Action [%s] detected; Dispatch Actions will be removed in a future version of Grails." , dispatchActionName ));
247+ }
248+
241249 return dispatchActionName ;
242250 }
243251
You can’t perform that action at this time.
0 commit comments