mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.2 to HEAD
16823: ETHREEOH-3028 - Multivalue property does not allow deploy 16827: ETHREEOH-2678 - Unfriendly system error occurs when trying to view Workflows information on content Details page if workflow was canceled 16832: ALFCOM-3021 - Replace 3.1 POI with version 3.5 16927: 15614 - ETHREEOH-2273 - FSR Prepare callback exception messages git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16978 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -850,7 +850,7 @@ public class DeploymentServiceImpl implements DeploymentService
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new AVMException("Could not connect to remote FSR, transportName:" + transportName + ", hostName:" + hostName + ", port: " + port, e);
|
||||
throw new AVMException("Could not connect to remote deployment receiver, transportName:" + transportName + ", hostName:" + hostName + ", port: " + port, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -686,14 +686,24 @@ public class PropertyValue implements Cloneable, Serializable
|
||||
setMultiValued(false);
|
||||
}
|
||||
else if (value instanceof Collection)
|
||||
{
|
||||
if(typeQName != null)
|
||||
{
|
||||
Collection collection = (Collection) value;
|
||||
ValueType collectionValueType = makeValueType(typeQName);
|
||||
// convert the collection values - we need to do this to ensure that the
|
||||
// values provided conform to the given type
|
||||
|
||||
ArrayList<Serializable> convertedCollection = collectionValueType.convert(collection);
|
||||
// the persisted type is, nonetheless, a serializable
|
||||
setPersistedValue(ValueType.SERIALIZABLE, convertedCollection);
|
||||
}
|
||||
else
|
||||
{
|
||||
setPersistedValue(ValueType.SERIALIZABLE, value);
|
||||
}
|
||||
|
||||
|
||||
setMultiValued(true);
|
||||
}
|
||||
else
|
||||
|
@@ -28,6 +28,9 @@ import java.util.List;
|
||||
|
||||
import org.alfresco.repo.processor.BaseProcessorExtension;
|
||||
import org.alfresco.repo.template.BaseContentNode.TemplateContentData;
|
||||
import org.alfresco.service.cmr.repository.ContentIOException;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import freemarker.ext.beans.BeanModel;
|
||||
import freemarker.template.TemplateMethodModelEx;
|
||||
@@ -43,6 +46,7 @@ import freemarker.template.TemplateNumberModel;
|
||||
*/
|
||||
public final class CropContentMethod extends BaseProcessorExtension implements TemplateMethodModelEx
|
||||
{
|
||||
private static final Log logger = LogFactory.getLog(CropContentMethod.class);
|
||||
/**
|
||||
* @see freemarker.template.TemplateMethodModel#exec(java.util.List)
|
||||
*/
|
||||
@@ -62,8 +66,22 @@ public final class CropContentMethod extends BaseProcessorExtension implements T
|
||||
{
|
||||
int bytes = ((TemplateNumberModel)arg1).getAsNumber().intValue();
|
||||
|
||||
try
|
||||
{
|
||||
result = ((TemplateContentData)wrapped).getContentAsText(bytes);
|
||||
}
|
||||
catch (ContentIOException e)
|
||||
{
|
||||
logger.warn("unable to getContentAsText", e);
|
||||
/*
|
||||
* Unable to extract content - return empty text instead.
|
||||
* Probably here through a transformation failure.
|
||||
* This method is called from FreeMarker so throwing the
|
||||
* exception causes problems.
|
||||
*/
|
||||
result = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -187,7 +187,8 @@ public class WorkflowPackageImpl implements WorkflowPackageComponent
|
||||
for (ChildAssociationRef packageItemParent : packageItemParents)
|
||||
{
|
||||
NodeRef parentRef = packageItemParent.getParentRef();
|
||||
if (nodeService.hasAspect(parentRef, WorkflowModel.ASPECT_WORKFLOW_PACKAGE))
|
||||
if (nodeService.hasAspect(parentRef, WorkflowModel.ASPECT_WORKFLOW_PACKAGE)
|
||||
&& !nodeService.hasAspect(parentRef, ContentModel.ASPECT_ARCHIVED))
|
||||
{
|
||||
String workflowInstance = (String)nodeService.getProperty(parentRef, WorkflowModel.PROP_WORKFLOW_INSTANCE_ID);
|
||||
if (workflowInstance != null && workflowInstance.length() > 0)
|
||||
|
Reference in New Issue
Block a user