AnsweredAssumed Answered

metadata exception in forms service

Question asked by idwright on Oct 14, 2016
Latest reply on Oct 14, 2016 by idwright

Hi,

 

When I select Create [something] (Folder, Plain Text ...) in a folder (Document Library or My Files) I'm seeing an exception in the logs

 

e.g. for a folder

2016-10-14 10:24:50,342  ERROR [extensions.webscripts.AbstractRuntime] [http-bio-8080-exec-13] Exception from executeScript - redirecting to status template error: 09140001 Wrapped Exception (with status template): 09140012 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/metadata/metadata.get.js': 09140011 Invalid node ref - does not contain forward slash: cm:folder

org.springframework.extensions.webscripts.WebScriptException: 09140001 Wrapped Exception (with status template): 09140012 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/metadata/metadata.get.js': 09140011 Invalid node ref - does not contain forward slash: cm:folder

    at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1138)

    at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)

 

The exception is thrown from the call:

http://localhost:8080/alfresco/wcs/api/metadata?nodeRef=cm:folder

which itself is called from:

http://localhost:8080/share/service/components/form?itemKind=type&itemId=cm:folder&destination=workspace://SpacesStore/4dc219a4-00eb-4293-a622-4e12dea9d331&mode=create&submitType=json&formId=doclib-common&showCancelButton=true&htmlid=template_x002e_documentlist_v2_x002e_documentlibrary_x0023_default-createFolder

 

I have a custom content model and various other customizations.

 

I've tried commenting out the metadata-templates and DocLibCustom in my share-config-custom.xml but that doesn't seem to make any difference - my next step will be removing everything and adding things back in one at time to see when the error starts but that will be painful...

 

The good news is that everything still seems to work but I don't want my logs full of errors.

 

Anybody got any ideas what might be going on?

(5.1.g Community)

Outcomes