Hi!

I just added a flag to configure if the file names used by tx file store shall be the same as the ones passed from outside or be encoded to match any file system. The solution chosen is a bit weired and uses a combination of base 64 and url encoding. This makes the files stored into the file system look really obscure, but this is the price to pay, I guess. I had to choose the combination described as this seemed to be the only way to really guarantee no characters offending to any file system remain. For details have a look at the comments in the commit mail.

To switch this encoding on you will have to configure a parameter called url-encode-path in Domain.xml. Your store definition might look like this:

<store name="TxFileStore">
<nodestore classname="org.apache.slide.store.txfile.TxXMLFileDescriptorsStore">
<parameter name="rootpath">E:/tmp/test/store/node</parameter>
<parameter name="workpath">E:/tmp/test/work/node</parameter>
<parameter name="url-encode-path">true</parameter>
<parameter name="timeout">20</parameter>
</nodestore>
<contentstore classname="org.apache.slide.store.txfile.TxFileContentStore">
<parameter name="rootpath">E:/tmp/test/store/content</parameter>
<parameter name="workpath">E:/tmp/test/work/content</parameter>
<parameter name="url-encode-path">true</parameter>
<parameter name="timeout">20</parameter>
</contentstore>
<securitystore>
<reference store="nodestore" />
</securitystore>
<lockstore>
<reference store="nodestore" />
</lockstore>
<revisiondescriptorsstore>
<reference store="nodestore" />
</revisiondescriptorsstore>
<revisiondescriptorstore>
<reference store="nodestore" />
</revisiondescriptorstore>
</store>



Cheers,


Oliver


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to