Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-15739

Audit trail does not show login and logout events from Webservice Client

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.0.e Community
    • Fix Version/s: None
    • Component/s: Auditing
    • Security Level: external (External user)
    • Labels:
      None
    • Environment:
      Windows 7
    • 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.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedissues Closed Issues
                  Reporter:
                  aniruddhc Aniruddh Chitre (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Date of First Response:

                    Structure Helper Panel