SEC-1255: Replace file with controller to avoid windows filename problems
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package org.springframework.security.itest.web;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
|
||||
@Controller
|
||||
public class TestController {
|
||||
|
||||
@RequestMapping(value="/secure/file?with?special?chars.htm", method=RequestMethod.GET)
|
||||
public void sec1255TestUrl(HttpServletResponse response) throws IOException {
|
||||
response.getWriter().append("I'm file?with?special?chars.htm");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -24,13 +24,11 @@
|
||||
|
||||
<session-management>
|
||||
<concurrency-control max-sessions="1" />
|
||||
</session-management>
|
||||
</session-management>
|
||||
|
||||
<remember-me key="doesntmatter" token-repository-ref="tokenRepo"/>
|
||||
</http>
|
||||
|
||||
<beans:bean name="tokenRepo" class="org.springframework.security.web.authentication.rememberme.InMemoryTokenRepositoryImpl"/>
|
||||
|
||||
<!-- bean name="rememberMeServices" class="org.springframework.security.ui.rememberme.NullRememberMeServices"/ -->
|
||||
|
||||
</beans:beans>
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Special Chars File</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>I'm file?with?special?chars.html</p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user