Skip to content

Commit

Permalink
fixed static failures
Browse files Browse the repository at this point in the history
  • Loading branch information
dhwanis-crest committed Jan 1, 2024
1 parent ccc759a commit ff6b597
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 20 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright (c) 2016-2023 Splunk Inc.
Copyright (c) 2016-2024 Splunk Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
7 changes: 1 addition & 6 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Splunk SOAR Phantom
Copyright (c) 2016-2022 Splunk Inc.
Copyright (c) 2016-2024 Splunk Inc.

Third-party Software Attributions:

Expand All @@ -14,8 +14,3 @@ Library: python-magic
Version: 0.4.18
License: MIT
Copyright 2001-2014 Adam Hupp

Library: requests
Version: 2.25.0
License: Apache 2.0
Kenneth Reitz
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File: __init__.py
#
# Copyright (c) 2016-2023 Splunk Inc.
# Copyright (c) 2016-2024 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion manual_readme_content.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[comment]: # " File: README.md"
[comment]: # " Copyright (c) 2016-2023 Splunk Inc."
[comment]: # " Copyright (c) 2016-2024 Splunk Inc."
[comment]: # ""
[comment]: # "Licensed under the Apache License, Version 2.0 (the 'License');"
[comment]: # "you may not use this file except in compliance with the License."
Expand Down
2 changes: 1 addition & 1 deletion phantom.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"product_version_regex": ".*",
"min_phantom_version": "5.2.0",
"fips_compliant": true,
"license": "Copyright (c) 2016-2023 Splunk Inc.",
"license": "Copyright (c) 2016-2024 Splunk Inc.",
"logo": "logo_splunk.svg",
"contributors": [
{
Expand Down
12 changes: 6 additions & 6 deletions phantom_connector.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File: phantom_connector.py
#
# Copyright (c) 2016-2023 Splunk Inc.
# Copyright (c) 2016-2024 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -746,9 +746,9 @@ def _add_file_to_vault(self, action_result, data_stream, file_name, recursive, c
with open(save_path, 'wb') as uncompressed_file:
uncompressed_file.write(data_stream)
except IOError as e:
error_msg = self._get_error_message_from_exception(e)
error_message = self._get_error_message_from_exception(e)
try:
if "File name too long" in error_msg:
if "File name too long" in error_message:
new_file_name = "ph_long_file_name_{}{}".format(self._level, random_suffix)
save_path = os.path.join(vault_tmp_dir, new_file_name)
self.debug_print("Original filename: {}".format(file_name))
Expand Down Expand Up @@ -897,9 +897,9 @@ def _extract_file(self, action_result, file_path, file_name, recursive, containe
if phantom.is_fail(ret_val):
return ret_val
except Exception as e:
error_msg = self._get_error_message_from_exception(e)
error_msg = error_msg.replace(compressed_file, file_name)
return action_result.set_status(phantom.APP_ERROR, "Unable to open the zip file: {}. {}".format(file_path, error_msg))
error_message = self._get_error_message_from_exception(e)
error_message = error_message.replace(compressed_file, file_name)
return action_result.set_status(phantom.APP_ERROR, "Unable to open the zip file: {}. {}".format(file_path, error_message))

return (phantom.APP_SUCCESS)

Expand Down
2 changes: 1 addition & 1 deletion phantom_consts.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File: phantom_consts.py
#
# Copyright (c) 2016-2023 Splunk Inc.
# Copyright (c) 2016-2024 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion phantom_multiple_actions.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% block widget_content %} <!-- Main Start Block -->

<!-- File: phantom_multiple_actions.html
Copyright (c) 2016-2023 Splunk Inc.
Copyright (c) 2016-2024 Splunk Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion phantom_views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File: phantom_views.py
#
# Copyright (c) 2016-2023 Splunk Inc.
# Copyright (c) 2016-2024 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion release_notes/unreleased.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
**Unreleased**
* Updated requests dependencies in order to use platform packages [PAPP-30822]
* Updated requests and certifi dependencies in order to use platform packages [PAPP-30822,PAPP-31096]

0 comments on commit ff6b597

Please sign in to comment.