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

Andreas Deininger (JIRA) issues at cocoondev.org
Fri Aug 18 15:48:08 CDT 2006


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

Andreas Deininger updated DSY-328:
----------------------------------

    Attachment: data_dir_whitespace_1_5.patch

@Aaron: After a quick debug of the activemq code, it seems that if you escape the spaces to %20 then they will get transformed back into regular spaces at some point.  The transformed string (something like 'file:my dir/activemq-conf.xml') is then used to create a uri (new URI(string)), but this fails because of the space.

Therefore, to me it seems like the easiest solution for that issue is to use a relative path and change the directory accordingly in the repository start script. The attached small patch provides provides that functionality.

With this patch applied, one still can use the tanuki wrapper script, the only change you have to make is to add:

wrapper.working.dir=%DAISY_DATADIR%/conf

in dsy_repo_wrapper.conf. I just confirmed that this works and already updated the documentation (this option shouldn't do any harm with previous versions). I also added some quotes in order to make the wrapper scripts work with directories containing whitespaces in their name.

> 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_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