Merged V2.2 to HEAD

10640: Fixed ETWOTWO-688: Node Path.Element strings are returned with numerical ordering suffix
   10641: Fix for ETWOTWO-640: Cannot login through FTP
   10665: Fix to generate legal Faces component IDs (in turn output as HTML element IDs). Fixes ETWOTWO-687 and ALFCOM-1756.
   10666: Fix for ETWOTWO-539.
   10675: Merged V2.1 to V2.2
     10649: Fix for ETWOONE-98 and extra error/debug logging. ... other linkvalidation enable/disable changes
   10711: Merged V2.1 to V2.2
      10615: Fix to keep org.alfresco.repo.workflow.jbpm.* in the session


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10712 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2008-09-04 01:54:39 +00:00
parent 76abcf04d9
commit 8a372b6203
6 changed files with 23 additions and 10 deletions

View File

@@ -346,6 +346,7 @@
<value>alfresco.messages.webdav-messages</value> <value>alfresco.messages.webdav-messages</value>
<value>alfresco.messages.copy-service</value> <value>alfresco.messages.copy-service</value>
<value>alfresco.messages.avm-messages</value> <value>alfresco.messages.avm-messages</value>
<value>alfresco.messages.linkvalidation-messages</value>
<value>alfresco.messages.content-filter-languages</value> <value>alfresco.messages.content-filter-languages</value>
</list> </list>
</property> </property>

View File

@@ -0,0 +1,3 @@
# Link Validation related messages
linkvalidation.disabled=Link validation not performed - currently disabled

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2005-2007 Alfresco Software Limited. * Copyright (C) 2005-2008 Alfresco Software Limited.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
@@ -29,6 +29,7 @@ import java.util.List;
import org.alfresco.config.JNDIConstants; import org.alfresco.config.JNDIConstants;
import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.error.AlfrescoRuntimeException;
import org.alfresco.i18n.I18NUtil;
import org.alfresco.repo.action.ParameterDefinitionImpl; import org.alfresco.repo.action.ParameterDefinitionImpl;
import org.alfresco.repo.action.executer.ActionExecuterAbstractBase; import org.alfresco.repo.action.executer.ActionExecuterAbstractBase;
import org.alfresco.repo.avm.AVMNodeConverter; import org.alfresco.repo.avm.AVMNodeConverter;
@@ -51,6 +52,8 @@ import org.apache.commons.logging.LogFactory;
*/ */
public class LinkValidationAction extends ActionExecuterAbstractBase public class LinkValidationAction extends ActionExecuterAbstractBase
{ {
private static final String MSG_DISABLED = "linkvalidation.disabled";
public static final String NAME = "avm-link-validation"; public static final String NAME = "avm-link-validation";
public static final String PARAM_COMPARE_TO_STAGING = "compare-to-staging"; public static final String PARAM_COMPARE_TO_STAGING = "compare-to-staging";
@@ -165,8 +168,9 @@ public class LinkValidationAction extends ActionExecuterAbstractBase
{ {
if (this.linkValidationService.isLinkValidationDisabled()) if (this.linkValidationService.isLinkValidationDisabled())
{ {
logger.warn("Link validation (action) not performed - currently disabled by system administrator"); String warnMsg = I18NUtil.getMessage(MSG_DISABLED);
throw new AlfrescoRuntimeException("Link validation not performed - currently disabled by the system administrator"); logger.warn(warnMsg);
throw new AlfrescoRuntimeException(warnMsg);
} }
// determine which API to call depending on whether there is a destination webapp present // determine which API to call depending on whether there is a destination webapp present

View File

@@ -29,9 +29,10 @@ package org.alfresco.linkvalidation;
import java.net.SocketException; import java.net.SocketException;
import java.util.List; import java.util.List;
import javax.net.ssl.SSLException; import javax.net.ssl.SSLException;
import org.alfresco.service.cmr.avm.AVMNotFoundException; import org.alfresco.service.cmr.avm.AVMNotFoundException;
import org.alfresco.util.NameMatcher;
public interface LinkValidationService public interface LinkValidationService
{ {
@@ -189,7 +190,6 @@ public interface LinkValidationService
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
public List<String> getHrefsDependentUponFile(String path); public List<String> getHrefsDependentUponFile(String path);
public void setLinkValidationDisabled(boolean disabled); public void setLinkValidationDisabled(boolean disabled);
public boolean isLinkValidationDisabled(); public boolean isLinkValidationDisabled();

View File

@@ -182,7 +182,8 @@ public class SessionSizeResourceManager extends HibernateDaoSupport implements M
{ {
// This should probably be configurable but frankly the nauseous extrusion of Gavin King's // This should probably be configurable but frankly the nauseous extrusion of Gavin King's
// programmatic alimentary tract (hibernate) will go away before this could make a difference. // programmatic alimentary tract (hibernate) will go away before this could make a difference.
if (!key.getEntityName().startsWith("org.alfresco")) String entityName = key.getEntityName();
if (!entityName.startsWith("org.alfresco") || entityName.startsWith("org.alfresco.repo.workflow.jbpm"))
{ {
continue; continue;
} }

View File

@@ -1608,6 +1608,10 @@ public class DbNodeServiceImpl extends AbstractNodeServiceImpl
{ {
continue; continue;
} }
// Ordering is meaningless here as we are constructing a path upwards
// and have no idea where the node comes in the sibling order or even
// if there are like-pathed siblings.
assocRef.setNthSibling(-1);
// build a path element // build a path element
Path.Element element = new Path.ChildAssocElement(assocRef); Path.Element element = new Path.ChildAssocElement(assocRef);
// create a new path that builds on the current path // create a new path that builds on the current path