cancel
Showing results for 
Search instead for 
Did you mean: 

cifs.urlfile.prefix in alfresco 3.3g wars not being picked

adrianmoya
Champ in-the-making
Champ in-the-making
Hi, i'm configuring alfresco 3.3g and when I connect via CIFS, the __Alfresco.url and actions are pointing to http://hostname:8080/alfresco. I wish to replace that url with the ip of the host, as the name doesn't resolve.

Setting the cifs.urlfile.prefix property in the alfresco-global.properties doesn't have any effect.

Taking a look at WEB-INF/classes/alfresco/subsystems/fileServers/default/file-servers-context.xml I could see that the <property name="URLPrefix"> and <property name="webpath"> detailed in http://wiki.alfresco.com/wiki/File_Server_Subsystem#Desktop_Actions where not present.

I created a classes/alfresco/extension/subsystems/fileServers/default/default/custom-file-servers-context.xml and added both properties, in the place where the documentations says, but alfresco crashes on startup with the followin errors:

Invalid property 'URLPrefix' of bean class [org.alfresco.filesys.repo.ContentContext]: Bean property 'URLPrefix' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Invalid property 'webpath' of bean class [org.alfresco.filesys.config.GlobalDesktopActionConfigBean]: Bean property 'webpath' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

How can I customize that URL? Thanks
4 REPLIES 4

gnyce
Champ in-the-making
Champ in-the-making
No answer here, but a possible 'workaround' - make the hostname of the server the IP address, e.g. hostname is "192.168.1.154"… ugly hack, but curious if that would work.

mrogers
Star Contributor
Star Contributor
It looks like there's no such parameter as cifs.urlfile.prefix on 3.3g.

Please raise a JIRA issue.   At minimum documentation (the wiki and the release note) needs to be updated.

idar
Champ in-the-making
Champ in-the-making
This issue holds for version 3.4.a (community) as well..
Furthermore the relevant issue in JIRA is marked as "Won't Fix"..
Does this mean that the feature of this property being customizable is dropped?

idar
Champ in-the-making
Champ in-the-making
Just for reference:

I have worked around this problem using URLRewrite:
http://www.tuckey.org/urlrewrite/

In case you're fronting Tomcat with Apache and mod_jk, you can use the mod_rewrite module, to work around this problem.

It would be nice though if the problem got fixed or the corresponding documentation got updated properly.