08-02-2010 04:38 AM
08-18-2010 07:39 AM
09-08-2010 03:16 PM
18:17:31,712 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 08080005
Wrapped Exception (with status template): 08080183 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js
': Duplicate child name not allowed: A0122610_gb.jpg
org.springframework.extensions.webscripts.WebScriptException: 08080005 Wrapped Exception (with status template): 08080183 Failed to execute script 'classpath
*:alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js': Duplicate child name not allowed: A0122610_gb.jpg
at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:731)
at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:167)
at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:367)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:321)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:417)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:434)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:298)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:307)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:178)
at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:116)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:636)
<import resource="classpath:alfresco/templates/webscripts/org/alfresco/cmis/lib/constants.lib.js">
<import resource="classpath:alfresco/templates/webscripts/org/alfresco/cmis/lib/read.lib.js">
<import resource="classpath:alfresco/templates/webscripts/org/alfresco/cmis/lib/modify.lib.js">
script:
{
// ensure atom entry is posted
if (entry === null)
{
status.code = 400;
status.message = "Expected atom entry";
status.redirect = true;
break script;
}
// locate parent node
var parent = getObjectFromUrl();
if (parent.node == null)
{
break script;
}
model.parent = parent.node;
// versioning state
var versioningState = args[cmis.ARG_VERSIONING_STATE];
if (versioningState === null || versioningState.length == 0)
{
versioningState = "major";
}
// is this a create or move?
var object = entry.getExtension(atom.names.cmisra_object);
var objectIdProp = (object !== null) ? object.objectId : null;
var objectId = (objectIdProp !== null) ? objectIdProp.nativeValue : null;
var sourceFolderId = args[cmis.ARG_SOURCE_FOLDER_ID];
var node = null;
if (objectId == null)
{
// create node
node = createNode(model.parent, entry, slug, versioningState);
if (node == null)
{
break script;
}
node.save();
}
else if (sourceFolderId == null || sourceFolderId.length == 0)
{
// Add node
var object = getObjectFromObjectId(objectId);
if (object.node == null)
{
break script;
}
node = object.node;
cmis.addObjectToFolder(node, model.parent);
}
else
{
// move node
// locate node
var object = getObjectFromObjectId(objectId);
if (object.node == null)
{
break script;
}
node = object.node;
// perform move
cmis.moveObject(node, model.parent, sourceFolderId);
}
// success
model.node = node;
// TODO: set Content-Location
status.code = 201;
status.location = url.server + url.serviceContext + "/cmis/s/" + node.nodeRef.storeRef.protocol + ":" + node.nodeRef.storeRef.identifier + "/i/" + node.nodeRef.id;
status.redirect = true;
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.