An error has occured in the Share component: /share/service/components/search/advsearch.
It responded with a status of 500 - Internal Error.
Error Code Information: 500 - An error inside the HTTP server which prevented it from fulfilling the request.
Error Message: 05250001 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/search/advsearch.get.js': 05250000 TypeError: Cannot call method "size" of null (file:/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/search/advsearch.get.js#18)
Server: Alfresco Spring WebScripts - v1.0.0 (Release Candidate 2 744) schema 1 000
Time: 25 juin 2011 02:18:15
Click here to view full technical information on the error.
Caused by: org.springframework.extensions.webscripts.WebScriptException: 05250000 TypeError: Cannot call method "size" of null (file:/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/search/advsearch.get.js#18)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:328)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:192)
… 87 more
Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "size" of null (file:/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/search/advsearch.get.js#18)
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.optimizer.OptRuntime.callProp0(OptRuntime.java:117)
at org.mozilla.javascript.gen.c14._c1(file:/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/search/advsearch.get.js:18)
at org.mozilla.javascript.gen.c14.call(file:/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/search/advsearch.get.js)
at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
at org.mozilla.javascript.gen.c14._c0(file:/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/search/advsearch.get.js:61)
at org.mozilla.javascript.gen.c14.call(file:/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/search/advsearch.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.c14.call(file:/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/search/advsearch.get.js)
at org.mozilla.javascript.gen.c14.exec(file:/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/search/advsearch.get.js)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:318)
… 88 more
<?xml version="1.0" encoding="UTF-8"?>
<!– The important part here is the name - Note: the use of the my: namespace
which is defined further on in the document –>
<model name="can:canl" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Documents Can'l</description>
<author></author>
<version>1.0</version>
<!– Imports are required to allow references to definitions in other models –>
<imports>
<!– Import Alfresco Dictionary Definitions –>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<!– Import Alfresco Content Domain Model Definitions –>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<!– NOTE: The following namespace my.new.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="http://www.canl.nc/model/content/1.0" prefix="can"/>
</namespaces>
<constraints>
<constraint name="can:list" type="LIST">
<parameter name="allowedValues">
<list>
<value> </value>
<value>Contrat initial</value>
<value>Contrat de modification</value>
<value>Contrat d'options</value>
<value>Fiche d'intervention</value>
<value>Bon de mise a disposition</value>
<value>Bon optimo</value>
<value>Autorisation prelevement</value>
<value>Piece d'identite</value>
<value>Config Materiel</value>
</list>
</parameter>
<!–
<parameter name="caseSensitive">
<value>true</value>
</parameter>
–>
</constraint>
</constraints>
<!– Definition of new Content Type: documents types Can'l –>
<types>
<type name="can:canl">
<title>Documents Canl</title>
<parent>cm:content</parent>
<properties>
<property name="can:name">
<title>Nom / Prenom / Societe</title>
<type>d:text</type>
<multiple>true</multiple>
</property>
<property name="can:contrat">
<title>Numero contrat</title>
<type>d:text</type>
</property>
<property name="can:typedoc">
<title>Type document</title>
<type>d:text</type>
<constraints>
<constraint ref="can:list"/>
</constraints>
</property>
</properties>
</type>
</types>
<aspects>
<aspect name="can:dsl">
<title>Ligne DSL</title>
<properties>
<property name="can:adsl">
<title>DSL</title>
<type>d:text</type>
</property>
</properties>
</aspect>
<aspect name="can:log">
<title>Login</title>
<properties>
<property name="can:login">
<title>Login</title>
<type>d:text</type>
<multiple>true</multiple>
</property>
</properties>
</aspect>
</aspects>
</model>
<alfresco-config>
<!– Repository Library config section –>
<config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
<!–
Whether the link to the Repository Library appears in the header component or not.
–>
<visible>true</visible>
</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>
</remote>
</config>
<config evaluator="string-compare" condition="AdvancedSearch" replace="true">
<advanced-search>
<forms>
<!– l'ordre de parametrage jouera sur l'ordre d'affichage dans le menu –>
<!– Pour l'exemple ci-dessous, la recherche sur les contenus de base sera selectionnee en premier –>
<form label="CAN'L" description="Documents CAN'L">can:canl</form>
<form labelId="search.form.label.cm_content" descriptionId="search.form.desc.cm_content">cm:content</form>
<form labelId="search.form.label.cm_folder" descriptionId="search.form.desc.cm_folder">cm:folder</form>
<!– Pour affichage dans la recherche avancee du lien SOP document–>
<!–<form label="SOP Document" description="Procedure standard">my:sop</form>–>
</forms>
</advanced-search>
</config>
<!– Pour affichage métadonnées CANL–>
<config evaluator="model-type" condition="can:canl">
<forms>
<form id="search">
<field-visibility>
<show id="can:contrat" />
<show id="can:name" />
<show id="can:typedoc" />
</field-visibility>
</form>
</forms>
</config>
<!– surcharge la conf presente dans \tomcat\webapps\share\WEB-INF\classes\alfresco\share-form-config.xml –>
<!– configuration can'l –>
<config evaluator="node-type" condition="can:canl">
<forms>
<!– Default form configuration for the cm:content type –>
<form>
<field-visibility>
<show id="can:contrat" />
<show id="can:name" />
<show id="can:typedoc" />
<!– tags and categories –>
<show id="cm:taggable" for-mode="edit" force="true" />
<show id="cm:categories" />
<!– cm:dublincore aspect –>
<show id="cm:publisher"/>
<show id="cm:contributor"/>
<show id="cm:type"/>
<show id="cm:identifier"/>
<show id="cm:dcsource"/>
<show id="cm:coverage"/>
<!–<show id="cm:rights"/>–>
<show id="cm:subject"/>
<!– cm:complianceable aspect –>
<show id="cm:removeAfter" />
<!– cm:effectivity aspect –>
<show id="cm:from"/>
<show id="cm:to"/>
<!– cm:summarizable aspect –>
<show id="cm:summary" />
<!– cm:translatable aspect –>
<show id="cm:translations" />
<!– cm:localizable aspect –>
<show id="cm:locale" />
<!– cm:ownable aspect –>
<show id="cm:owner" />
<!– cm:attachable aspect –>
<show id="cm:attachments" />
<!– cm:emailed aspect –>
<show id="cm:originator" />
<show id="cm:addressee" />
<show id="cm:addressees" />
<show id="cm:sentdate" />
<show id="cm:subjectline" />
<!– cm:geographic aspect –>
<show id="cm:latitude" />
<show id="cm:longitude" />
<!– can:dsl aspect –>
<show id="can:adsl" />
<!– can:log aspect–>
<show id="can:login" />
</field-visibility>
</form>
</forms>
</config>
<!– Pour affichage des metadonnees liees a SOP document–>
<!–
<config evaluator="model-type" condition="my:sop">
<forms>
<form id="search">
<field-visibility>
<show id="cm:name" />
<show id="my:publishedDate" />
<show id="my:authorisedBy" />
<show id="my:many" />
<show id="my:signOff" />
<show id="my:long" />
</field-visibility>
<appearance>
<field id="my:authorisedBy">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="my:many">
<control template="/org/alfresco/components/form/controls/size.ftl" />
</field>
<field id="my:long">
<control template="/org/alfresco/components/form/controls/size.ftl" />
</field>
<field id="my:publishedDate">
<control template="/org/alfresco/components/form/controls/daterange.ftl" />
</field>
<field id="my:signOff">
<control template="/org/alfresco/components/form/controls/association.ftl" />
</field>
</appearance>
</form>
</forms>
</config> –>
<!– surcharge la conf presente dans \tomcat\webapps\share\WEB-INF\classes\alfresco\share-form-config.xml –>
<!–
<config evaluator="node-type" condition="my:sop">
<forms>
<form>
<field-visibility>
<show id="my:publishedDate" />
<show id="my:authorisedBy" />
<show id="my:many" />
<show id="cm:name" />
<show id="cm:title" force="true" />
<show id="cm:description" force="true" />
<show id="mimetype" />
<show id="cm:author" force="true" />
<show id="size" for-mode="view" />
<show id="cm:creator" for-mode="view" />
<show id="cm:created" for-mode="view" />
<show id="cm:modifier" for-mode="view" />
<show id="cm:modified" for-mode="view" />
<show id="my:width" />
<show id="my:height" />
<show id="my:resolution" />
<show id="cm:taggable" for-mode="edit" force="true" />
<show id="cm:categories" />
<show id="cm:publisher"/>
<show id="cm:contributor"/>
<show id="cm:type"/>
<show id="cm:identifier"/>
<show id="cm:dcsource"/>
<show id="cm:coverage"/>
<show id="cm:rights"/>
<show id="cm:subject"/>
<show id="cm:removeAfter" />
<show id="cm:from"/>
<show id="cm:to"/>
<show id="cm:summary" />
<show id="cm:translations" />
<show id="cm:locale" />
<show id="cm:owner" />
<show id="cm:attachments" />
<show id="cm:originator" />
<show id="cm:addressee" />
<show id="cm:addressees" />
<show id="cm:sentdate" />
<show id="cm:subjectline" />
<show id="exif:dateTimeOriginal" />
<show id="exif:pixelXDimension" />
<show id="exif:pixelYDimension" />
<show id="exif:exposureTime" />
<show id="exif:fNumber" />
<show id="exif:flash" />
<show id="exif:focalLength" />
<show id="exif:isoSpeedRatings" />
<show id="exif:manufacturer" />
<show id="exif:model" />
<show id="exif:software" />
<show id="exif:orientation" />
<show id="exif:xResolution" />
<show id="exif:yResolution" />
<show id="exif:resolutionUnit" />
<show id="cm:latitude" />
<show id="cm:longitude" />
</field-visibility>
</form>
</forms>
</config>
–>
<config evaluator="string-compare" condition="DocumentLibrary" replace="true">
<tree>
<evaluate-child-folders>true</evaluate-child-folders>
<!– <maximum-folder-count>-1</maximum-folder-count> –>
</tree>
<aspects>
<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="cm:geographic" />
<aspect name="exif:exif" />
<aspect name="can:dsl" />
<aspect name="can:log" />
</visible>
<!– ajouter un aspect ici si on souhaite uniquement pouvoir ajouter mais pas supprimer –>
<addable>
</addable>
<!– ajouter un aspect ici si on souhaite uniquement pouvoir supprimer mais pas ajouter –>
<removeable>
</removeable>
</aspects>
<types>
<type name="cm:content">
<subtype name="mod:dta" />
<subtype name="can:canl"/>
</type>
<type name="cm:folder">
</type>
<!– pour pouvoir typer un document avec ce type –>
<!–<type name="my:sop"></type>–>
</types>
<google-docs>
<enabled>false</enabled>
<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>
<adobe-flash-enabled>true</adobe-flash-enabled>
</file-upload>
</config>
</alfresco-config>
Compatibilité Share
Le multi-tenancy gère aussi bien l’interface Alfresco DM que l’interface SHARE.
Des tests fonctionnels sous SHARE sont nécessaires pour une complète validation fonctionnelle.
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.