[ https://issues.apache.org/jira/browse/WW-3601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011813#comment-13011813 ]
Dave Newton commented on WW-3601: --------------------------------- I'd assume the existing S2 code uses "/struts" as the static request path without checking for any other characters, like a trailing "/". This is certainly not a blocking bug, so I'm downgrading it. What does everyone else think about fixing this? I don't have a problem with it, but I also haven't tested the change. I'd be a little weirded out if fixing this broke anybody's code, but you never know. > A bug about the file name in struts2 > ------------------------------------ > > Key: WW-3601 > URL: https://issues.apache.org/jira/browse/WW-3601 > Project: Struts 2 > Issue Type: Bug > Affects Versions: 2.0.0, 2.1.8, 2.2.1.1 > Environment: Operating System:Windows 7 > JDK-version:1.6 > Tomcat-version:7.0.6 > Reporter: Li Hao Su > Priority: Blocker > Labels: 404-error, filename, request > Original Estimate: 24h > Remaining Estimate: 24h > > I hope I can explain this bug clear. Forgive me my poor English. > When I make a file, the filename likes 'struts.jsp', I request this page in > my IE, for example 'http://localhost/struts.jsp', it tells me a 404-error. > Then I changed the name to '123struts.jsp', request again, I got the page. > But if I named the page 'struts123.jsp', it'll give me the 404-error again. > I also tried to change the suffix, like 'struts.html', while it's happened > again, even though I changed the name like 'struts.txt'. > This bug has occurred in Struts2.0.0, 2.1.8 and 2.2.1.1. > Of couse, if I do not use the Struts2, this bug disappeared. > Thanks. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira