[daisy] [JIRA] Commented: (DSY-328) Repository data cannot be stored in a directory that contains spaces (Windows)

Bruno Dumon (JIRA) issues at cocoondev.org
Sun Aug 20 03:36:08 CDT 2006


    [ http://issues.cocoondev.org//browse/DSY-328?page=comments#action_12868 ] 

Bruno Dumon commented on DSY-328:
---------------------------------

After having a quick look at the ActiveMQ code, I think we need tripple-encoded characters. The reasoning for this is at follows:

* the query string is decoded a first time as part of the "vm:" URL parsing
[single encoding would be gone here]

* the parameters are (wrongly) decoded a second time when parsing the query string
[double encoding would be gone here]

* and then the result of the query string parsing is used to construct a URI object, which still expects encoded spaces. Hence, we need tripple-encoding at the start.

Could you give this a try? A tripple encoded space should be one of these:

%252B
%252520

> Repository data cannot be stored in a directory that contains spaces (Windows)
> ------------------------------------------------------------------------------
>
>          Key: DSY-328
>          URL: http://issues.cocoondev.org//browse/DSY-328
>      Project: Daisy
>         Type: Bug
>   Components: Repository
>     Versions: public - 2.0
>  Environment: Daisy 2.0
>     Reporter: Andreas Deininger
>     Priority: Minor
>  Attachments: data_dir_whitespace.patches.tar, data_dir_whitespace_1_5.patch, data_dir_whitespace_2_0.patch
>
> Even with DSY-319 applied, daisy's repository data still cannot be stored in a directory that contains spaces.
> Reason: The line
>  <property name="java.naming.provider.url" value="vm://DaisyJMS?brokerConfig=xbean:file:${daisy.datadir}/conf/activemq-conf.xml"/>
> in myconfig.xml is causing that trouble.
> Even if you encode the file: URL, it does not work.
> As a workaround, paul suggested to use a relative path, which then means that you have to place "cd <daisy_data>/conf" in the startup script.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org//secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



More information about the daisy mailing list