Hi, Pardon me if I'm covering ground that has already been discussed but I've been playing around in the RC1 of Alfresco 1.4 and noticed something that I wanted some more input on. I was investigating the use of symbolic links within Alfresco. I created FOLDER X in the Company Home and put a simple text file (FILE 1) into FOLDER X. I then created FOLDER Y and created a link to FILE 1 in FOLDER Y. I went back to FOLDER X and deleted FILE 1. I went to FOLDER Y and looked at its contents. The link to FILE 1 was still there despite the original file having been deleted. When I clicked on the 'View Details' option of the symbolic link, I got the following error:
javax.faces.FacesException: Cannot get value for expression '#{DocumentDetailsBean.webdavUrl}' caused by: org.apache.jasper.JasperException: Cannot get value for expression '#{DocumentDetailsBean.webdavUrl}' caused by: javax.faces.el.EvaluationException: Cannot get value for expression '#{DocumentDetailsBean.webdavUrl}' caused by: javax.faces.el.EvaluationException: org.alfresco.web.bean.DocumentDetailsBean caused by: javax.faces.el.EvaluationException: Bean: org.alfresco.web.bean.DocumentDetailsBean, property: webdavUrl caused by: java.lang.reflect.InvocationTargetException caused by: org.alfresco.repo.model.filefolder.FileFolderServiceImpl$InvalidTypeException: Type is not handled by this service: {http://www.alfresco.org/model/application/1.0}filelink
Am I going about things in the right way? Is there a cascade delete option that will remove the symbolic links when you delete the original file? Is this a problem due to the fact I'm using the RC release?
The link should be modelled with an association so that the cascade delete behaviour you mention clears up the link but it's currently modelled as a property so the link effectively gets orphaned.