As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<config evaluator="string-compare" condition="send-as-email"> <forms> <form> <field-visibility> <show id="to"/> <show id="subject"/> <show id="body_text"/> </field-visibility> <appearance> <field id="to" label-id="send-as-email.field.to"/> <field id="subject" label-id="send-as-email.field.subject"/> <field id="body_text" label-id="send-as-email.field.body_text"> <control template="/org/alfresco/components/form/controls/textarea.ftl" /> </field> </appearance> </form> </forms> </config>
<alfresco-config> <!– Global config section –> <config replace="true"> <flags> <!– Developer debugging setting to turn on DEBUG mode for client scripts in the browser –> <client-debug>false</client-debug> <!– LOGGING can always be toggled at runtime when in DEBUG mode (Ctrl, Ctrl, Shift, Shift). This flag automatically activates logging on page load. –> <client-debug-autologging>false</client-debug-autologging> </flags> </config> <!– <config evaluator="string-compare" condition="WebFramework"> <web-framework>–> <!– SpringSurf Autowire Runtime Settings –> <!– Developers can set mode to 'development' to disable; SpringSurf caches, FreeMarker template caching and Rhino JavaScript compilation. –> <!– <autowire>–> <!– Pick the mode: "production" or "development" –> <!– <mode>production</mode> </autowire> –> <!– Allows extension modules with <auto-deploy> set to true to be automatically deployed –> <!– <module-deployment> <mode>manual</mode> <enable-auto-deploy-modules>true</enable-auto-deploy-modules> </module-deployment> </web-framework> </config> <config evaluator="string-compare" condition="Replication"> <share-urls> <!– To discover a Repository Id, browse to the remote server's CMIS landing page at: http://{server}:{port}/alfresco/service/cmis/index.html The Repository Id field is found under the "CMIS Repository Information" expandable panel. Example config entry: <share-url repositoryId="622f9533-2a1e-48fe-af4e-ee9e41667ea4">http://new-york-office:8080/share/</share-url> </share-urls> </config> –> <!– Document Library config section –> <config evaluator="string-compare" condition="DocumentLibrary" replace="true"> <tree> <!– Whether the folder Tree component should enumerate child folders or not. This is a relatively expensive operation, so should be set to "false" for Repositories with broad folder structures. –> <evaluate-child-folders>false</evaluate-child-folders> <!– Optionally limit the number of folders shown in treeview throughout Share. –> <maximum-folder-count>-1</maximum-folder-count> </tree> <!– Used by the "Manage Aspects" action For custom aspects, remember to also add the relevant i18n string(s) cm_myaspect=My Aspect –> <aspects> <!– Aspects that a user can see –> <visible> <aspect name="cm:generalclassifiable" /> <aspect name="cm:complianceable" /> <aspect name="cm:dublincore" /> <aspect name="cm:effectivity" /> <aspect name="cm:summarizable" /> <aspect name="cm:versionable" /> <aspect name="cm:templatable" /> <aspect name="cm:emailed" /> <aspect name="emailserver:aliasable" /> <aspect name="cm:taggable" /> <aspect name="app:inlineeditable" /> <aspect name="gd:googleEditable" /> <aspect name="cm:geographic" /> <aspect name="exif:exif" /> </visible> <!– Aspects that a user can add. Same as "visible" if left empty –> <addable> </addable> <!– Aspects that a user can remove. Same as "visible" if left empty –> <removeable> </removeable> </aspects> <!– Used by the "Change Type" action Define valid subtypes using the following example: <type name="cm:content"> <subtype name="cm:mysubtype" /> </type> Remember to also add the relevant i18n string(s): cm_mysubtype=My SubType –> <types> <type name="cm:content"> </type> <type name="cm:folder"> </type> </types> <!– If set, will present a WebDAV link for the current item on the Document and Folder details pages. Also used to generate the "View in Alfresco Explorer" action for folders. –> <repository-url>http://localhost:8080/alfresco</repository-url> <!– Google Docsâ„¢ integration –> <google-docs> <!– Enable/disable the Google Docs UI integration (Extra types on Create Content menu, Google Docs actions). –> <enabled>false</enabled> <!– The mimetypes of documents Google Docs allows you to create via the Share interface. The I18N label is created from the "type" attribute, e.g. google-docs.doc=Google Docs™ Document –> <creatable-types> <creatable type="doc">application/msword</creatable> <creatable type="xls">application/vnd.ms-excel</creatable> <creatable type="ppt">application/vnd.ms-powerpoint</creatable> </creatable-types> </google-docs> <!– File upload configuration –> <file-upload> <!– Adobe Flashâ„¢ In certain environments, an HTTP request originating from Flash cannot be authenticated using an existing session. See: http://bugs.adobe.com/jira/browse/FP-4830 For these cases, it is useful to disable the Flash-based uploader for Share Document Libraries. –> <adobe-flash-enabled>true</adobe-flash-enabled> </file-upload> </config> <!– Custom DocLibActions config section –> <config evaluator="string-compare" condition="DocLibActions"> <actions> <action id="document-sendAsEmail" icon="email" type="javascript" label="actions.document.sendAsEmail"> <param name="function">onActionFormDialog</param> <param name="itemKind">action</param> <param name="itemId">send-as-email</param> <param name="mode">create</param> <param name="destination">{node.nodeRef}</param> <param name="successMessage">message.sendAsEmail.success</param> <param name="failureMessage">message.sendAsEmail.failure</param> <evaluator negate="true">evaluator.doclib.action.isEmailed </evaluator> </action> </actions> <actionGroups> <actionGroup id="document-browse"> <!– Simple Repo Actions –> <!– <action index="340" id="document-extract-metadata" /> <action index="350" id="document-increment-counter" /> –> <action index="400" id="document-sendAsEmail" /> </actionGroup> <!– Dialog Repo Actions –> <!– <action index="360" id="document-transform" /> <action index="370" id="document-transform-image" /> <action index="380" id="document-execute-script" /> –> <actionGroup id="document-details"> <action index="400" id="document-sendAsEmail" /> </actionGroups> </config> <!– Global folder picker config section –> <config evaluator="string-compare" condition="GlobalFolder"> <siteTree> <container type="cm:folder"> <!– Use a specific label for this container type in the tree –> <rootLabel>location.path.documents</rootLabel> <!– Use a specific uri to retreive the child nodes for this container type in the tree –> <uri>slingshot/doclib/treenode/site/{site}/{container}{path}?children={evaluateChildFoldersSite}&max={maximumFolderCountSite}</uri> </container> </siteTree> </config> <!– Repository Library config section –> <config evaluator="string-compare" condition="RepositoryLibrary" replace="true"> <!– Root nodeRef or xpath expression for top-level folder. e.g. alfresco://user/home, /app:company_home/st:sites/cm:site1 If using an xpath expression, ensure it is properly ISO9075 encoded here. –> <root-node>alfresco://company/home</root-node> <tree> <!– Whether the folder Tree component should enumerate child folders or not. This is a relatively expensive operation, so should be set to "false" for Repositories with broad folder structures. –> <evaluate-child-folders>false</evaluate-child-folders> <!– Optionally limit the number of folders shown in treeview throughout Share. –> <maximum-folder-count>500</maximum-folder-count> </tree> </config> <!– Kerberos settings –> <!– To enable kerberos rename this condition to "Kerberos" –> <config evaluator="string-compare" condition="KerberosDisabled" replace="true"> <kerberos> <!– Password for HTTP service account. The account name *must* be built from the HTTP server name, in the format : HTTP/<server_name>@<realm> (NB this is because the web browser requests an ST for the HTTP/<server_name> principal in the current realm, so if we're to decode that ST, it has to match.) –> <password>secret</password> <!– Kerberos realm and KDC address. –> <realm>ALFRESCO.ORG</realm> <!– Service Principal Name to use on the repository tier. This must be like: HTTP/host.name@REALM –> <endpoint-spn>HTTP/repository.server.com@ALFRESCO.ORG</endpoint-spn> <!– JAAS login configuration entry name. –> <config-entry>ShareHTTP</config-entry> </kerberos> </config> <!– example port config used to access remote Alfresco server (default is 8080) –> <!– <config evaluator="string-compare" condition="Remote"> <remote> <endpoint> <id>alfresco-noauth</id> <name>Alfresco - unauthenticated access</name> <description>Access to Alfresco Repository WebScripts that do not require authentication</description> <connector-id>alfresco</connector-id> <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url> <identity>none</identity> </endpoint> <endpoint> <id>alfresco</id> <name>Alfresco - user access</name> <description>Access to Alfresco Repository WebScripts that require user authentication</description> <connector-id>alfresco</connector-id> <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url> <identity>user</identity> </endpoint> <endpoint> <id>alfresco-feed</id> <name>Alfresco Feed</name> <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description> <connector-id>http</connector-id> <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url> <basic-auth>true</basic-auth> <identity>user</identity> </endpoint> <endpoint> <id>activiti-admin</id> <name>Activiti Admin UI - user access</name> <description>Access to Activiti Admin UI, that requires user authentication</description> <connector-id>activiti-admin-connector</connector-id> <endpoint-url>http://localhost:8080/alfresco/activiti-admin</endpoint-url> <identity>user</identity> </endpoint> </remote> </config> –> <!– Overriding endpoints to reference an Alfresco server with external SSO enabled NOTE: If utilising a load balancer between web-tier and repository cluster, the "sticky sessions" feature of your load balancer must be used. NOTE: If alfresco server location is not localhost:8080 then also combine changes from the "example port config" section below. *Optional* keystore contains SSL client certificate + trusted CAs. Used to authenticate share to an external SSO system such as CAS Remove the keystore section if not required i.e. for NTLM. NOTE: For Kerberos SSO rename the "KerberosDisabled" condition above to "Kerberos" NOTE: For external SSO, switch the endpoint connector to "AlfrescoHeader" and set the userHeader to the name of the HTTP header that the external SSO uses to provide the authenticated user name. –> <!– <config evaluator="string-compare" condition="Remote"> <remote> <keystore> <path>alfresco/web-extension/alfresco-system.p12</path> <type>pkcs12</type> <password>alfresco-system</password> </keystore> <connector> <id>alfrescoCookie</id> <name>Alfresco Connector</name> <description>Connects to an Alfresco instance using cookie-based authentication</description> <class>org.alfresco.web.site.servlet.SlingshotAlfrescoConnector</class> </connector> <connector> <id>alfrescoHeader</id> <name>Alfresco Connector</name> <description>Connects to an Alfresco instance using header and cookie-based authentication</description> <class>org.alfresco.web.site.servlet.SlingshotAlfrescoConnector</class> <userHeader>SsoUserHeader</userHeader> </connector> <endpoint> <id>alfresco</id> <name>Alfresco - user access</name> <description>Access to Alfresco Repository WebScripts that require user authentication</description> <connector-id>alfrescoCookie</connector-id> <endpoint-url>http://localhost:8080/alfresco/wcs</endpoint-url> <identity>user</identity> <external-auth>true</external-auth> </endpoint> </remote> </config> –> <config evaluator="string-compare" condition="send-as-email"> <forms> <form> <field-visibility> <show id="to" /> <show id="subject" /> <show id="body_text" /> </field-visibility> <appearance> <field id="to" label-id="send-as-email.field.to"/> <field id="subject" label-id="send-as-email.field.subject"/> <field id="body_text" label-id="send-as-email.field.body_text"/> <control template="/org/alfresco/components/form/controls/textarea.ftl" /> </appearance> </form> </forms> </config> </alfresco-config>
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> <beans> <bean id="send-as-email" class="org.alfresco.repo.action.executer.MailActionExecuter" parent="action-executer"> <property name="mailService"> <ref bean="mailService"></ref> </property> <property name="templateService"> <ref bean="templateService"></ref> </property> <property name="personService"> <ref bean="personService"></ref> </property> <property name="authenticationService"> <ref bean="authenticationService"></ref> </property> <property name="nodeService"> <ref bean="nodeService"></ref> </property> <property name="authorityService"> <ref bean="authorityService"></ref> </property> <property name="serviceRegistry"> <ref bean="ServiceRegistry"></ref> </property> </bean> </beans>
17:06:16,497 ERROR [org.springframework.extensions.config.BaseConfigService] Input stream invalid - skipped for source: classpath:alfresco/share-documentlibrary-config.xml' org.springframework.extensions.config.ConfigException: 08040000 Failed to parse config stream at org.springframework.extensions.config.xml.XMLConfigService.parse(XMLConfigService.java:224) at org.springframework.extensions.config.BaseConfigService.appendConfig(BaseConfigService.java:268) at org.springframework.extensions.config.BaseConfigService.parse(BaseConfigService.java:298) at org.springframework.extensions.config.xml.XMLConfigService.initConfig(XMLConfigService.java:132) at org.springframework.extensions.config.BaseConfigService.init(BaseConfigService.java:95) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: org.dom4j.DocumentException: Error on line 366 of document : The string "–" is not permitted within comments. Nested exception: The string "–" is not permitted within comments. at org.dom4j.io.SAXReader.read(SAXReader.java:482) at org.dom4j.io.SAXReader.read(SAXReader.java:343) at org.springframework.extensions.config.xml.XMLConfigService.parse(XMLConfigService.java:212) … 47 more 17:06:20,116 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl 17:06:20,225 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js 17:06:20,225 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl 17:06:20,225 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js 17:06:25,888 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 336 Web Scripts (+0 failed), 349 URLs 17:06:25,888 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed) 17:06:25,888 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed) 17:06:26,013 ERROR [org.springframework.extensions.config.BaseConfigService] Input stream invalid - skipped for source: classpath:alfresco/share-documentlibrary-config.xml' org.springframework.extensions.config.ConfigException: 08040001 Failed to parse config stream at org.springframework.extensions.config.xml.XMLConfigService.parse(XMLConfigService.java:224) at org.springframework.extensions.config.BaseConfigService.appendConfig(BaseConfigService.java:268) at org.springframework.extensions.config.BaseConfigService.parse(BaseConfigService.java:298) at org.springframework.extensions.config.xml.XMLConfigService.initConfig(XMLConfigService.java:132) at org.springframework.extensions.config.BaseConfigService.reset(BaseConfigService.java:145) at org.springframework.extensions.webscripts.AbstractRuntimeContainer.reset(AbstractRuntimeContainer.java:260) at org.springframework.extensions.webscripts.PresentationContainer.reset(PresentationContainer.java:121) at org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.reset(LocalWebScriptRuntimeContainer.java:122) at org.springframework.extensions.webscripts.AbstractRuntimeContainer.onApplicationEvent(AbstractRuntimeContainer.java:280) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: org.dom4j.DocumentException: Error on line 366 of document : The string "–" is not permitted within comments. Nested exception: The string "–" is not permitted within comments. at org.dom4j.io.SAXReader.read(SAXReader.java:482) at org.dom4j.io.SAXReader.read(SAXReader.java:343) at org.springframework.extensions.config.xml.XMLConfigService.parse(XMLConfigService.java:212) … 39 more 17:06:26,060 INFO [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 5822.4087ms) 17:06:26,060 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl 17:06:26,060 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js 17:06:41,909 INFO [org.alfresco.web.site.EditionInterceptor] Successfully retrieved license information from Alfresco. 17:06:45,809 INFO [org.alfresco.web.scripts.ImapServerStatus] Successfully retrieved IMAP server status from Alfresco: disabled 17:06:53,890 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 08040003 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/tag-filter/tag-filter.get.js': 08040002 TypeError: Cannot call method "getChildValue" of null (file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/tag-filter/tag-filter.get.js#15) org.springframework.extensions.webscripts.WebScriptException: 08040003 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/tag-filter/tag-filter.get.js': 08040002 TypeError: Cannot call method "getChildValue" of null (file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/tag-filter/tag-filter.get.js#15) at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:200) at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1305) at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86) at org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:70) at org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:240) at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377) at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209) at org.springframework.extensions.webscripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:310) at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57) at org.springframework.extensions.surf.render.RenderService.process(RenderService.java:599) at org.springframework.extensions.surf.render.RenderService.renderSubComponent(RenderService.java:505) at org.springframework.extensions.surf.render.RenderService.renderChromeInclude(RenderService.java:1284) at org.springframework.extensions.directives.ChromeIncludeFreeMarkerDirective.execute(ChromeIncludeFreeMarkerDirective.java:81) at freemarker.core.Environment.visit(Environment.java:274) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.IfBlock.accept(IfBlock.java:82) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment.process(Environment.java:199) at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171) at org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438) at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57) at org.springframework.extensions.surf.render.RenderService.processRenderable(RenderService.java:204) at org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRenderer.java:95) at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77) at org.springframework.extensions.surf.render.bean.ChromeRenderer.render(ChromeRenderer.java:86) at org.springframework.extensions.surf.render.RenderService.processComponent(RenderService.java:432) at org.springframework.extensions.surf.render.bean.ComponentRenderer.body(ComponentRenderer.java:94) at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77) at org.springframework.extensions.surf.render.RenderService.renderComponent(RenderService.java:961) at org.springframework.extensions.surf.render.RenderService.renderRegionComponents(RenderService.java:900) at org.springframework.extensions.surf.render.RenderService.renderChromeInclude(RenderService.java:1263) at org.springframework.extensions.directives.ChromeIncludeFreeMarkerDirective.execute(ChromeIncludeFreeMarkerDirective.java:81) at freemarker.core.Environment.visit(Environment.java:274) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment.process(Environment.java:199) at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171) at org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438) at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57) at org.springframework.extensions.surf.render.RenderService.processRenderable(RenderService.java:204) at org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRenderer.java:95) at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77) at org.springframework.extensions.surf.render.bean.ChromeRenderer.render(ChromeRenderer.java:86) at org.springframework.extensions.surf.render.bean.RegionRenderer.body(RegionRenderer.java:99) at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77) at org.springframework.extensions.surf.render.RenderService.renderRegion(RenderService.java:851) at org.springframework.extensions.directives.RegionDirectiveData.render(RegionDirectiveData.java:91) at org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.merge(ExtensibilityModelImpl.java:408) at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.merge(AbstractExtensibilityDirective.java:169) at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.execute(AbstractExtensibilityDirective.java:137) at freemarker.core.Environment.visit(Environment.java:274) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment$3.render(Environment.java:246) at org.springframework.extensions.surf.extensibility.impl.DefaultExtensibilityDirectiveData.render(DefaultExtensibilityDirectiveData.java:119) at org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.merge(ExtensibilityModelImpl.java:408) at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.merge(AbstractExtensibilityDirective.java:169) at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.execute(AbstractExtensibilityDirective.java:137) at freemarker.core.Environment.visit(Environment.java:274) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment.visit(Environment.java:406) at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Macro$Context.runMacro(Macro.java:172) at freemarker.core.Environment.visit(Environment.java:614) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment.process(Environment.java:199) at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171) at org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438) at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57) at org.springframework.extensions.surf.render.RenderService.processTemplate(RenderService.java:721) at org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:140) at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77) at org.springframework.extensions.surf.render.bean.PageRenderer.body(PageRenderer.java:85) at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77) at org.springframework.extensions.surf.render.RenderService.renderPage(RenderService.java:762) at org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:419) at org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:314) at org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:316) at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:723) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:74) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:374) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 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:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1760) at java.lang.Thread.run(Thread.java:722) Caused by: org.springframework.extensions.webscripts.WebScriptException: 08040002 TypeError: Cannot call method "getChildValue" of null (file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/tag-filter/tag-filter.get.js#15) at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:328) at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:192) … 121 more Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "getChildValue" of null (file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/tag-filter/tag-filter.get.js#15) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340) at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356) at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375) at org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3394) at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2026) at org.mozilla.javascript.gen.c25._c1(file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/tag-filter/tag-filter.get.js:15) at org.mozilla.javascript.gen.c25.call(file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/tag-filter/tag-filter.get.js) at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108) at org.mozilla.javascript.gen.c25._c0(file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/tag-filter/tag-filter.get.js:37) at org.mozilla.javascript.gen.c25.call(file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/tag-filter/tag-filter.get.js) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834) at org.mozilla.javascript.gen.c25.call(file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/tag-filter/tag-filter.get.js) at org.mozilla.javascript.gen.c25.exec(file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/tag-filter/tag-filter.get.js) at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:318) … 122 more 17:06:54,295 ERROR [freemarker.runtime] Template processing error: "Expression inMemoryLimit is undefined on line 18, column 37 in org/alfresco/components/upload/dnd-upload.get.html.ftl." Expression inMemoryLimit is undefined on line 18, column 37 in org/alfresco/components/upload/dnd-upload.get.html.ftl. The problematic instruction: ———- ==> ${inMemoryLimit} [on line 18, column 35 in org/alfresco/components/upload/dnd-upload.get.html.ftl] in user-directive inlineScript [on line 13, column 4 in org/alfresco/components/upload/dnd-upload.get.html.ftl] in user-directive markup [on line 11, column 1 in org/alfresco/components/upload/dnd-upload.get.html.ftl] ———- Java backtrace for programmers: ———- freemarker.core.InvalidReferenceException: Expression inMemoryLimit is undefined on line 18, column 37 in org/alfresco/components/upload/dnd-upload.get.html.ftl. at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125) at freemarker.core.Expression.getStringValue(Expression.java:118) at freemarker.core.Expression.getStringValue(Expression.java:93) at freemarker.core.DollarVariable.accept(DollarVariable.java:76) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment$3.render(Environment.java:246) at org.springframework.extensions.directives.AddInlineJavaScriptDirective.createExtensibilityDirectiveData(AddInlineJavaScriptDirective.java:67) at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.execute(AbstractExtensibilityDirective.java:133) at org.springframework.extensions.directives.JavaScriptDependencyDirective.execute(JavaScriptDependencyDirective.java:79) at freemarker.core.Environment.visit(Environment.java:274) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment$3.render(Environment.java:246) at org.springframework.extensions.surf.extensibility.impl.DefaultExtensibilityDirectiveData.render(DefaultExtensibilityDirectiveData.java:119) at org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.merge(ExtensibilityModelImpl.java:408) at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.merge(AbstractExtensibilityDirective.java:169) at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.execute(AbstractExtensibilityDirective.java:137) at freemarker.core.Environment.visit(Environment.java:274) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment.process(Environment.java:199) at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171) at org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:875) at org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:267) at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147) at org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:70) at org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:240) at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377) at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209) at org.springframework.extensions.webscripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:310) at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57) at org.springframework.extensions.surf.render.RenderService.process(RenderService.java:599) at org.springframework.extensions.surf.render.RenderService.renderSubComponent(RenderService.java:505) at org.springframework.extensions.surf.render.RenderService.renderChromeInclude(RenderService.java:1284) at org.springframework.extensions.directives.ChromeIncludeFreeMarkerDirective.execute(ChromeIncludeFreeMarkerDirective.java:81) at freemarker.core.Environment.visit(Environment.java:274) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.IfBlock.accept(IfBlock.java:82) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment.process(Environment.java:199) at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171) at org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438) at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57) at org.springframework.extensions.surf.render.RenderService.processRenderable(RenderService.java:204) at org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRenderer.java:95) at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77) at org.springframework.extensions.surf.render.bean.ChromeRenderer.render(ChromeRenderer.java:86) at org.springframework.extensions.surf.render.RenderService.processComponent(RenderService.java:432) at org.springframework.extensions.surf.render.bean.ComponentRenderer.body(ComponentRenderer.java:94) at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77) at org.springframework.extensions.surf.render.RenderService.renderComponent(RenderService.java:961) at org.springframework.extensions.surf.render.RenderService.renderRegionComponents(RenderService.java:900) at org.springframework.extensions.surf.render.RenderService.renderChromeInclude(RenderService.java:1263) at org.springframework.extensions.directives.ChromeIncludeFreeMarkerDirective.execute(ChromeIncludeFreeMarkerDirective.java:81) at freemarker.core.Environment.visit(Environment.java:274) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment.process(Environment.java:199) at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171) at org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438) at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57) at org.springframework.extensions.surf.render.RenderService.processRenderable(RenderService.java:204) at org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRenderer.java:95) at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77) at org.springframework.extensions.surf.render.bean.ChromeRenderer.render(ChromeRenderer.java:86) at org.springframework.extensions.surf.render.bean.RegionRenderer.body(RegionRenderer.java:99) at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77) at org.springframework.extensions.surf.render.RenderService.renderRegion(RenderService.java:851) at org.springframework.extensions.directives.RegionDirectiveData.render(RegionDirectiveData.java:91) at org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.merge(ExtensibilityModelImpl.java:408) at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.merge(AbstractExtensibilityDirective.java:169) at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.execute(AbstractExtensibilityDirective.java:137) at freemarker.core.Environment.visit(Environment.java:274) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment$3.render(Environment.java:246) at org.springframework.extensions.surf.extensibility.impl.DefaultExtensibilityDirectiveData.render(DefaultExtensibilityDirectiveData.java:119) at org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.merge(ExtensibilityModelImpl.java:408) at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.merge(AbstractExtensibilityDirective.java:169) at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.execute(AbstractExtensibilityDirective.java:137) at freemarker.core.Environment.visit(Environment.java:274) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment.visit(Environment.java:406) at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Macro$Context.runMacro(Macro.java:172) at freemarker.core.Environment.visit(Environment.java:614) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment.process(Environment.java:199) at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171) at org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438) at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57) at org.springframework.extensions.surf.render.RenderService.processTemplate(RenderService.java:721) at org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:140) at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77) at org.springframework.extensions.surf.render.bean.PageRenderer.body(PageRenderer.java:85) at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77) at org.springframework.extensions.surf.render.RenderService.renderPage(RenderService.java:762) at org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:419) at org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:314) at org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:316) at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:723) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:74) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:374) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 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:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1760) at java.lang.Thread.run(Thread.java:722) 17:06:54,295 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 08040004 Failed to process template org/alfresco/components/upload/dnd-upload.get.html.ftl org.springframework.extensions.webscripts.WebScriptException: 08040004 Failed to process template org/alfresco/components/upload/dnd-upload.get.html.ftl at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:175) at org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:875) at org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:267) at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147) at org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:70) at org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:240) at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377) at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209) at org.springframework.extensions.webscripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:310) at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57) at org.springframework.extensions.surf.render.RenderService.process(RenderService.java:599) at org.springframework.extensions.surf.render.RenderService.renderSubComponent(RenderService.java:505) at org.springframework.extensions.surf.render.RenderService.renderChromeInclude(RenderService.java:1284) at org.springframework.extensions.directives.ChromeIncludeFreeMarkerDirective.execute(ChromeIncludeFreeMarkerDirective.java:81) at freemarker.core.Environment.visit(Environment.java:274) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.IfBlock.accept(IfBlock.java:82) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment.process(Environment.java:199) at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171) at org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438) at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57) at org.springframework.extensions.surf.render.RenderService.processRenderable(RenderService.java:204) at org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRenderer.java:95) at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77) at org.springframework.extensions.surf.render.bean.ChromeRenderer.render(ChromeRenderer.java:86) at org.springframework.extensions.surf.render.RenderService.processComponent(RenderService.java:432) at org.springframework.extensions.surf.render.bean.ComponentRenderer.body(ComponentRenderer.java:94) at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77) at org.springframework.extensions.surf.render.RenderService.renderComponent(RenderService.java:961) at org.springframework.extensions.surf.render.RenderService.renderRegionComponents(RenderService.java:900) at org.springframework.extensions.surf.render.RenderService.renderChromeInclude(RenderService.java:1263) at org.springframework.extensions.directives.ChromeIncludeFreeMarkerDirective.execute(ChromeIncludeFreeMarkerDirective.java:81) at freemarker.core.Environment.visit(Environment.java:274) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment.process(Environment.java:199) at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171) at org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438) at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57) at org.springframework.extensions.surf.render.RenderService.processRenderable(RenderService.java:204) at org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRenderer.java:95) at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77) at org.springframework.extensions.surf.render.bean.ChromeRenderer.render(ChromeRenderer.java:86) at org.springframework.extensions.surf.render.bean.RegionRenderer.body(RegionRenderer.java:99) at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77) at org.springframework.extensions.surf.render.RenderService.renderRegion(RenderService.java:851) at org.springframework.extensions.directives.RegionDirectiveData.render(RegionDirectiveData.java:91) at org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.merge(ExtensibilityModelImpl.java:408) at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.merge(AbstractExtensibilityDirective.java:169) at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.execute(AbstractExtensibilityDirective.java:137) at freemarker.core.Environment.visit(Environment.java:274) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment$3.render(Environment.java:246) at org.springframework.extensions.surf.extensibility.impl.DefaultExtensibilityDirectiveData.render(DefaultExtensibilityDirectiveData.java:119) at org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.merge(ExtensibilityModelImpl.java:408) at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.merge(AbstractExtensibilityDirective.java:169) at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.execute(AbstractExtensibilityDirective.java:137) at freemarker.core.Environment.visit(Environment.java:274) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment.visit(Environment.java:406) at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Macro$Context.runMacro(Macro.java:172) at freemarker.core.Environment.visit(Environment.java:614) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment.process(Environment.java:199) at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171) at org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438) at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57) at org.springframework.extensions.surf.render.RenderService.processTemplate(RenderService.java:721) at org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:140) at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77) at org.springframework.extensions.surf.render.bean.PageRenderer.body(PageRenderer.java:85) at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77) at org.springframework.extensions.surf.render.RenderService.renderPage(RenderService.java:762) at org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:419) at org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:314) at org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:316) at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:723) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:74) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:374) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 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:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1760) at java.lang.Thread.run(Thread.java:722) Caused by: freemarker.core.InvalidReferenceException: Expression inMemoryLimit is undefined on line 18, column 37 in org/alfresco/components/upload/dnd-upload.get.html.ftl. at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125) at freemarker.core.Expression.getStringValue(Expression.java:118) at freemarker.core.Expression.getStringValue(Expression.java:93) at freemarker.core.DollarVariable.accept(DollarVariable.java:76) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment$3.render(Environment.java:246) at org.springframework.extensions.directives.AddInlineJavaScriptDirective.createExtensibilityDirectiveData(AddInlineJavaScriptDirective.java:67) at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.execute(AbstractExtensibilityDirective.java:133) at org.springframework.extensions.directives.JavaScriptDependencyDirective.execute(JavaScriptDependencyDirective.java:79) at freemarker.core.Environment.visit(Environment.java:274) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment$3.render(Environment.java:246) at org.springframework.extensions.surf.extensibility.impl.DefaultExtensibilityDirectiveData.render(DefaultExtensibilityDirectiveData.java:119) at org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.merge(ExtensibilityModelImpl.java:408) at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.merge(AbstractExtensibilityDirective.java:169) at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.execute(AbstractExtensibilityDirective.java:137) at freemarker.core.Environment.visit(Environment.java:274) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment.process(Environment.java:199) at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171) … 122 more 17:06:55,122 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 08040006 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js': 08040005 TypeError: Cannot read property "childrenMap" from null (file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js#51) org.springframework.extensions.webscripts.WebScriptException: 08040006 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js': 08040005 TypeError: Cannot read property "childrenMap" from null (file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js#51) at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:200) at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1305) at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86) at org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:70) at org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:240) at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377) at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209) at org.springframework.extensions.webscripts.servlet.mvc.WebScriptView.renderMergedOutputModel(WebScriptView.java:104) at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:723) 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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 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:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1760) at java.lang.Thread.run(Thread.java:722) Caused by: org.springframework.extensions.webscripts.WebScriptException: 08040005 TypeError: Cannot read property "childrenMap" from null (file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js#51) at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:328) at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:192) … 38 more Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "childrenMap" from null (file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js#51) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340) at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356) at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375) at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3388) at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1362) at org.mozilla.javascript.gen.c31._c3(file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js:51) at org.mozilla.javascript.gen.c31.call(file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js) at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:119) at org.mozilla.javascript.gen.c31._c25(file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js:905) at org.mozilla.javascript.gen.c31.call(file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js) at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108) at org.mozilla.javascript.gen.c31._c0(file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js:930) at org.mozilla.javascript.gen.c31.call(file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834) at org.mozilla.javascript.gen.c31.call(file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js) at org.mozilla.javascript.gen.c31.exec(file:/C:/tomcat/apache-tomcat-6.0.37-windows-x86/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/documentlibrary/data/surf-doclist.get.js) at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:318) … 39 more
</actionGroup>
<actionGroup id="document-details">
<alfresco-config> <!– Global config section –> <config replace="true"> <flags> <!– Developer debugging setting to turn on DEBUG mode for client scripts in the browser –> <client-debug>false</client-debug> <!– LOGGING can always be toggled at runtime when in DEBUG mode (Ctrl, Ctrl, Shift, Shift). This flag automatically activates logging on page load. –> <client-debug-autologging>false</client-debug-autologging> </flags> </config> <config evaluator="string-compare" condition="WebFramework"> <web-framework> <!– SpringSurf Autowire Runtime Settings –> <!– Developers can set mode to 'development' to disable; SpringSurf caches, FreeMarker template caching and Rhino JavaScript compilation. –> <autowire> <!– Pick the mode: "production" or "development" –> <mode>production</mode> </autowire> <!– Allows extension modules with <auto-deploy> set to true to be automatically deployed –> <module-deployment> <mode>manual</mode> <enable-auto-deploy-modules>true</enable-auto-deploy-modules> </module-deployment> </web-framework> </config> <!– Disable the CSRF Token Filter –> <!– <config evaluator="string-compare" condition="CSRFPolicy" replace="true"> <filter/> </config> –> <!– To run the CSRF Token Filter behind 1 or more proxies that do not rewrite the Origin or Referere headers: 1. Copy the "CSRFPolicy" default config in share-security-config.xml and paste it into this file. 2. Replace the old config by setting the <config> element's "replace" attribute to "true" like below: <config evaluator="string-compare" condition="CSRFPolicy" replace="true"> 3. To every <action name="assertReferer"> element add the following child element <param name="referer">http://www.proxy1.com/.*|http://www.proxy2.com/.*</param> 4. To every <action name="assertOrigin"> element add the following child element <param name="origin">http://www.proxy1.com|http://www.proxy2.com</param> –> <!– Remove the default wildcard setting and use instead a strict whitelist of the only domains that shall be allowed to be used inside iframes (i.e. in the WebView dashlet on the dashboards) –> <!– <config evaluator="string-compare" condition="IFramePolicy" replace="true"> <cross-domain> <url>http://www.trusted-domain-1.com/</url> <url>http://www.trusted-domain-2.com/</url> </cross-domain> </config> –> <!– Turn off header that stops Share from being displayed in iframes on pages from other domains –> <!– <config evaluator="string-compare" condition="SecurityHeadersPolicy"> <headers> <header> <name>X-Frame-Options</name> <enabled>false</enabled> </header> </headers> </config> –> <!– Prevent browser communication over HTTP (for HTTPS servers) –> <!– <config evaluator="string-compare" condition="SecurityHeadersPolicy"> <headers> <header> <name>Strict-Transport-Security</name> <value>max-age=31536000</value> </header> </headers> </config> –> <config evaluator="string-compare" condition="Replication"> <share-urls> <!– To discover a Repository Id, browse to the remote server's CMIS landing page at: http://{server}:{port}/alfresco/service/cmis/index.html The Repository Id field is found under the "CMIS Repository Information" expandable panel. Example config entry: <share-url repositoryId="622f9533-2a1e-48fe-af4e-ee9e41667ea4">http://new-york-office:8080/share/</share-url> –> </share-urls> </config> <!– Document Library config section –> <config evaluator="string-compare" condition="DocumentLibrary" replace="true"> <tree> <!– Whether the folder Tree component should enumerate child folders or not. This is a relatively expensive operation, so should be set to "false" for Repositories with broad folder structures. –> <evaluate-child-folders>false</evaluate-child-folders> <!– Optionally limit the number of folders shown in treeview throughout Share. –> <maximum-folder-count>1000</maximum-folder-count> <!– Default timeout in milliseconds for folder Tree component to recieve response from Repository –> <timeout>7000</timeout> </tree> <!– Used by the "Manage Aspects" action For custom aspects, remember to also add the relevant i18n string(s) cm_myaspect=My Aspect –> <aspects> <!– Aspects that a user can see –> <visible> <aspect name="cm:generalclassifiable" /> <aspect name="cm:complianceable" /> <aspect name="cm:dublincore" /> <aspect name="cm:effectivity" /> <aspect name="cm:summarizable" /> <aspect name="cm:versionable" /> <aspect name="cm:templatable" /> <aspect name="cm:emailed" /> <aspect name="emailserver:aliasable" /> <aspect name="cm:taggable" /> <aspect name="app:inlineeditable" /> <aspect name="gd:googleEditable" /> <aspect name="cm:geographic" /> <aspect name="exif:exif" /> <aspect name="audio:audio" /> <aspect name="cm:indexControl" /> <aspect name="dp:restrictable" /> </visible> <!– Aspects that a user can add. Same as "visible" if left empty –> <addable> </addable> <!– Aspects that a user can remove. Same as "visible" if left empty –> <removeable> </removeable> </aspects> <!– Used by the "Change Type" action Define valid subtypes using the following example: <type name="cm:content"> <subtype name="cm:mysubtype" /> </type> Remember to also add the relevant i18n string(s): cm_mysubtype=My SubType –> <types> <type name="cm:content"> </type> <type name="cm:folder"> </type> <type name="trx:transferTarget"> <subtype name="trx:fileTransferTarget" /> </type> </types> <!– If set, will present a WebDAV link for the current item on the Document and Folder details pages. Also used to generate the "View in Alfresco Explorer" action for folders. –> <repository-url>http://localhost:8080/alfresco</repository-url> <!– Google Docs™ integration –> <google-docs> <!– Enable/disable the Google Docs UI integration (Extra types on Create Content menu, Google Docs actions). –> <enabled>false</enabled> <!– The mimetypes of documents Google Docs allows you to create via the Share interface. The I18N label is created from the "type" attribute, e.g. google-docs.doc=Google Docs™ Document –> <creatable-types> <creatable type="doc">application/msword</creatable> <creatable type="xls">application/vnd.ms-excel</creatable> <creatable type="ppt">application/vnd.ms-powerpoint</creatable> </creatable-types> </google-docs> <!– File upload configuration –> <file-upload> <!– Adobe Flash™ In certain environments, an HTTP request originating from Flash cannot be authenticated using an existing session. See: http://bugs.adobe.com/jira/browse/FP-4830 For these cases, it is useful to disable the Flash-based uploader for Share Document Libraries. –> <adobe-flash-enabled>true</adobe-flash-enabled> </file-upload> </config> <!– Custom DocLibActions config section –> <config evaluator="string-compare" condition="DocLibActions"> <actions> <action id="document-sendAsEmail" icon="email" type="javascript" label="actions.document.sendAsEmail"> <param name="function">onActionFormDialog</param> <param name="itemKind">action</param> <param name="itemId">send-as-email</param> <param name="mode">create</param> <param name="destination">{node.nodeRef}</param> <param name="successMessage">message.sendAsEmail.success</param> <param name="failureMessage">message.sendAsEmail.failure</param> <evaluator negate="true">evaluator.doclib.action.isEmailed </evaluator> </action> </actions> <actionGroups> <actionGroup id="document-browse"> <action index="400" id="document-sendAsEmail" /> </actionGroup> <actionGroup id="document-details"> <action index="400" id="document-sendAsEmail" /> </actionGroup> </actionGroups> </config> <!– Global folder picker config section –> <config evaluator="string-compare" condition="GlobalFolder"> <siteTree> <container type="cm:folder"> <!– Use a specific label for this container type in the tree –> <rootLabel>location.path.documents</rootLabel> <!– Use a specific uri to retreive the child nodes for this container type in the tree –> <uri>slingshot/doclib/treenode/site/{site}/{container}{path}?children={evaluateChildFoldersSite}&max={maximumFolderCountSite}</uri> </container> </siteTree> </config> <!– Repository Library config section –> <config evaluator="string-compare" condition="RepositoryLibrary" replace="true"> <!– Root nodeRef or xpath expression for top-level folder. e.g. alfresco://user/home, /app:company_home/st:sites/cm:site1 If using an xpath expression, ensure it is properly ISO9075 encoded here. –> <root-node>alfresco://company/home</root-node> <tree> <!– Whether the folder Tree component should enumerate child folders or not. This is a relatively expensive operation, so should be set to "false" for Repositories with broad folder structures. –> <evaluate-child-folders>false</evaluate-child-folders> <!– Optionally limit the number of folders shown in treeview throughout Share. –> <maximum-folder-count>500</maximum-folder-count> </tree> <!– Whether the link to the Repository Library appears in the header component or not. –> <visible>true</visible> </config> <!– Kerberos settings –> <!– To enable kerberos rename this condition to "Kerberos" –> <config evaluator="string-compare" condition="KerberosDisabled" replace="true"> <kerberos> <!– Password for HTTP service account. The account name *must* be built from the HTTP server name, in the format : HTTP/<server_name>@<realm> (NB this is because the web browser requests an ST for the HTTP/<server_name> principal in the current realm, so if we're to decode that ST, it has to match.) –> <password>secret</password> <!– Kerberos realm and KDC address. –> <realm>ALFRESCO.ORG</realm> <!– Service Principal Name to use on the repository tier. This must be like: HTTP/host.name@REALM –> <endpoint-spn>HTTP/repository.server.com@ALFRESCO.ORG</endpoint-spn> <!– JAAS login configuration entry name. –> <config-entry>ShareHTTP</config-entry> </kerberos> </config> <config evaluator="string-compare" condition="Remote"> <remote> <endpoint> <id>alfresco-noauth</id> <name>Alfresco - unauthenticated access</name> <description>Access to Alfresco Repository WebScripts that do not require authentication</description> <connector-id>alfresco</connector-id> <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url> <identity>none</identity> </endpoint> <endpoint> <id>alfresco</id> <name>Alfresco - user access</name> <description>Access to Alfresco Repository WebScripts that require user authentication</description> <connector-id>alfresco</connector-id> <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url> <identity>user</identity> </endpoint> <endpoint> <id>alfresco-feed</id> <name>Alfresco Feed</name> <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description> <connector-id>http</connector-id> <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url> <basic-auth>true</basic-auth> <identity>user</identity> </endpoint> <endpoint> <id>activiti-admin</id> <name>Activiti Admin UI - user access</name> <description>Access to Activiti Admin UI, that requires user authentication</description> <connector-id>activiti-admin-connector</connector-id> <endpoint-url>http://localhost:8080/alfresco/activiti-admin</endpoint-url> <identity>user</identity> </endpoint> </remote> </config> <!– Overriding endpoints to reference an Alfresco server with external SSO enabled NOTE: If utilising a load balancer between web-tier and repository cluster, the "sticky sessions" feature of your load balancer must be used. NOTE: If alfresco server location is not localhost:8080 then also combine changes from the "example port config" section below. *Optional* keystore contains SSL client certificate + trusted CAs. Used to authenticate share to an external SSO system such as CAS Remove the keystore section if not required i.e. for NTLM. NOTE: For Kerberos SSO rename the "KerberosDisabled" condition above to "Kerberos" NOTE: For external SSO, switch the endpoint connector to "AlfrescoHeader" and set the userHeader to the name of the HTTP header that the external SSO uses to provide the authenticated user name. –> <!– <config evaluator="string-compare" condition="Remote"> <remote> <keystore> <path>alfresco/web-extension/alfresco-system.p12</path> <type>pkcs12</type> <password>alfresco-system</password> </keystore> <connector> <id>alfrescoCookie</id> <name>Alfresco Connector</name> <description>Connects to an Alfresco instance using cookie-based authentication</description> <class>org.alfresco.web.site.servlet.SlingshotAlfrescoConnector</class> </connector> <connector> <id>alfrescoHeader</id> <name>Alfresco Connector</name> <description>Connects to an Alfresco instance using header and cookie-based authentication</description> <class>org.alfresco.web.site.servlet.SlingshotAlfrescoConnector</class> <userHeader>SsoUserHeader</userHeader> </connector> <endpoint> <id>alfresco</id> <name>Alfresco - user access</name> <description>Access to Alfresco Repository WebScripts that require user authentication</description> <connector-id>alfrescoCookie</connector-id> <endpoint-url>http://localhost:8080/alfresco/wcs</endpoint-url> <identity>user</identity> <external-auth>true</external-auth> </endpoint> </remote> </config> –> <config evaluator="string-compare" condition="send-as-email"> <forms> <form> <field-visibility> <show id="to" /> <show id="subject" /> <show id="text" /> </field-visibility> <appearance> <field id="to" label-id="send-as-email.field.to"/> <field id="subject" label-id="send-as-email.field.subject"/> <field id="text" label-id="send-as-email.field.text"/> <control template="/org/alfresco/components/form/controls/textarea.ftl" /> </appearance> </form> </forms> </config> </alfresco-config>
// you can use whatever document node you want, nothing is done with that document ! var document = utils.getNodeFromString("workspace://SpacesStore/1560d1bb-80fa-43f6-87bf-6937b085407e"); var mail = actions.create("mail"); mail.parameters.to = "recipient@email.address"; mail.parameters.subject = "Sending mail test"; mail.parameters.from = "sender@email.address"; mail.parameters.text = "email content"; mail.execute(document);
// Get document filename Serializable filename = m_nodeService.getProperty(actionedUponNodeRef, ContentModel.PROP_NAME); if (filename == null) { throw new AlfrescoRuntimeException("Document filename is null"); } String documentName = (String) filename; try { // Create mail session Properties props = new Properties(); props.put("mail.smtp.host", "XXXXXX"); // localhost will not work Session session = Session.getDefaultInstance(props, null); session.setDebug(false); // Define message Message message = new MimeMessage(session); String fromAddress = "alfresco@mycompany.com"; message.setFrom(new InternetAddress(fromAddress)); message.addRecipient(Message.RecipientType.TO, new InternetAddress(to)); message.setSubject(subject); // Create the message part with body text BodyPart messageBodyPart = new MimeBodyPart(); messageBodyPart.setText(body); Multipart multipart = new MimeMultipart(); multipart.addBodyPart(messageBodyPart); // Create the Attachment part // Get the document content bytes byte[] documentData = alfrescoRepoHelper.getDocumentContentBytes(actionedUponNodeRef, documentName); if (documentData == null) { throw new AlfrescoRuntimeException("Document content is null"); } // Attach document messageBodyPart = new MimeBodyPart(); messageBodyPart.setDataHandler(new DataHandler(new ByteArrayDataSource( documentData, new MimetypesFileTypeMap().getContentType(documentName)))); messageBodyPart.setFileName(documentName); multipart.addBodyPart(messageBodyPart); // Put parts in message message.setContent(multipart); // Send the message Transport.send(message);
props.put("mail.smtp.host", "smtp.mycompany.com");
String fromAddress = "alfresco@mycompany.com";
15:18:13,521 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default] 15:18:13,552 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete 15:18:23,162 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl 15:18:23,162 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js 15:18:26,594 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Connecting to database: jdbc:mysql:///alfresco, UserName=alfresco@localhost, MySQL-AB JDBC Driver 15:18:26,594 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect. 15:18:28,122 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema. 15:18:29,230 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Search' subsystem, ID: [Search, managed, lucene] 15:18:29,480 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Search' subsystem, ID: [Search, managed, lucene] complete 15:18:30,400 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [thirdparty, default] 15:18:32,756 WARN [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established. 15:18:32,756 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete 15:18:33,255 WARN [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'. 'dir.root' should be overridden to point to a specific folder. 15:18:33,255 INFO [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: .\alf_data 15:18:33,442 INFO [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply … 15:18:33,832 INFO [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required. 15:18:33,848 INFO [org.alfresco.repo.module.ModuleServiceImpl] Found 1 module(s). 15:18:33,863 INFO [org.alfresco.repo.module.ModuleServiceImpl] Starting module 'alfresco-mm-repo' version 0.1.5.9. 15:18:33,863 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'fileServers' subsystem, ID: [fileServers, default] 15:18:34,316 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] 15:18:34,409 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete 15:18:34,550 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete 15:18:34,550 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [imap, default] 15:18:34,987 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [imap, default] complete 15:18:34,987 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, outbound] 15:18:35,018 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, outbound] complete 15:18:35,018 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, inbound] 15:18:35,080 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, inbound] complete 15:18:35,080 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'googledocs' subsystem, ID: [googledocs, default] 15:18:35,127 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'googledocs' subsystem, ID: [googledocs, default] complete 15:18:35,127 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Subscriptions' subsystem, ID: [Subscriptions, default] 15:18:35,127 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Subscriptions' subsystem, ID: [Subscriptions, default] complete 15:18:35,127 INFO [org.alfresco.repo.usage.UserUsageTrackingComponent] Disabled - clear non-missing user usages … 15:18:35,143 INFO [org.alfresco.repo.usage.UserUsageTrackingComponent] Found 1 users to clear 15:18:35,626 INFO [org.alfresco.repo.usage.UserUsageTrackingComponent] … cleared non-missing usages for 1 users 15:18:35,626 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [Synchronization, default] 15:18:35,704 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [Synchronization, default] complete 15:18:35,798 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.7.0-b147; maximum heap size 989.875MB 15:18:35,798 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community). Current version: 4.2.0 (@build-number@) schema 6,020. Originally installed version: 4.2.0 (@build-number@) schema 6,020. 15:18:35,798 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default] 15:18:35,860 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default] complete 15:18:35,860 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Replication' subsystem, ID: [Replication, default] 15:18:35,860 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Replication' subsystem, ID: [Replication, default] complete 15:18:36,141 DEBUG [org.alfresco.repo.action.executer.MailActionExecuter] {template_model={repeatIntervalMins=1440, feedItemsCount=1, feedItemsMax=100, activities=[{id=7, siteNetwork=demo, feedUserId=nancy, postUserId=nancy, postDate=Tue Sep 10 13:04:09 IST 2013, activitySummary={lastName=aggarwal, title=nancy aggarwal (nancy), memberLastName=aggarwal, role=SiteCollaborator, firstName=nancy, memberUserName=nancy, memberFirstName=nancy}, activityType=org.alfresco.site.user-joined, activitySummaryFormat=json}], productName=Share, siteTitles={demo=demo}, personProps={cm:lastName=aggarwal, sys:node-uuid=1aa6f015-48dd-47eb-b844-601b53ec5782, cm:firstName=nancy, cm:name=1aa6f015-48dd-47eb-b844-601b53ec5782, sys:locale=en_US, cm:owner=nancy, sys:store-protocol=workspace, cm:userName=nancy, cm:homeFolderProvider=userHomesHomeFolderProvider, sys:node-dbid=857, cm:sizeQuota=-1, cm:sizeCurrent=null, cm:email=XXXXXX, cm:homeFolder=workspace://SpacesStore/, sys:store-identifier=SpacesStore}}, template=workspace://SpacesStore/, to=xxxxxx, subject=Alfresco Share: Recent Activities} 15:18:40,899 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 470 Web Scripts (+0 failed), 749 URLs 15:18:40,899 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 2 Package Description Documents (+0 failed) 15:18:40,899 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 1 Schema Description Documents (+0 failed) 15:18:40,899 INFO [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Repository Web Script Container (in 4342.737ms) 15:18:40,930 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl 15:18:40,930 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
<config evaluator="string-compare" condition="send-as-email"> <forms> <form> <field-visibility> <show id="to" /> <show id="subject" /> <show id="body_text" /> </field-visibility> <appearance> <field id="to" label-id="send-as-email.field.to"/> <field id="subject" label-id="send-as-email.field.subject"/> <field id="body_text" label-id="send-as-email.field.text"/> <control template="/org/alfresco/components/form/controls/textarea.ftl" /> </appearance> </form> </forms> </config>
public class SendAsEmailActionExecuter extends ActionExecuterAbstractBase { private static Log logger = LogFactory.getLog(SendAsEmailActionExecuter.class); // Form parameters public static final String PARAM_EMAIL_TO_NAME = "to"; public static final String PARAM_EMAIL_SUBJECT_NAME = "subject"; public static final String PARAM_EMAIL_BODY_NAME = "body_text";
props.put("mail.smtp.host", "alfea-port-1103");
String fromAddress = "alfresco@alfea-port-1103.com";
logger.debug("my message");
log4j.logger.com.mycompany.cms.action.SendAsEmailActionExecuter=debug
<config evaluator="string-compare" condition="send-as-email"> <forms> <form> <field-visibility> <show id="to" /> <show id="subject" /> <show id="body_text" /> </field-visibility> <appearance> <field id="to" label-id="send-as-email.field.to"/> <field id="subject" label-id="send-as-email.field.subject"/> <field id="body_text" label-id="send-as-email.field.text"/> <control template="/org/alfresco/components/form/controls/textarea.ftl" /> </appearance> </form> </forms> </config>
props.put("mail.smtp.host", "smtp.mycompany.com"); String fromAddress = "alfresco@org.com";
<bean id="send-as-email" class="com.mycompany.cms.action.SendAsEmailActionExecuter" parent="action-executer"> <property name="alfrescoRepoHelper"> <ref bean="alfrescoRepoHelper"/> </property> <property name="nodeService"> <ref bean="NodeService"/> </property> </bean>
// you can use whatever document node you want, nothing is done with that document ! var document = utils.getNodeFromString("workspace://SpacesStore/1560d1bb-80fa-43f6-87bf-6937b085407e"); var mail = actions.create("send-as-email"); mail.parameters.to = "recipient@email.address"; mail.parameters.subject = "Sending mail test"; mail.parameters.from = "sender@email.address"; mail.parameters.body_text = "email content"; mail.parameters.node = document; mail.execute(document);
<action id="document-archive" type="javascript" label="actions.document.archive"> <param name="function">onActionBackup</param> <permissions> <permission allow="true">Delete</permission> </permissions> <param name="successMessage">message.archive.success</param> <param name="failureMessage">message.archive.failure</param> <evaluator negate="true">evaluator.doclib.action.isLocked</evaluator> </action>
package org.alfresco.repo.action.executer; import java.util.List; import org.alfresco.repo.action.ParameterDefinitionImpl; import org.alfresco.service.cmr.action.Action; import org.alfresco.service.cmr.action.ParameterDefinition; import org.alfresco.service.cmr.dictionary.DataTypeDefinition; import org.alfresco.service.cmr.model.FileFolderService; import org.alfresco.service.cmr.model.FileNotFoundException; import org.alfresco.service.cmr.repository.NodeRef; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class ArchiveActionExecuter extends ActionExecuterAbstractBase{ private static Log logger = LogFactory.getLog(ArchiveActionExecuter.class); public static final String NAME = "archive"; public static final String PARAM_DESTINATION_FOLDER = "archive_store"; private FileFolderService fileFolderService; public void setFileFolderService(FileFolderService fileFolderService) { this.fileFolderService = fileFolderService; } @Override public void executeImpl(Action ruleAction, NodeRef actionedUponNodeRef) { logger.debug("######################1"); NodeRef destinationParent = (NodeRef)ruleAction.getParameterValue(PARAM_DESTINATION_FOLDER); try { logger.debug("######################2"); fileFolderService.move(actionedUponNodeRef, destinationParent, null); logger.debug("######################3"); } catch (FileNotFoundException e) { logger.debug("######################4"); // Do nothing } } @Override protected void addParameterDefinitions(List<ParameterDefinition> paramList) { paramList.add(new ParameterDefinitionImpl(PARAM_DESTINATION_FOLDER, DataTypeDefinition.NODE_REF, true, getParamDisplayLabel(PARAM_DESTINATION_FOLDER))); } }
(function() { /** * Backup single document. * * @method onActionBackup * @param file {object} Object literal representing one or more file(s) or folder(s) to be actioned */ YAHOO.Bubbling.fire("registerAction", { actionName: "onActionBackup", onActionBackup: function dlA_onActionBackup(record) { alert("TEST"); var displayName = record.displayName; var nodeRef = record.nodeRef; this.modules.actions.genericAction( { success: { event: { name: "metadataRefresh" }, message: this.msg("message.archive.success", record.displayName) }, failure: { message: this.msg("message.archive.failure",record.displayName) }, webscript: { name:"/slingshot/doclib/action/archive/site/{site}/{container}", method: Alfresco.util.Ajax.POST }, params: { site: this.options.siteId, container: this.options.containerId }, config: { requestContentType: Alfresco.util.Ajax.JSON, dataObj: { nodeRefs: [record.nodeRef] } } }); } }); })();