Skip to content

Commit

Permalink
Throw StackOverflowError when GSP view not exists
Browse files Browse the repository at this point in the history
Don't return cached `UrlMappingInfo` in the `UrlMappingsHandlerMapping`

Related commit: cbef563

Closes gh-379
  • Loading branch information
rainboyan committed Jun 28, 2024
1 parent b8c860c commit c38719b
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2014-2023 the original author or authors.
* Copyright 2014-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -122,11 +122,7 @@ class UrlMappingsHandlerMapping extends AbstractHandlerMapping {

@Override
protected Object getHandlerInternal(HttpServletRequest request) throws Exception {
Object matchedInfo = request.getAttribute(MATCHED_REQUEST)
Object errorStatus = request.getAttribute(WebUtils.ERROR_STATUS_CODE_ATTRIBUTE)
if (matchedInfo != null && errorStatus == null) {
return matchedInfo
}

String uri = urlHelper.getPathWithinApplication(request)
GrailsWebRequest webRequest = GrailsWebRequest.lookup(request)
Expand Down

0 comments on commit c38719b

Please sign in to comment.