ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

app-access.log not registering download/delete of attachment in Modern UX

book

Article ID: 237829

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

In Classic UX, when an attachment is downloaded from an object instance, the action is registered in the app-access.log.

Example logs:

x.x.x.x|[24/Mar/2022:09:37:11 -0700]|GET /niku/ui/uitk/images/s.gif HTTP/1.1|200|43|1|15255986__66717227-9BA2-4BEA-B70A-8610A30E03D6
x.x.x.x|[24/Mar/2022:09:37:21 -0700]|GET /niku/app?action=union.viewODFFile&fileId=6112556&versionId=6112557&odf_pk=5146155&objectType=wsd_document&filedownload=filedownload&RhXm0r7tSeUqEr=true HTTP/1.1|200|17903|24|15255986__66717227-9BA2-4BEA-B70A-8610A30E03D6
x.x.x.x|[24/Mar/2022:09:37:26 -0700]|GET /ppm/rest/v1/private/unreadPushNotificationsCount?_cb=1648139846892 HTTP/1.1|200|122|5|15256002__CD78FCA7-620A-4DAB-9373-3BBB403A0A45
x.x.x.x|[24/Mar/2022:09:37:37 -0700]|GET /ppm/rest/v1/private/unreadPushNotificationsCount?_cb=1648139857885 HTTP/1.1|200|122|4|15256002__CD78FCA7-620A-4DAB-9373-3BBB403A0A45

x.x.x.x|[24/Mar/2022:09:08:59 -0700]|POST /niku/nu?uitk.vxml.form=1&action=odf.removeObjectDocument&removeFileId=6112530&removeVersionId=6112531&odf_pk=5146155&objectType=wsd_document&return_url=%2Fapp%3Faction%3Dodf.wsd_documentProperties%26odf_view%3Dwsd_document.WSD_Document_Attachments%26odf_code%3Dwsd_document%26id%3D5146155&uitk.session.uuid=8d0886d9-ca67-4d77-9840-c26f660fe1c7&uitk.navigation.location=Workspace&uitk.navigation.parent.location=Workspace&uitk.navigation.last.workspace.action=odf.wsd_documentProperties HTTP/1.1|200|8097|717|15255986__66717227-9BA2-4BEA-B70A-8610A30E03D6
x.x.x.x|[24/Mar/2022:09:09:00 -0700]|GET /niku/ui/uitk/images/s.gif HTTP/1.1|200|43|0|15255986__66717227-9BA2-4BEA-B70A-8610A30E03D6
x.x.x.x|[24/Mar/2022:09:09:02 -0700]|POST 

The same does not occur in Modern UX.

Steps to Reproduce

  1. Create an attachment attribute for any object (e.g.: Project object).
  2. Upload a file to any object instance.
  3. In the Classic UX, download (or delete) the attachment.
  4. The action is registered in the app-access.log.
  5. In the Modern UX, download (or delete) the same attachment.

Expected Results: The action is registered in the app-access.log.

Actual Results: The action is not registered in the app-access.log.

Cause

These actions are indeed recorded in the app-access.log, but as the Modern UX uses the REST API, they look different.

Environment

Release : 16.0.1

Component : Clarity Security Integration

Resolution

Some examples of how these are logged:

x.x.x.x|[28/Mar/2022:04:58:49 -0400]|GET /ppm/rest/v1/virtual/attachments/eyJhdHRyaWJ1dGVDb2RlIjoiYXR0YWNobWVudCIsInJlc291cmNlSWQiOjUwMDAwMDEsInZlcnNpb25JZCI6NTA2MTE0MCwicmVzb3VyY2VOYW1lIjoibWJfY3VzdG9tIiwiZmlsZUlkIjo1MDYxMTM5fQ HTTP/1.1|200|24|93|5431647__82FD1965-676D-4349-812D-9A8BF43954E2

x.x.x.x|[28/Mar/2022:05:00:33 -0400]|DELETE /ppm/rest/v1/virtual/attachments/eyJhdHRyaWJ1dGVDb2RlIjoiYXR0YWNobWVudCIsInJlc291cmNlSWQiOjUwMDAwMDEsInZlcnNpb25JZCI6NTA2MTE0MCwicmVzb3VyY2VOYW1lIjoibWJfY3VzdG9tIiwiZmlsZUlkIjo1MDYxMTM5fQ HTTP/1.1|200|-|203|5431647__82FD1965-676D-4349-812D-9A8BF43954E2