java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • This commit https://jira.springsource.org/browse/SECOAUTH-365 produces bug. I clicked "Deny" button on oauth2 confirm page. My browser redirected to http://***.com/login?error=access_denied&error_description=User+denied+access&state=wuhu2t And I got this exception: java.lang.IllegalArgumentException: Invalid character '+' for QUERY_PARAM in "User+denied+access" at org.springframework.web.util.HierarchicalUriComponents.verifyUriComponent(HierarchicalUriComponents.java:298) at org.springframework.web.util.HierarchicalUriComponents.verify(HierarchicalUriComponents.java:267) at org.springframework.web.util.HierarchicalUriComponents.(HierarchicalUriComponents.java:85) at org.springframework.web.util.UriComponentsBuilder.build(UriComponentsBuilder.java:280) at org.springframework.security.oauth2.client.filter.OAuth2ClientContextFilter.calculateCurrentUri(OAuth2ClientContextFilter.java:126) at org.springframework.security.oauth2.client.filter.OAuth2ClientContextFilter.doFilter(OAuth2ClientContextFilter.java:57) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com... ServletUriComponentsBuilder cannot properly parse "+" plus sign in query string.
    via by Alexander Kharitonov,
  • This commit https://jira.springsource.org/browse/SECOAUTH-365 produces bug. I clicked "Deny" button on oauth2 confirm page. My browser redirected to http://***.com/login?error=access_denied&error_description=User+denied+access&state=wuhu2t And I got this exception: java.lang.IllegalArgumentException: Invalid character '+' for QUERY_PARAM in "User+denied+access" at org.springframework.web.util.HierarchicalUriComponents.verifyUriComponent(HierarchicalUriComponents.java:298) at org.springframework.web.util.HierarchicalUriComponents.verify(HierarchicalUriComponents.java:267) at org.springframework.web.util.HierarchicalUriComponents.(HierarchicalUriComponents.java:85) at org.springframework.web.util.UriComponentsBuilder.build(UriComponentsBuilder.java:280) at org.springframework.security.oauth2.client.filter.OAuth2ClientContextFilter.calculateCurrentUri(OAuth2ClientContextFilter.java:126) at org.springframework.security.oauth2.client.filter.OAuth2ClientContextFilter.doFilter(OAuth2ClientContextFilter.java:57) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com... ServletUriComponentsBuilder cannot properly parse "+" plus sign in query string.
    via by Alexander Kharitonov,
  • GitHub comment 957#262615470
    via GitHub by hackeys
    ,
  • Gitlab collector error
    via GitHub by vetrivelan25
    ,
    • java.lang.IllegalArgumentException: Invalid character '+' for QUERY_PARAM in "User+denied+access" at org.springframework.web.util.HierarchicalUriComponents.verifyUriComponent(HierarchicalUriComponents.java:298) at org.springframework.web.util.HierarchicalUriComponents.verify(HierarchicalUriComponents.java:267) at org.springframework.web.util.HierarchicalUriComponents.<init>(HierarchicalUriComponents.java:85) at org.springframework.web.util.UriComponentsBuilder.build(UriComponentsBuilder.java:280) at org.springframework.security.oauth2.client.filter.OAuth2ClientContextFilter.calculateCurrentUri(OAuth2ClientContextFilter.java:126) at org.springframework.security.oauth2.client.filter.OAuth2ClientContextFilter.doFilter(OAuth2ClientContextFilter.java:57) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    No Bugmate found.