jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@gmail.com>
Subject Re: Limiting access to the local file system?
Date Thu, 19 Jul 2007 07:56:18 GMT
hi rob,

On 7/19/07, Rob Evans <objectiveous@gmail.com> wrote:
> Folks,
>
> In the environment where I intend to deploy jackrabbit there is a
> constraint preventing servlets from writing to disk ( I think I do
> have write access to /tmp ) . So, I tried configuring jackrabbit using
> the DBFileSystem thinking that would do the trick. No luck.

the lucene index is still written to the local file system. for more
details see

http://issues.apache.org/jira/browse/JCR-189
http://issues.apache.org/jira/browse/JCR-1026

furthermore, temp files will obviously be created on the local file system.

i guess there's no (easy) way to prevent local file system access completely.

cheers
stefan

>
> Any thoughts on getting around this limit?
>
> REPOSITORY CONFIG
> ----------------------------------
> <?xml version="1.0"?>
> <Repository>
>
>   <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
>     <param name="driver" value="com.mysql.jdbc.Driver" />
>     <param name="url" value="jdbc:mysql://localhost/jcr" />
>     <param name="schema" value="mysql" />
>     <param name="schemaObjectPrefix" value="filesystem_" />
>     <param name="user" value="root" />
>     <param name="password" value="" />
>   </FileSystem>
>
>   <Security appName="Jackrabbit">
>     <AccessManager
> class="org.apache.jackrabbit.core.security.SimpleAccessManager"></AccessManager>
>
>     <LoginModule class="org.apache.jackrabbit.core.security.SimpleLoginModule">
>       <param name="anonymousId" value="anonymous" />
>     </LoginModule>
>   </Security>
>
>
>   <Workspaces  rootPath="${rep.home}/workspaces" defaultWorkspace="jcr" />
>
>   <Workspace name="jcr">
>
>     <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
>       <param name="driver" value="com.mysql.jdbc.Driver" />
>       <param name="url" value="jdbc:mysql:///jcr" />
>       <param name="schema" value="mysql" />
>       <param name="schemaObjectPrefix" value="filesystem_" />
>       <param name="user" value="root" />
>       <param name="password" value="" />
>     </FileSystem>
>
>     <PersistenceManager
> class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
>       <param name="driver" value="com.mysql.jdbc.Driver" />
>       <param name="url" value="jdbc:mysql:///jcr" />
>       <param name="schema" value="mysql" />
>       <param name="schemaObjectPrefix" value="app_" />
>       <param name="externalBLOBs" value="false" />
>       <param name="user" value="root" />
>       <param name="password" value="" />
>     </PersistenceManager>
>
>     <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
>       <param name="path" value="${wsp.home}/index" />
>     </SearchIndex>
>   </Workspace>
>
>   <Versioning rootPath="${rep.home}/version">
>
>     <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
>       <param name="driver" value="com.mysql.jdbc.Driver" />
>       <param name="url" value="jdbc:mysql:///jcr" />
>       <param name="schema" value="mysql" />
>       <param name="schemaObjectPrefix" value="rep_" />
>       <param name="user" value="root" />
>       <param name="password" value="" />
>     </FileSystem>
>
>     <PersistenceManager
> class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
>       <param name="driver" value="com.mysql.jdbc.Driver" />
>       <param name="url" value="jdbc:mysql:///jcr" />
>       <param name="schema" value="mysql" />
>       <param name="schemaObjectPrefix" value="app_" />
>       <param name="externalBLOBs" value="false" />
>       <param name="user" value="root" />
>       <param name="password" value="" />
>     </PersistenceManager>
>   </Versioning>
>
> </Repository>
>

Mime
View raw message