-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Assets - Core experiences, Assets - Import
-
1
Problem Definition
Currently insight_objectschema_export.log/insight_objectschema_import.log doesn't record which Insight admin user performed an object schema import/export in the logs.
2023-11-15 15:07:15,956 [http-nio-8080-exec-30] | Resource: Export object schema to server, in data: com.riadalabs.jira.plugins.insight.channel.web.api.rest.model.imports.schema.ExportObjectSchemaInEntry@445e7bc7[fileName=asdsadasd.zip,objectSchemaId=1,objectSchemaName=sdasdsad,includeObjects=true,totalObjectsInExport=0] 2023-11-15 15:07:16,047 [http-nio-8080-exec-30] | Start exporting schema to server, indata: com.riadalabs.jira.plugins.insight.services.imports.model.schema.ExportObjectSchemaDataBean@5cd73afd[fileName=asdsadasd.zip,id=1,name=sdasdsad,password=<null>,includeObjects=true,totalObjectsInExport=0,progressId=<null>,type=<null>,id=<null>,started=<null>,ended=<null>,executedType=<null>,executedAsUserKey=<null>,objectSchemaId=<null>,numberOfWorkers=<null>,result=<null>,status=<null>,infoMessage=<null>] 2023-11-15 15:07:16,047 [http-nio-8080-exec-30] | Start getting not-taken export zip file name: asdsadasd.zip 2023-11-15 15:07:16,047 [http-nio-8080-exec-30] | Done getting not-taken export zip, use provided file name: asdsadasd.zip 2023-11-15 15:07:16,049 [http-nio-8080-exec-30] | Start exporting schema for object schema id: 1 2023-11-15 15:07:16,123 [http-nio-8080-exec-30] | Number of Reference types to export: 33 2023-11-15 15:07:16,123 [http-nio-8080-exec-30] | Number of Status types to export: 7 2023-11-15 15:07:16,175 [http-nio-8080-exec-30] | Number of Icons to export: 213 2023-11-15 15:07:16,342 [http-nio-8080-exec-30] | Done exporting schema for object schema id: 1 2023-11-15 15:07:16,343 [http-nio-8080-exec-30] | Start exporting details, object schema id: 1 2023-11-15 15:07:16,343 [http-nio-8080-exec-30] | Done exporting details, object schema id: 1 2023-11-15 15:07:16,344 [http-nio-8080-exec-30] | Start writing all data to export zipFile: asdsadasd.zip 2023-11-15 15:07:16,344 [http-nio-8080-exec-30] | Write to export zipFile: /var/atlassian/application-data/jira/export/insight/asdsadasd.zip 2023-11-15 15:07:16,344 [http-nio-8080-exec-30] | Done writing all data to export zipFile: /var/atlassian/application-data/jira/export/insight/asdsadasd.zip 2023-11-15 15:07:16,345 [http-nio-8080-exec-30] | Wrote all exported data to zipfile: /var/atlassian/application-data/jira/export/insight/asdsadasd.zip 2023-11-15 15:07:16,345 [http-nio-8080-exec-30] | Done exporting schema to server, indata: com.riadalabs.jira.plugins.insight.services.imports.model.schema.ExportObjectSchemaDataBean@5cd73afd[fileName=asdsadasd.zip,id=1,name=sdasdsad,password=<null>,includeObjects=true,totalObjectsInExport=0,progressId=<null>,type=<null>,id=<null>,started=<null>,ended=<null>,executedType=<null>,executedAsUserKey=<null>,objectSchemaId=<null>,numberOfWorkers=<null>,result=<null>,status=<null>,infoMessage=<null>] 2023-11-15 15:07:16,377 [http-nio-8080-exec-30] | Resource: Done with Export object schema (no objects), id: 1, export zip file name: asdsadasd.zip
Suggested Solution
Add the user running the thread in the logs to clearly identify which Insight admin performed the action.
Workaround
As an alternative/workaround - you can use the Tomcat Access Logs and look for requests like: /rest/insight/1.0/objectschemaexport/export or /rest/insight/1.0/objectschemaexport/import for some level of accountability:
X.X.X.X 907x243x1 <USERNAME> [15/Nov/2023:15:07:16 +0000] "POST /jira/rest/insight/1.0/objectschemaexport/export/server HTTP/1.1" 200 200 432 "https://<JIRA-URL>/secure/InsightConfigure.jspa?tab=imports&key=ObjectSchemaExport" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "uiz2qe"
- links to