cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS and WCM

sturner
Champ in-the-making
Champ in-the-making
Hello,

I'm using the WCM preview release on Win XP and am exploring the CIFS interface.

I can see the Alfresco repository in Win Explorer and (after logging in with my Alfresco admin username & password) can navigate to a list of the three spaces I have under Company Home - these are Data Dictionary, Guest Home, and Websites.

I can browse through Data Dictionary and Guest Home, seeing all the folders and files with no problem, but when I try to open the webapp under Websites space (the alfresco_www webapp) I get an error message, shown below:

[img]http://web.mit.edu/sturner/www/alfresco/alf_error.png[/img]

I'm wondering what the problem could be. I can access the web app quite happily through the Alfresco web interface using the same admin login.

Thanks,
Steve
8 REPLIES 8

kevinr
Star Contributor
Star Contributor
CIFS access to WCM sandboxes was not available in the preview version - it is working in the current code and will be available in the next release.

Thanks,

Kevin

sturner
Champ in-the-making
Champ in-the-making
Thanks Kevin-

I'll look forward to the next release.

Steve

jcox
Champ in-the-making
Champ in-the-making
Just so you're aware – the name "Alfrseco_www"
should never have appeared as an example in
the docs.  It's a bad choice for several reasons.
First, '_'  is not a valid character in a DNS host/domain;
thus, it must be translated (the translation char is '-').
Second, using 'Alfresco' and 'www' in an example
confusingly self-referential.   Finally, while DNS
permits caps, is case-insensitive, and the standards
say apps should be case-preserving, nearly all
browsers display the hostname in lower-case.
Therefore, it's  conceptually simpler if you stick
to lower-case DNS names only.

A better example for a web project name would
have been something like  "mysite".

alexander
Champ in-the-making
Champ in-the-making
Is CIFS browsing available in Afresco 2.0 preview?

If yes, how to access website content (if I browse there in a standard way, I do not see AVM content)?

kvc
Champ in-the-making
Champ in-the-making
Is CIFS browsing available in Afresco 2.0 preview?

If yes, how to access website content (if I browse there in a standard way, I do not see AVM content)?

Yes, CIFS is supported for web content in the 2.0 Preview.

Web Projects are configured as a separate mountable file-system.  This separate mounts lets you browse not only all your available sandboxes, but also all site snapshots.

The filesystem mount configuration can be found in your file-servers.xml file:

<!– AVM virtualization view of all stores/versions for WCM –>
         <avmfilesystem name="AVM">
            <virtualView/>
         </avmfilesystem>

Just mount \\YOUR_MACHINE_NAME_A\AVM, and you should be good to go.

Kevin

thaiyal
Champ in-the-making
Champ in-the-making
Hi,

I could not mount \\MY_MACHINE_NAME_A\AVM folder as there is no folder with that name. However, after adding <avmAllStores/> to the file-servers.xml  file, I can directly mount my web project as \\MY_MACHINE_NAME_A\MY_WEBPROJECT_NAME.

But this throws a ClassCastException whenever I click on the details link of my web project.

Here is the exception trace:
java.lang.ClassCastException: org.alfresco.filesys.avm.AVMContext
        at org.alfresco.web.ui.common.Utils.generateURL(Utils.java:632)
        at org.alfresco.web.ui.common.Utils.generateURL(Utils.java:708)
        at org.alfresco.web.bean.BaseDetailsBean.getCifsPath(BaseDetailsBean.jav
a:213)

After digging into the code, setting 'rootNode' to null for AVMContext seems to fix the issue. Is this the right way?

Thanks,
Thaiyal

kvc
Champ in-the-making
Champ in-the-making
Hi,

I could not mount \\MY_MACHINE_NAME_A\AVM folder as there is no folder with that name. However, after adding <avmAllStores/> to the file-servers.xml  file, I can directly mount my web project as \\MY_MACHINE_NAME_A\MY_WEBPROJECT_NAME.

But this throws a ClassCastException whenever I click on the details link of my web project.

Here is the exception trace:
java.lang.ClassCastException: org.alfresco.filesys.avm.AVMContext
        at org.alfresco.web.ui.common.Utils.generateURL(Utils.java:632)
        at org.alfresco.web.ui.common.Utils.generateURL(Utils.java:708)
        at org.alfresco.web.bean.BaseDetailsBean.getCifsPath(BaseDetailsBean.jav
a:213)

After digging into the code, setting 'rootNode' to null for AVMContext seems to fix the issue. Is this the right way?

Thanks,
Thaiyal

Thaiyal -  We'll look into this.  The mountpoint should simply be available without you having to configure fileservers.xml or do anything else.

We'll get back ASAP.

Kevin

kvc
Champ in-the-making
Champ in-the-making
OK … investigated.

To see AVM through CIFS you need to explicitly enable it in
alfresco/extensions/file-servers-custom.xml via

         <avmfilesystem name="VIRTVIEW">
            <virtualView/>
         </avmfilesystem>

to get a mount that exports (almost) all AVM content hierarchically.

This is an omission in the instructions in the Eval Guide, which will be updated to reflect.  Also, the GA product will have this automatically configured.

Kevin