[
https://issues.apache.org/jira/browse/WICKET-1399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12599301#action_12599301
]
Vladimir Piskarev commented on WICKET-1399:
-------------------------------------------
Should also escape ':'
> Escaping DiskPageStore SessionFolder needed
> -------------------------------------------
>
> Key: WICKET-1399
> URL: https://issues.apache.org/jira/browse/WICKET-1399
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.1
> Environment: win xp, sun jdk 1.5.0_12, jboss-4.2.2.ga+tomcat-5.5
> Reporter: Filippo Guerzoni
> Assignee: Matej Knopp
>
> When sessionId=8y4bxNcyiScVVV6QtVp9lg**.node1 Wicket can't create the temp
> directory because the name contains invalid character (at least on windows).
> So a FileNotFoundException is thrown.
> The use case happens when tomcat is configured as (in order to work with
> apache module mod_jk)
> <!-- Define an AJP 1.3 Connector on port 8009 -->
> <Connector port="8009" address="${jboss.bind.address}" protocol="AJP/1.3"
> emptySessionPath="true" enableLookups="false" redirectPort="8443" />
> <Engine name="jboss.web" defaultHost="localhost" jvmRoute="node1">
> My very temp solution (to let things go) is
> private File getSessionFolder(String sessionId, boolean create)
> {
> File storeFolder = getStoreFolder();
> File sessionFolder = new File(storeFolder,
> sessionId.replace('*','_'));
> if (create && sessionFolder.exists() == false)
> {
> mkdirs(sessionFolder);
> }
> return sessionFolder;
> }
> I think that a global solution is needed to fix the problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.