[WebScript] error sur exemple simple

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

[WebScript] error sur exemple simple

Bonjour,

Je suis en ALFRESCO 3.4
J'essaye de comprendre les Web Script en utilisant la documentation Alfresco
Sur l'exemple simple suivant :
hellouser.get.desc.xml
<webscript>
  <shortname>Hello User</shortname>
  <description>xxxxxxxxxxxxx</description>
  <url>/hellouser</url>
  <authentification>user</authentification>
  <negotiate accept="text/html">html</negociate>
  <negotiate accept="application/json">json</negociate>
</webscript>
hellouser.get.html.ftl
Hello ${person.properties.userName}

L'enregistrement 'Refresh Web Script' : est OK
Le test : http://localhost:9090/alfresco/service/hellouser :
Web Script Status 500 - Internal Error

The Web Script /alfresco/service/hellouser has responded with a status of 500 - Internal Error.

500 Description:   An error inside the HTTP server which prevented it from fulfilling the request.

Message:   08300009 Wrapped Exception (with status template): 08300005 Erreur lors du traitement du modèle 'Expression person is undefined on line 1, column 9 in org/hellouser.get.html.ftl.'. Veuillez contacter votre administrateur système.


Si quelqu'un a déjà rencontré et résolu ce problème, je suis preneur

Merci
1 Reply
jayjayecl
Active Member II

Re: [WebScript] error sur exemple simple

Bonjour,

êtes-vous connecté à Alfresco lorsque vous appelez le webscript ? Sinon, avez-vous une popup d'authentification qui s'affiche ?
Par ailleurs, pourriez-vous préciser ou vous avez livré/déposé ces fichiers custom ?
Merci