[ALF-15739] Audit trail does not show login and logout events from Webservice Client Created: 29-Aug-12  Updated: 22-Jan-16  Resolved: 29-Aug-12

Status: Closed
Project: Alfresco
Component/s: Auditing
Affects Version/s: 4.0.e Community
Fix Version/s: None
Security Level: external (External user)

Type: Bug Priority: Major
Reporter: Aniruddh Chitre (Inactive) Assignee: Closed Issues
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7


Issue Links:
Dependency
Duplicate
duplicates MNT-6206 Audit trail does not show user login ... Closed
Date of First Response:
Resolution Time Custom Field: 15 minutes, 34 seconds

 Description   

Steps:
1. Installed Alfresco Community 4.0.e
2. Enabled auditing by adding the following in alfresco-global.properties
audit.enabled=true
audit.alfresco-access.enabled=true
3. Start the server
4. Login to Alfresco Explorer
5. Verify auditing is enabled with

curl -u admin:admin http://localhost:9080/alfresco/service/api/audit/contol

Below output is shown, as expected
{
"enabled" : true,
"applications":
[

{ "name": "Alfresco Tagging Service", "path" : "/tagging", "enabled" : true }

,

{ "name": "alfresco-access", "path" : "/alfresco-access", "enabled" : true }

]
}

6. Run the FirstWebServiceClient sample from the SDK
7. Now check the audit entries using

curl http://localhost:9080/alfresco/service/api/audit/query/alfresco-access?verbose=true

Following is the output

{
"count":4,
"entries":
[
{
"id":1,
"application":"alfresco-access",
"user":"admin",
"time":"2012-08-29T18:40:14.994+05:30",
"values":

{ "\/alfresco-access\/logout\/user":"admin" }

},
{
"id":2,
"application":"alfresco-access",
"user":"guest",
"time":"2012-08-29T18:49:12.719+05:30",
"values":

{ "\/alfresco-access\/logout\/user":"guest" }

},
{
"id":3,
"application":"alfresco-access",
"user":"admin",
"time":"2012-08-29T19:01:02.058+05:30",
"values":
{
"\/alfresco-access\/transaction\/action":"CREATE"
,"\/alfresco-access\/transaction\/aspects\/add":"[

{http:\/\/www.alfresco.org\/model\/content\/1.0}

titled]"
,"\/alfresco-access\/transaction\/user":"admin"
,"\/alfresco-access\/transaction\/path":"\/app:company_home\/cm:Web Services sample (1346247061558)"
,"\/alfresco-access\/transaction\/type":"cm:content"
,"\/alfresco-access\/transaction\/sub-actions":"createNode updateNodeProperties addNodeAspect"
,"\/alfresco-access\/transaction\/properties\/add":"{{http:\/\/www.alfresco.org\/model\/content\/1.0}name=Web Services sample (1346247061558),

{http:\/\/www.alfresco.org\/model\/system\/1.0}

node-dbid=1147,

{http:\/\/www.alfresco.org\/model\/system\/1.0}

store-identifier=SpacesStore,

{http:\/\/www.alfresco.org\/model\/content\/1.0}

title=

{en_US=Web Services sample (1346247061558)}, {http:\/\/www.alfresco.org\/model\/content\/1.0}modified=Wed Aug 29 19:01:01 IST 2012, {http:\/\/www.alfresco.org\/model\/system\/1.0}node-uuid=e35ff536-7d8c-4e5b-a887-155d1c5e1e31, {http:\/\/www.alfresco.org\/model\/system\/1.0}locale=en_US, {http:\/\/www.alfresco.org\/model\/content\/1.0}created=Wed Aug 29 19:01:01 IST 2012, {http:\/\/www.alfresco.org\/model\/system\/1.0}store-protocol=workspace, {http:\/\/www.alfresco.org\/model\/content\/1.0}creator=admin, {http:\/\/www.alfresco.org\/model\/content\/1.0}description={en_US=Web Services sample (1346247061558)}

,

{http:\/\/www.alfresco.org\/model\/content\/1.0}

modifier=admin}"
}

},
{
"id":4,
"application":"alfresco-access",
"user":"admin",
"time":"2012-08-29T19:01:02.328+05:30",
"values":
{
"\/alfresco-access\/transaction\/action":"updateNodeProperties"
,"\/alfresco-access\/transaction\/user":"admin"
,"\/alfresco-access\/transaction\/path":"\/app:company_home\/cm:Web Services sample (1346247061558)"
,"\/alfresco-access\/transaction\/properties\/to":"{{http:\/\/www.alfresco.org\/model\/content\/1.0}modified=Wed Aug 29 19:01:02 IST 2012}"
,"\/alfresco-access\/transaction\/properties\/from":"{{http:\/\/www.alfresco.org\/model\/content\/1.0}modified=Wed Aug 29 19:01:01 IST 2012}"
,"\/alfresco-access\/transaction\/type":"cm:content"
,"\/alfresco-access\/transaction\/sub-actions":"updateNodeProperties createContent readContent"
,"\/alfresco-access\/transaction\/properties\/add":"{{http:\/\/www.alfresco.org\/model\/content\/1.0}content=contentUrl=store:\/\/2012\/8\/29\/19\/1\/a2a3103e-ba33-4a75-b45d-c039881e28e8.bin|mimetype=text\/plain|size=43|encoding=UTF-8|locale=en_US_|id=222}"
}

}
]
}

The audit log does not have any entry for login or logout events

I have tried the exact same steps on the trial version of Alfresco Enterprise 4.0.2.9 and observed the same behaviour as above.


Generated at Mon Feb 18 06:50:32 GMT 2019 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.