cancel
Showing results for 
Search instead for 
Did you mean: 

Defining different shared file systems

omegerard
Champ in-the-making
Champ in-the-making
Objective: I want to define several (shared) file systems from the same Alfresco tree so as to make mapping a network drive more easy (and so as to make the distance to the files of interest shorter).

Attempted solution: I edited "file-servers.xml".

Basically, I added the following lines:

      <filesystem name="Test">
         <store>workspace://SpacesStore</store>
         <rootPath>/app:company_home/Test</rootPath>
      </filesystem>

Where "Test" is indeed the name of a workspace below the company home space.

Outcome: The file system was recognized, but it started showing the space store from the top down, not from the Test subspace. Moreover the standard Alfresco file system was no longer available.

Obviously, I seem to have misunderstood the config file. Could anyone provide a working example? A full example of the <homeFolder name=“Home” /> feature would be appreciated as well. Does it have to be included in a <filesystem> configuration of its own?

Thanks

Ludo
15 REPLIES 15

gary_spencer
Champ in-the-making
Champ in-the-making
Hi,

You could try using the rootPath value of '/app:company_home/cm:Test' for now but we are looking at adding a new configuration value for the relative path to make it easier to configure.

The home folder config is pretty much just <homeFolder name="Home"/> within the same configuration block as other <filesystem> entries.

When you connect to the CIFS server the user that you connect as is used to create a dynamic filesystem that is visible to your session only and mapped to your own space.

Cheers

Gary

gary_spencer
Champ in-the-making
Champ in-the-making
Hi,

I've just added a new filesystem configuration value to allow a relative path to be set :-

  <filesystem name="Alfresco">
    <store>workspace://SpacesStore</store>
    <rootPath>/app:company_home</rootPath>
    <relativePath>\Garys space</relativePath>
  </filesystem>
The path can use either forward or back slashes, and can be multiple levels.

Cheers

Gary

omegerard
Champ in-the-making
Champ in-the-making
Hi Gary

I've just added a new filesystem configuration value

I presume this will be available in 1.2. Right?

gary_spencer
Champ in-the-making
Champ in-the-making
Hi,

It's in the 1.2 release and also the nightly builds.

Cheers

Gary

omegerard
Champ in-the-making
Champ in-the-making
Hi Gary

I gave this feature a new try.

I works, though not as expected.

When I defined two or more filesystems, only the last one appears to work. At least it is the only one that can be "browsed". And when I try to map any of the other filesystems, I'm requested to provide username and password over and over again (on a WXP platform).

This cannot be the expected behaviour, can it?

Regards

Ludo

gary_spencer
Champ in-the-making
Champ in-the-making
Hi Ludo,

Could you email me your file-servers.xml file.

Thanks

Gary

andrepra
Champ in-the-making
Champ in-the-making
I'm interested to the multiple share functionality. I don't understand is you have solved the problem?

My file-server is:

   <config evaluator="string-compare" condition="Filesystems">
      <filesystem name="FS1">
         <store>workspace://SpacesStore</store>
         <rootPath>/app:company_home</rootPath>
         <relativePath>/FS1/Test</relativePath>
      </filesystem>
      <filesystem name="FS2">
         <store>workspace://SpacesStore</store>
         <rootPath>/app:company_home</rootPath>
         <relativePath>/FS2/Test2</relativePath>
      </filesystem>

Opening CIFS server i saw FS2 with the content of FS1.
Thanks
Andrew

gary_spencer
Champ in-the-making
Champ in-the-making
Hi,

This has been fixed in the latest version of the code. This required a change to the XML format to add a top-level <filesystems> block which then contains one or more <filesystem> definitions.

The change was required to allow the file-servers.xml configuration to be overridden using a file-servers-custom.xml in the alfresco/extension folder.

The way the configuration override works was causing only the last filesystem to be defined to be loaded.

Cheers

Gary

andrepra
Champ in-the-making
Champ in-the-making
With "last version of code" did you mean version 1.2.1 or 1.3? Trying adding filesystems tag to di 1.2.1 seems doesn't work.

thanks
andrew
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.