assemblyline-service-client 4.5.1.dev93__py3-none-any.whl → 4.5.1.dev94__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of assemblyline-service-client might be problematic. Click here for more details.

@@ -1 +1 @@
1
- 4.5.1.dev93
1
+ 4.5.1.dev94
@@ -439,8 +439,13 @@ class TaskHandler(ServerBase):
439
439
  with open(file_info['path'], 'rb') as fh:
440
440
  # Upload the file requested by service server
441
441
  self.log.info(f"[{task.sid}] Uploading file {file_info['path']} [{file_info['sha256']}]")
442
- self.request_with_retries('put', self._path('file'), files=dict(file=fh), headers=headers,
443
- timeout=FILE_REQUEST_TIMEOUT)
442
+ try:
443
+ self.request_with_retries('put', self._path('file'), files=dict(file=fh),
444
+ headers=headers,timeout=FILE_REQUEST_TIMEOUT)
445
+ except ServiceServerException as e:
446
+ if "does not match expected file hash" in str(e):
447
+ self.log.warning(f"File upload of '{file_info['path']}' failed.")
448
+ raise
444
449
 
445
450
  data['freshen'] = False
446
451
  r = self.request_with_retries('post', self._path('task'), json=data, timeout=TASK_REQUEST_TIMEOUT)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: assemblyline-service-client
3
- Version: 4.5.1.dev93
3
+ Version: 4.5.1.dev94
4
4
  Summary: Assemblyline 4 - Service client
5
5
  Home-page: https://github.com/CybercentreCanada/assemblyline-service-client/
6
6
  Author: CCCS Assemblyline development team
@@ -0,0 +1,8 @@
1
+ assemblyline_service_client/VERSION,sha256=Q8x9DlxKf8FOY8Q5vV_cD68TuE8Yhnvdqry611XBSqY,12
2
+ assemblyline_service_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ assemblyline_service_client/task_handler.py,sha256=U6OmqDSbBY9p-JccwdFImZ436McK_PK-A5Pl6d54Kko,23233
4
+ assemblyline_service_client-4.5.1.dev94.dist-info/LICENCE.md,sha256=NSkYo9EH8h5oOkzg4VhjAHF4339MqPP2cQ8msTPgl-c,1396
5
+ assemblyline_service_client-4.5.1.dev94.dist-info/METADATA,sha256=opjQGjjr54fCy60NrNSmkezSsj3N6E06RpVimDIqGHI,1577
6
+ assemblyline_service_client-4.5.1.dev94.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
7
+ assemblyline_service_client-4.5.1.dev94.dist-info/top_level.txt,sha256=clNWHvn8nw0kR15l5TASxWxIQvKGKe5Pso3kVPMiJv0,28
8
+ assemblyline_service_client-4.5.1.dev94.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- assemblyline_service_client/VERSION,sha256=G9pBMQfRxZ-eeKDX_TxdkLhDvwbvQLuRw3bfiEq6Zo8,12
2
- assemblyline_service_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- assemblyline_service_client/task_handler.py,sha256=uJuYbd5tU1DlJXy7f0CjL0912x-Mvw1U4rOB2IiIV48,22907
4
- assemblyline_service_client-4.5.1.dev93.dist-info/LICENCE.md,sha256=NSkYo9EH8h5oOkzg4VhjAHF4339MqPP2cQ8msTPgl-c,1396
5
- assemblyline_service_client-4.5.1.dev93.dist-info/METADATA,sha256=ILHXAMHYhKPxUClL6Xl28hWl_9Oll6C5ntyuOCtoXNM,1577
6
- assemblyline_service_client-4.5.1.dev93.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
7
- assemblyline_service_client-4.5.1.dev93.dist-info/top_level.txt,sha256=clNWHvn8nw0kR15l5TASxWxIQvKGKe5Pso3kVPMiJv0,28
8
- assemblyline_service_client-4.5.1.dev93.dist-info/RECORD,,