assemblyline-v4-service 4.6.1.dev13__py3-none-any.whl → 4.6.1.dev16__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-v4-service might be problematic. Click here for more details.

@@ -1 +1 @@
1
- 4.6.1.dev13
1
+ 4.6.1.dev16
@@ -80,14 +80,14 @@ def __extract_passwords_from_lines(texts, password_word, password_regex):
80
80
  password_keyword = f"{password_word}:"
81
81
  for line in texts:
82
82
  if password_keyword in line.lower():
83
- new_passwords = re.split(password_regex, line)
83
+ new_passwords = set(re.split(password_regex, line))
84
84
  index = line.lower().rindex(password_keyword)
85
85
  if index > 0 and line[index - 1] != " ":
86
86
  special_char = line[index - 1]
87
87
  if special_char in BRACKET_PAIRS:
88
88
  special_char = BRACKET_PAIRS[special_char]
89
- for password in new_passwords:
90
- new_passwords.extend([password[:i] for i, ltr in enumerate(password) if ltr == special_char])
89
+ for password in list(new_passwords):
90
+ new_passwords.update(set([password[:i] for i, ltr in enumerate(password) if ltr == special_char]))
91
91
 
92
92
  new_passwords = set(new_passwords)
93
93
  new_passwords.discard("")
@@ -121,7 +121,8 @@ def _is_dev_mode() -> bool:
121
121
  stack_trace.seek(0)
122
122
  read_stack_trace = stack_trace.read()
123
123
 
124
- if any(msg in read_stack_trace for msg in ['run_service_once', 'pytest', 'assemblyline_v4_service.testing.helper']):
124
+ if any(msg in read_stack_trace
125
+ for msg in ['run_service_once', 'pytest', 'assemblyline_v4_service.testing.helper']):
125
126
  return True
126
127
 
127
128
  return False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: assemblyline-v4-service
3
- Version: 4.6.1.dev13
3
+ Version: 4.6.1.dev16
4
4
  Summary: Assemblyline 4 - Service base
5
5
  Home-page: https://github.com/CybercentreCanada/assemblyline-v4-service/
6
6
  Author: CCCS Assemblyline development team
@@ -1,4 +1,4 @@
1
- assemblyline_v4_service/VERSION,sha256=iCVdOoH4pcrLmJC5_kq9zbRc7AAs7a2DGbBwtKL22p4,12
1
+ assemblyline_v4_service/VERSION,sha256=YW7dQLQWBMufAPDn_hJcYIbA5DbXzSLu6Zi8cX7RhWQ,12
2
2
  assemblyline_v4_service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  assemblyline_v4_service/healthz.py,sha256=3QGBg0EZuXC6UN411HFwpLNEop9UvS9feFhvBUTP-k4,1576
4
4
  assemblyline_v4_service/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -13,7 +13,7 @@ assemblyline_v4_service/common/ontology_helper.py,sha256=9Ad81qbddg_pRMupT8o_Kzx
13
13
  assemblyline_v4_service/common/request.py,sha256=W7fqC2xQE3i5i2jlCDyUDp3ZqJQQqSshNW0mQfJMkFg,11792
14
14
  assemblyline_v4_service/common/result.py,sha256=9AqM6qCYiia_Bpyn_fBFhzNQMcqJbtFSiGjp57fXW2E,32713
15
15
  assemblyline_v4_service/common/task.py,sha256=dJsvRpW0x88CCF_LW6w87jQ_UKTVaOs2Gb117IDNiU8,14233
16
- assemblyline_v4_service/common/utils.py,sha256=k2__d-V5LjB6o2IKbjVe7tJWKcKuUHto5TyT5oKhIa0,3890
16
+ assemblyline_v4_service/common/utils.py,sha256=XninwdVUJZSfD8fXv6wzie-IZWDl1rpjpGboham-xHg,3921
17
17
  assemblyline_v4_service/dev/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  assemblyline_v4_service/dev/run_service_once.py,sha256=W9kR49IUbkt8tNXjCT40ZMh-8p5W_odxlkDx6nhTAYM,10656
19
19
  assemblyline_v4_service/dev/updater.py,sha256=b-FK6XPRZbETbl-SIYEhnYGT-W7EcQhnxwD6x2NMC7g,6411
@@ -24,7 +24,7 @@ assemblyline_v4_service/updater/client.py,sha256=tLY84gaGdFBVIDaMgRHIEa7x2S8jBl7
24
24
  assemblyline_v4_service/updater/gunicorn_config.py,sha256=p3j2KPBeD5jvMw9O5i7vAtlRgPSVVxIG9AO0DfN82J8,1247
25
25
  assemblyline_v4_service/updater/helper.py,sha256=Zy6OBmbTh0YurW0MnM0wM92vaKYMbo_MKnafe_5ONUI,10034
26
26
  assemblyline_v4_service/updater/updater.py,sha256=kli-5v1uVmk2FARAI9DsZ9YM4EhgirkmWJaMJWdm9GI,31795
27
- assemblyline_v4_service-4.6.1.dev13.dist-info/licenses/LICENCE.md,sha256=NSkYo9EH8h5oOkzg4VhjAHF4339MqPP2cQ8msTPgl-c,1396
27
+ assemblyline_v4_service-4.6.1.dev16.dist-info/licenses/LICENCE.md,sha256=NSkYo9EH8h5oOkzg4VhjAHF4339MqPP2cQ8msTPgl-c,1396
28
28
  test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  test/conftest.py,sha256=W3SieQpZsZpGEmtLqY4aIlxREDSsHceyCrFcFsWUM0U,1851
30
30
  test/test_healthz.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
@@ -40,7 +40,7 @@ test/test_common/test_request.py,sha256=Ceyds8BNO1O0f1kH1VEb84faJcaupvSjVKIrGdHe
40
40
  test/test_common/test_result.py,sha256=6BiOKxEPrKBjOY44jv3TY-yiXm0qI1ok_CZBnjP9TM4,45447
41
41
  test/test_common/test_task.py,sha256=P44mNcSe-3tJgDk9ppN3KbM7oN4LBVIuhONG-Gveh74,19007
42
42
  test/test_common/test_utils.py,sha256=TbnBxqpS_ZC5ptXR9XJX3xtbItD0mTbtiBxxdyP8J5k,5904
43
- assemblyline_v4_service-4.6.1.dev13.dist-info/METADATA,sha256=lHen9-8jpMpOAPOP-vFDvi_acOzOv5yNJjxKvi7YgxA,5624
44
- assemblyline_v4_service-4.6.1.dev13.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
45
- assemblyline_v4_service-4.6.1.dev13.dist-info/top_level.txt,sha256=LpTOEaVCatkrvbVq3EZseMSIa2PQZU-2rhuO_FTpZgY,29
46
- assemblyline_v4_service-4.6.1.dev13.dist-info/RECORD,,
43
+ assemblyline_v4_service-4.6.1.dev16.dist-info/METADATA,sha256=OY27EljplCteNTkvZN5gAWpM_J87Ezr8p66PSdmNJh0,5624
44
+ assemblyline_v4_service-4.6.1.dev16.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
45
+ assemblyline_v4_service-4.6.1.dev16.dist-info/top_level.txt,sha256=LpTOEaVCatkrvbVq3EZseMSIa2PQZU-2rhuO_FTpZgY,29
46
+ assemblyline_v4_service-4.6.1.dev16.dist-info/RECORD,,