Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
WIP #126: Upgrade Spring Boot 0.5.0.{M4 => M6}
Browse files Browse the repository at this point in the history
 - Causes as-yet not understood FileNotFoundExceptions on "class path
   resource [org/springframework/data/web/config/EnableSpringDataWebSupport.class]"

 - Required minor update to SecurityRequestPostProcessors to reflect
   breaking API changes in Spring Security's CSRF support.
  • Loading branch information
cbeams committed Nov 12, 2013
1 parent a54b456 commit cc6f0bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
@@ -1,5 +1,5 @@
buildscript {
ext.vSpringBoot = '0.5.0.M4'
ext.vSpringBoot = '0.5.0.M6'
ext.vSpringCore = '4.0.0.RC1'
ext.vSpringSec = '3.2.0.RC2'
ext.vHttpClient = '4.3-beta2'
Expand Down
Expand Up @@ -36,6 +36,7 @@
* Security is planned.
*
* @author Rob Winch
* @author Chris Beams
*/
public final class SecurityRequestPostProcessors {

Expand Down Expand Up @@ -81,7 +82,7 @@ private static class CsrfRequestPostProcessor implements RequestPostProcessor {
*/
@Override
public MockHttpServletRequest postProcessRequest(MockHttpServletRequest request) {
CsrfToken token = repository.generateAndSaveToken(request, new MockHttpServletResponse());
CsrfToken token = repository.generateToken(request);
request.setParameter(token.getParameterName(), token.getToken());
return request;
}
Expand Down

0 comments on commit cc6f0bb

Please sign in to comment.