Bonjour,je veux mettre en place la fonction d'audit sur la version suivante :Community - v4.0.0 (4003)Pour cela, je rajoute les lignes suivantes :
audit.enabled=true
audit.alfresco-access.enabled=true
dans le fichier alfresco-global.propertiesEnsuite j'ajoute un contenu (Document texte.txt) à la racineL'audit fonctionne correctement, j'ai ce résultat :
{
"id":15,
"application":"alfresco-access",
"user":"Utilisateur",
"time":"2012-07-03T15:46:27.197+02:00",
"values":
{
"\/alfresco-access\/transaction\/action":"CREATE"
,"\/alfresco-access\/transaction\/aspects\/add":"[{http:\/\/www.alfresco.org\/model\/content\/1.0}a
uditable, {http:\/\/www.alfresco.org\/model\/system\/1.0}referenceable, {http:\/\/www.alfresco.org\/model\/content\/1.0}
titled, {http:\/\/www.alfresco.org\/model\/content\/1.0}author, {http:\/\/www.alfresco.org\/model\/system\/1.0}localized
, {http:\/\/www.alfresco.org\/model\/application\/1.0}inlineeditable]"
,"\/alfresco-access\/transaction\/user":"Utilisateur"
,"\/alfresco-access\/transaction\/path":"\/app:company_home\/cm:Document texte.txt"
,"\/alfresco-access\/transaction\/type":"cm:content"
,"\/alfresco-access\/transaction\/sub-actions":"addNodeAspect createNode updateNodeProperties creat
eContent readContent"
,"\/alfresco-access\/transaction\/properties\/add":"{{http:\/\/www.alfresco.org\/model\/content\/1.
0}name=Document texte.txt, {http:\/\/www.alfresco.org\/model\/system\/1.0}node-dbid=1403, {http:\/\/www.alfresco.org\/mo
del\/system\/1.0}store-identifier=SpacesStore, {http:\/\/www.alfresco.org\/model\/system\/1.0}locale=fr_FR, {http:\/\/ww
w.alfresco.org\/model\/content\/1.0}content=contentUrl=store:\/\/2012\/7\/3\/15\/46\/9bab2a5e-cdbb-4295-913c-1ab08d9774c
d.bin|mimetype=text\/plain|size=0|encoding=UTF-32LE|locale=fr_FR_|id=224, {http:\/\/www.alfresco.org\/model\/content\/1.
0}title={fr=Document texte.txt}, {http:\/\/www.alfresco.org\/model\/system\/1.0}node-uuid=e792f72f-a2d7-43a7-aa75-d6bdfe
8095d2, {http:\/\/www.alfresco.org\/model\/content\/1.0}author=null, {http:\/\/www.alfresco.org\/model\/content\/1.0}mod
ified=Tue Jul 03 15:46:27 CEST 2012, {http:\/\/www.alfresco.org\/model\/application\/1.0}editInline=true, {http:\/\/www.
alfresco.org\/model\/content\/1.0}created=Tue Jul 03 15:46:27 CEST 2012, {http:\/\/www.alfresco.org\/model\/system\/1.0}
store-protocol=workspace, {http:\/\/www.alfresco.org\/model\/content\/1.0}creator=Utilisateur, {http:\/\/www.alfresco.org\
/model\/content\/1.0}description={fr=null}, {http:\/\/www.alfresco.org\/model\/content\/1.0}modifier=Utilisateur}"
}
},
{
"id":16,
"application":"alfresco-access",
"user":"Utilisateur",
"time":"2012-07-03T15:46:29.974+02:00",
"values":
{
"\/alfresco-access\/transaction\/action":"updateNodeProperties"
,"\/alfresco-access\/transaction\/user":"Utilisateur"
,"\/alfresco-access\/transaction\/path":"\/app:company_home\/cm:Document texte.txt"
,"\/alfresco-access\/transaction\/properties\/to":"{{http:\/\/www.alfresco.org\/model\/content\/1.0
}modified=Tue Jul 03 15:46:29 CEST 2012, {http:\/\/www.alfresco.org\/model\/content\/1.0}author=, {http:\/\/www.alfresco
.org\/model\/content\/1.0}description={fr=}}"
,"\/alfresco-access\/transaction\/properties\/from":"{{http:\/\/www.alfresco.org\/model\/content\/1
.0}modified=Tue Jul 03 15:46:27 CEST 2012, {http:\/\/www.alfresco.org\/model\/content\/1.0}author=null, {http:\/\/www.al
fresco.org\/model\/content\/1.0}description={fr=null}}"
,"\/alfresco-access\/transaction\/type":"cm:content"
,"\/alfresco-access\/transaction\/sub-actions":"updateNodeProperties readContent"
}
},
avec la commande suivante :
curl -u Utilisateur:mdp http://localhost:8080/alfresco/service/api/audit/query/Alfresco-access?verbose=true
Ensuite, je vais sur les détails de mon document, et j'applique la vue personnalisée 'show_audit.ftl'Mon problème, c'est que cette vue ne renvoie aucune information d'audit :[img]http://1.bp.blogspot.com/-5dwLyM7RQZU/T_L9UYFlUcI/AAAAAAAAABg/fcsXu-Jztro/s320/audit.jpg[/img]Et ma question ; Qu'est-ce que j'ai oublié … ???