SURF - webscripts et accès au repository d'Alfresco

cancel
Showing results for 
Search instead for 
Did you mean: 
cytrix
Member II

SURF - webscripts et accès au repository d'Alfresco

Bonjour,

Je m'amuse un peu avec le framework SURF en ce moment :-) .
J'ai créé un petit site de test avec quelques composants ftl, basé sur l'excellent tutorial ici : http://www.benh.co.uk/alfresco/surf-part-1-getting-started/
Dans le répertoire tomcat de webapps, je retrouve les projets alfresco et SURF.
J'aimerai accéder au repository d'Alfresco à partir d'un de mes webscripts SURF. J'ai l'impression qu'il faut utiliser l'objet javascript remote mais je n'arrive pas à passer l'authentification, j'ai une erreur 401 :-( .

Voici le petit bout de code javascript qui me pose problème :


var connector = remote.connect("alfresco");
var ticket = new String(connector.get("/api/login?u=admin&pw=admin"));
ticket = ticket.split("<ticket>")[1];
ticket = ticket.split("</ticket>")[0];

var retour = connector.get("/api/metadata?alf_ticket=" + ticket + "&nodeRef=workspace://SpacesStore/9249f830-3a91-4634-a970-ff25b9ac50cd");
model.retour = retour;

Le ticket est bien généré, c'est la seconde requête qui pose problème.

Merci d'avance pour vos réponses.
10 Replies
cytrix
Member II

Re: SURF - webscripts et accès au repository d'Alfresco

Voici l'exception obtenue :


The Web Script /alfresco/s/api/metadata has responded with a status of 401 - Unauthorized.

401 Description:   The request requires HTTP authentication.

Message:   09010008 Web Script org/alfresco/repository/metadata/metadata.get requires user authentication; however, a guest has attempted access.
   
Exception:   org.alfresco.web.scripts.WebScriptException - 09010008 Web Script org/alfresco/repository/metadata/metadata.get requires user authentication; however, a guest has attempted access.
   
   org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:265)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:295)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:172)
   org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   java.lang.Thread.run(Thread.java:595)
   
Server:   Alfresco Community v3.2.0 (r @build-number@) schema 3 003
Time:   1 oct. 2009 17:47:24
   
Diagnostics:   Inspect Web Script (org/alfresco/repository/metadata/metadata.get)
cytrix
Member II

Re: SURF - webscripts et accès au repository d'Alfresco

Je viens de voir que l'url appelée par le connector possède un "guest=true" à la fin, et c'est ce paramètre qui pose problème.

http://127.0.0.1:8080/alfresco/s/api/metadata?alf_ticket=TICKET_34338294dfd720b061734e539b3660a15113...

Comment indiquer à l'objet javascript remote de ne pas faire ces requêtes en mode guest ? (et donc de ne pas ajouter automatique le paramétre "guest=true" à la fin des requêtes ?)
bertrandf
Active Member

Re: SURF - webscripts et accès au repository d'Alfresco

Bonjour,

Pouvez-vous nous donner la déclaration du endpoint "alfresco" que vous utilisez svp?
Théoriquement, il doit être déclaré dans le fichier webscript-framework-config.xml.

Merci.
cytrix
Member II

Re: SURF - webscripts et accès au repository d'Alfresco

Voila, c'est celui par défaut, je n'y ai pas touché :


