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

Bruno Dumon (JIRA) issues at cocoondev.org
Fri Aug 25 03:02:08 CDT 2006


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

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

Ah, I didn't pay much attention when updating RepositoryServerInit.

The file path in your error message is in fact completely perfect, except for the "file:\" which is because I forgot to remove the existing "file:" from the URL. I'll commit a fixed version soon.

Regarding my avoidance of using of a (working-dir-based) relative path, it might help if I complement my gut feeling around this with some actual arguments:

 * when the repository server is embedded in some other application, it might not be possible to control the working directory
 * similarly, there might be third party components which use the working directory to create temporary files or write log files, which would then end up in the data directory
 * the working directory is a global setting, relying on it would make it impossible to run multiple repository servers in one VM
 * a common problem when using relative paths is figuring out how they are resolved. Especially if some of them are resolved by third party components. Using something like ${daisy.datadir} makes it very clear where the path points to.

None of these reasons is really a problem today, but if with a little effort we can just supply the correct path to ActiveMQ, then we don't need to do anything special (such as setting the working dir) and can simply forget about it.

> 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
>      Fix For: public - 2.0
>  Attachments: data_dir_whitespace.patch, 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