<alfresco-config>

   <plug-ins>
      <element-readers>
         <element-reader element-name="web-framework" class="org.alfresco.web.config.WebFrameworkConfigElementReader"/>
     </element-readers>
   </plug-ins>

   <config evaluator="string-compare" condition="WebFramework">

      <!–  Web Framework Core Settings  –>
      <web-framework>

         <!– Request Context Factory Implementations –>
         <request-context>
            <id>default</id>
            <name>DefaultRequestContextFactory</name>
            <description>DefaultRequestContextFactory</description>
            <class>org.alfresco.web.site.DefaultRequestContextFactory</class>
            <store></store>
         </request-context>

         <!– Page Mapper Implementation –>
         <page-mapper>
            <id>default</id>
            <name>Default Page Mapper</name>
            <description>Default Page Mapper</description>
            <class>org.alfresco.web.site.DefaultPageMapper</class>
         </page-mapper>

         <!– Link Builder Implementation –>
         <link-builder>
            <id>default</id>
            <name>Default Link Builder</name>
            <description>Default Link Builder</description>
            <class>org.alfresco.web.site.DefaultLinkBuilder</class>
         </link-builder>

         <!– Formats –>
         <format>
            <id>default</id>
            <name>Default</name>
            <description>Default Format</description>
         </format>
         <format>
            <id>print</id>
            <name>Print</name>
            <description>Print Format</description>
         </format>
         <format>
            <id>wap</id>
            <name>Wireless</name>
            <description>Wireless Format</description>
         </format>

         <!– persister config –>
         <persisters>
            <!– setting to enable the model object caching –>
            <!– same setting can be overriden below on a per model-type basis –>
            <cache-enabled>true</cache-enabled>
           
            <!– delay in seconds between checking store caches are dirty –>
            <!– same setting can be overriden below on a per model-type basis –>
            <cache-check-delay>600</cache-check-delay>
         </persisters>

         <!– object model –>
         <model-type>
            <id>chrome</id>
            <version>1.0</version>
            <name>Chrome</name>
            <description>Chrome</description>
            <namespace></namespace>
            <class>org.alfresco.web.framework.model.Chrome</class>
            <search-path-id>webframework.searchpath.chrome</search-path-id>
            <default-store-id>webframework.classpathstore.chrome</default-store-id>
            <!– store model object caching override example –>
            <!–<cache-enabled>false</cache-enabled>–>
            <!– store cache dirty check override example –>
            <!–<cache-check-delay>10</cache-check-delay>–>
         </model-type>
         <model-type>
            <id>component</id>
            <version>1.0</version>
            <name>Component</name>
            <description>Component</description>
            <namespace></namespace>
            <class>org.alfresco.web.framework.model.Component</class>
            <search-path-id>webframework.searchpath.component</search-path-id>
            <default-store-id>webframework.classpathstore.component</default-store-id>
         </model-type>
         <model-type>
            <id>component-type</id>
            <version>1.0</version>
            <name>Component Type</name>
            <description>Component Type</description>
            <namespace></namespace>
            <class>org.alfresco.web.framework.model.ComponentType</class>
            <search-path-id>webframework.searchpath.componenttype</search-path-id>
            <default-store-id>webframework.classpathstore.componenttype</default-store-id>
         </model-type>
         <model-type>
            <id>configuration</id>
            <version>1.0</version>
            <name>Configuration</name>
            <description>Configuration</description>
            <namespace></namespace>
            <class>org.alfresco.web.framework.model.Configuration</class>
            <search-path-id>webframework.searchpath.configuration</search-path-id>
            <default-store-id>webframework.classpathstore.configuration</default-store-id>
         </model-type>
         <model-type>
            <id>content-association</id>
            <version>1.0</version>
            <name>Content Association</name>
            <description>Content Association</description>
            <namespace></namespace>
            <class>org.alfresco.web.framework.model.ContentAssociation</class>
            <search-path-id>webframework.searchpath.contentassociation</search-path-id>
            <default-store-id>webframework.classpathstore.contentassociation</default-store-id>
         </model-type>
         <model-type>
            <id>page</id>
            <version>1.0</version>
            <name>Page</name>
            <description>Page</description>
            <namespace></namespace>
            <class>org.alfresco.web.framework.model.Page</class>
            <search-path-id>webframework.searchpath.page</search-path-id>
            <default-store-id>webframework.classpathstore.page</default-store-id>
         </model-type>
         <model-type>
            <id>page-type</id>
            <version>1.0</version>
            <name>Page Type</name>
            <description>Page Type</description>
            <namespace></namespace>
            <class>org.alfresco.web.framework.model.PageType</class>
            <search-path-id>webframework.searchpath.pagetype</search-path-id>
            <default-store-id>webframework.classpathstore.pagetype</default-store-id>
         </model-type>
         <model-type>
            <id>page-association</id>
            <version>1.0</version>
            <name>Page Association</name>
            <description>Page Association</description>
            <namespace></namespace>
            <class>org.alfresco.web.framework.model.PageAssociation</class>
            <search-path-id>webframework.searchpath.pageassociation</search-path-id>
            <default-store-id>webframework.classpathstore.pageassociation</default-store-id>
         </model-type>
         <model-type>
            <id>template-instance</id>
            <version>1.0</version>
            <name>Template Instance</name>
            <description>Template Instance</description>
            <namespace></namespace>
            <class>org.alfresco.web.framework.model.TemplateInstance</class>
            <search-path-id>webframework.searchpath.templateinstance</search-path-id>
            <default-store-id>webframework.classpathstore.templateinstance</default-store-id>
         </model-type>
         <model-type>
            <id>template-type</id>
            <version>1.0</version>
            <name>Template Type</name>
            <description>Template Type</description>
            <namespace></namespace>
            <class>org.alfresco.web.framework.model.TemplateType</class>
            <search-path-id>webframework.searchpath.templatetype</search-path-id>
            <default-store-id>webframework.classpathstore.templatetype</default-store-id>
         </model-type>
         <model-type>
            <id>theme</id>
            <version>1.0</version>
            <name>Theme</name>
            <description>Theme</description>
            <namespace></namespace>
            <class>org.alfresco.web.framework.model.Theme</class>
            <search-path-id>webframework.searchpath.theme</search-path-id>
            <default-store-id>webframework.classpathstore.theme</default-store-id>
         </model-type>

         <!– Add in the ALF tag library –>
         <tag-library>
            <id>alf</id>
            <uri>/WEB-INF/tlds/alf.tld</uri>
            <namespace>http://www.alfresco.org/taglib/alf</namespace>
         </tag-library>

         <!– User Factory Implementation –>
         <user-factory>
            <id>default</id>
            <name>Default User Factory</name>
            <description>Produces Default Users</description>
            <class>org.alfresco.web.site.DefaultUserFactory</class>
         </user-factory>
         <user-factory>
            <id>alfresco</id>
            <name>Alfresco User Factory</name>
            <description>Produces Users loaded from Alfresco Repository</description>
            <class>org.alfresco.web.site.AlfrescoUserFactory</class>
         </user-factory>

         <!– Resource Loaders –>
         <resource-loader>
            <id>webapp</id>
            <name>Alfresco Web Application Resource Loader</name>
            <description>Loads content from an Alfresco Web Application Repository</description>
            <class>org.alfresco.web.framework.resource.AlfrescoWebProjectResourceLoader</class>
            <endpoint>alfresco</endpoint>
         </resource-loader>
         <resource-loader>
            <id>space</id>
            <name>Alfresco Spaces Resource Loader</name>
            <description>Loads content from an Alfresco Spaces Repository</description>
            <class>org.alfresco.web.framework.resource.AlfrescoSpaceResourceLoader</class>
            <endpoint>alfresco</endpoint>
         </resource-loader>
         
         <!– Resource Resolvers –>
         <resource-resolver>
            <id>webapp</id>
            <name>Alfresco Web Application Resource Resolver</name>
            <description>Resolves data access for web application assets</description>
            <class>org.alfresco.web.framework.resource.AlfrescoWebProjectResourceResolver</class>
            
            <!– Defines the web alias for deployed web assets
            <alias-uri>/assets</alias-uri>
            –>
            
            <!– Defines the store to which we should bind
            <store-id>uzi11</store-id>
            –>
            
         </resource-resolver>
         <resource-resolver>
            <id>space</id>
            <name>Alfresco Space Resource Resolver</name>
            <description>Resolves data access for alfresco spaces content</description>
            <class>org.alfresco.web.framework.resource.AlfrescoSpaceResourceResolver</class>
         </resource-resolver>
         <resource-resolver>
            <id>site</id>
            <name>Alfresco Site Resource Resolver</name>
            <description>Resolves data access for alfresco sites content</description>
            <class>org.alfresco.web.framework.resource.AlfrescoSiteResourceResolver</class>
         </resource-resolver>
         <resource-resolver>
            <id>uri</id>
            <name>URI Resource Resolver</name>
            <description>Resolves data access for uris</description>
            <class>org.alfresco.web.framework.resource.URIResourceResolver</class>
         </resource-resolver>

         <!– Error Handler Pages –>
         <error-handler>
            <id>page-error</id>
            <processor-id>jsp</processor-id>
            <jsp-path>/core/page-error.jsp</jsp-path>            
         </error-handler>
         <error-handler>
            <id>component-error</id>
            <processor-id>jsp</processor-id>
            <jsp-path>/core/component-error.jsp</jsp-path>            
         </error-handler>
         <error-handler>
            <id>region-error</id>
            <processor-id>jsp</processor-id>
            <jsp-path>/core/region-error.jsp</jsp-path>            
         </error-handler>
         <error-handler>
            <id>region-nocomponent</id>
            <processor-id>jsp</processor-id>
            <jsp-path>/core/region-nocomponent.jsp</jsp-path>            
         </error-handler>
         <error-handler>
            <id>template-error</id>
            <processor-id>jsp</processor-id>
            <jsp-path>/core/template-error.jsp</jsp-path>            
         </error-handler>

         <!– System Pages –>
         <system-page>
            <id>page-getting-started</id>
            <processor-id>jsp</processor-id>
            <jsp-path>/core/page-gettingstarted.jsp</jsp-path>            
         </system-page>
         <system-page>
            <id>page-unconfigured</id>
            <processor-id>jsp</processor-id>>
            <jsp-path>/core/page-unconfigured.jsp</jsp-path>
         </system-page>
         <system-page>
            <id>page-content-not-loaded</id>
            <processor-id>jsp</processor-id>
            <jsp-path>/core/content-not-loaded.jsp</jsp-path>            
         </system-page>
         <system-page>
            <id>page-content-association-missing</id>
            <processor-id>jsp</processor-id>
            <jsp-path>/core/content-association-missing.jsp</jsp-path>            
         </system-page>

         <!– Defaults –>
         <framework-defaults>
            <request-context>default</request-context>
            <format>default</format>
            <page-mapper>default</page-mapper>
            <link-builder>default</link-builder>
            <user-factory>default</user-factory>
         </framework-defaults>

         <!– Application Defaults –>
         <application-defaults>
            <theme>default</theme>
            <site-configuration>default.site.configuration</site-configuration>
            <region-chrome>default-region-chrome</region-chrome>
            <component-chrome>default-component-chrome</component-chrome>
         </application-defaults>

         <!– Debug –>
         <debug>
            <timer>false</timer>
         </debug>
         
         <!– Web Studio - inform Surf of its whereabouts –>
         <web-studio>
            <mode>disabled</mode>
            <location>${contextPath}/proxy/alfresco-web-studio</location>
         </web-studio>         

      </web-framework>

   </config>   
   
   <config evaluator="string-compare" condition="UriTemplate">
      <!– ordered list of URI Template mappings for application urls –>
      <!– anything not matched is assumed to be a direct uri mapping –>
      <!– generally these URLs are exposed via the Shortcut URL Servlet i.e. /s/* –>
      <uri-mappings>
         <!– simple sample/test uri mapping
         <uri-mapping>
            <uri-template>/sample/{page}</uri-template>
            <url-entry>/page/test/{page}</url-entry>
         </uri-mapping>
         –>
         <!– common reusable pages examples - not user configurable directly - although no reason why
              preferences couldn't be applied to components etc.
         <uri-mapping>
            <uri-template>/site/{site}/doclib</uri-template>
            <url-entry>/page/common/tools/documentlibrary?site={site}</url-entry>
         </uri-mapping>
         –>
         <!– simple mapping from a friendly url template to a similarly named url
         <uri-mapping>
            <uri-template>/site/{site}/dashboard</uri-template>
            <url-entry>/page/sites/{site}/dashboard</url-entry>
         </uri-mapping>
         –>
         <!– multiple friendly uri templates can map to a single url entry
         <uri-mapping>
            <uri-template>/user/{user}/home</uri-template>
            <uri-template>/user/{user}/mydashboard</uri-template>
            <url-entry>/page/users/{user}/dashboard</url-entry>
         </uri-mapping>
         –>
         <!– reusable user tool page - note the arbitrary url path suffix mapped to an argument
         <uri-mapping>
            <uri-template>/user/{user}/wiki/{path}</uri-template>
            <url-entry>/page/users/tools/wiki?user={user}&amp;article={path}</url-entry>
         </uri-mapping>
         –>
         <!– reusable user "tool" page
         <uri-mapping>
            <uri-template>/user/{user}/{tool}</uri-template>
            <url-entry>/page/users/tools/{tool}?user={user}</url-entry>
         </uri-mapping>
         –>
      </uri-mappings>
   </config>

</alfresco-config>
bertrandf
Active Member

Re: SURF - webscripts et accès au repository d'Alfresco

Serait-il possible d'avoir le contenu du fichier webscript-framework-config.xml et non celui du web-framework-config.xml svp.
cytrix
Member II

Re: SURF - webscripts et accès au repository d'Alfresco

Oups, effectivement ce n'était pas le bon. Voila le fichier :


<alfresco-config>

   <plug-ins>
      <element-readers>
         <element-reader element-name="server" class="org.alfresco.web.config.ServerElementReader"/>
       <element-reader element-name="remote" class="org.alfresco.web.config.RemoteConfigElementReader"/>
      </element-readers>
   </plug-ins>


   <config evaluator="string-compare" condition="Server">
      <server>
         <!– Enable and adjust the following settings to allow for external access URLs to the
              WebScript Framework - to return an externally accessable address for absolute url generation.
         <scheme>http</scheme>
         <hostname>localhost</hostname>
         <port>8080</port>
         <path>alfresco</path>
         –>
      </server>
   </config>


   <config evaluator="string-compare" condition="Remote">
      <remote>

         <!– Connector Implementations –>
         <connector>
            <id>http</id>
            <name>Simple Http Connector</name>
            <description>Simple HTTP Connector</description>
            <class>org.alfresco.connector.HttpConnector</class>
         </connector>

         <connector>
            <id>alfresco</id>
            <name>Alfresco Connector</name>
            <description>Connects to an Alfresco instance using ticket-based authentication</description>
            <class>org.alfresco.connector.AlfrescoConnector</class>
            <authenticator-id>alfresco-ticket</authenticator-id>
         </connector>

         <!– Authenticator Implementations –>
         <authenticator>
            <id>alfresco-ticket</id>
            <name>Alfresco Authenticator</name>
            <description>Alfresco Authenticator</description>
            <class>org.alfresco.connector.AlfrescoAuthenticator</class>
         </authenticator>

         <!– Endpoints –>
         <!– Example of a 'declared' identity endpoint configuration
         <endpoint>
            <id>alfresco-system</id>
            <name>Alfresco - System access</name>
            <description>System account access to Alfresco</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <identity>declared</identity>
            <username>admin</username>
            <password>admin</password>
            <unsecure>true</unsecure>
         </endpoint> –>

         <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>alfresco-php</id>
             <name>Alfresco - PHP servlet access</name>
             <description>Access to Alfresco Repository PHP servlet that require user authentication</description>
             <connector-id>alfresco</connector-id>
             <endpoint-url>http://localhost:8080/alfresco/php</endpoint-url>   
             <identity>user</identity>
            </endpoint>

         <!– The default endpoint –>
         <default-endpoint-id>alfresco</default-endpoint-id>

         <!– The default credential vault –>
         <default-credential-vault-provider-id>credential.vault.provider</default-credential-vault-provider-id>

      </remote>
   </config>

</alfresco-config>
bertrandf
Active Member

Re: SURF - webscripts et accès au repository d'Alfresco

J'ai testé votre WebScript avec le WAR (surf.war) du tutoriel de Ben Hagan et avec AuditSurf (application SURF) et je n'ai pas rencontré de problème.
J'arrive bien à récupérer les métadonnées du nodeRef.

Pourriez-vous montrer la déclaration du WebScript (fichier desc.xml) svp?
De quelle manière appelez-vous votre WebScript?


Merci.
cytrix
Member II

Re: SURF - webscripts et accès au repository d'Alfresco

Voila le fichier index.main.get.desc.xml :

<webscript>
   <shortname>Main</shortname>
   <description>Retourne la zone main de la page index</description>
   <url>/index/main</url>
</webscript>

Le fichier index.main.get.html.ftl :

<div id="contenu">${retour}</div>

Le fichier index.main.get.js :

var connector = remote.connect("alfresco");
var ticket = new String(connector.get("/api/login?u=admin&pw=admin"));
ticket = ticket.split("<ticket>")[1];
ticket = ticket.split("</ticket>")[0];

var retour = connector.get("/api/metadata?alf_ticket=" + ticket + "&nodeRef=workspace://SpacesStore/9249f830-3a91-4634-a970-ff25b9ac50cd");
model.retour = retour;

Ma page index qui appelle le webscript ci-dessus :
index.xml :

<?xml version='1.0' encoding='UTF-8'?>
<page>
   <id>home</id>
   <title>Sample home page</title>
   <template-instance>index</template-instance>
   <authentication>none</authentication>
</page>

index.ftl :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
   <meta name="author" content="Luka Cvrk - www.solucija.com" />
   <meta name="description" content="Site Description" />
   <meta name="keywords" content="site, keywords" />
   <meta name="robots" content="index, follow" />
   <link rel="stylesheet" type="text/css" media="screen" href="${url.context}/css/style.css" />
   <title>Internet Encyclopedia &minus;  Free Template by Solucija.com</title>
   <script type='text/javascript' src='${url.context}/js/jquery-1.3.2.min.js'></script>
   <script>
      $(document).ready(function(){
      //   var connector = remote.connect("alfresco");
      });
   </script>
</head>
<body>
   
   <div class="wrap background">
      <@region id="header" scope="global" />
      <@region id="main" scope="page" />
   </div>   
   <@region id="footer" scope="global" />
   
</body>
</html>

Je pense que le problème vient du fait que sur la version actuelle de SURF sur SVN, la page login (incluse par défaut dans SURF) plante.
Et dans la configuration de ma page index.xml, je devrais plutôt mettre un mode d'authentification "user" et ne pas créer de ticket alfresco dans le fichier index.main.get.js. Ca paraît logique, mais impossible de tester ça à cause de la page login qui plante  Smiley Indifferent .
cytrix
Member II

Re: SURF - webscripts et accès au repository d'Alfresco

Bon ben il y a effectivement une erreur dans la page login.ftl récupérée sur SVN :

Ligne 34, il faut changer :
<@link pageType='login'/>

par :
<@pagelink pageType='login'/>

https://issues.alfresco.com/jira/browse/ALFCOM-3447

Par contre, la page s'affiche mais l'authentification ne marche toujours pas … à suivre.