Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crowdstrike OpenAPI: Fixed the the cs-download-sensor-installer-by-id command #27655

Merged
merged 3 commits into from
Jun 25, 2023

Conversation

moishce
Copy link
Contributor

@moishce moishce commented Jun 22, 2023

…mand was not returned the file.

Contributing to Cortex XSOAR Content

Make sure to register your contribution by filling the contribution registration form

The Pull Request will be reviewed only after the contribution registration form is filled.

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

fixes: link to the issue

Description

  • Fixed an issue where the cs-download-sensor-installer-by-id command was not returned the file.

Screenshots

Paste here any images that will help the reviewer

Minimum version of Cortex XSOAR

  • 6.0.0
  • 6.1.0
  • 6.2.0
  • 6.5.0

Does it break backward compatibility?

  • Yes
    • Further details:
  • No

Must have

  • Tests
  • Documentation

Copy link
Contributor

@yuvalbenshalom yuvalbenshalom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see my comments

file_name = response.headers.get('Content-Disposition').split('attachment; filename=')[1]
except Exception as err:
demisto.debug(f'Failed extracting filename from response headers - [{str(err)}]')
file_name = 'cs_installer.exe'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure we so not get the installer name in the response? I think the installer can be also for Linux or Mac, so it may not be just for windows, so it is possible it will not be an .exe file.


#### Integrations
##### CrowdStrike OpenAPI (Beta)
- Fixed an issue where the ***cs-download-sensor-installer-by-id*** command was not download the file.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Fixed an issue where the ***cs-download-sensor-installer-by-id*** command was not download the file.
- Fixed an issue where the ***cs-download-sensor-installer-by-id*** command failed.

@moishce moishce merged commit 7d6ea0c into master Jun 25, 2023
@moishce moishce deleted the download_Crowdstrike_Sensor branch June 25, 2023 09:34
MosheEichler pushed a commit that referenced this pull request Jul 2, 2023
… command (#27655)

* Fixed an issue where the ***cs-download-sensor-installer-by-id*** command was not returned the file.

* update dockerimage

* changed the file name to be generic
xsoar-bot pushed a commit to xsoar-contrib/content that referenced this pull request Jul 26, 2023
… command (demisto#27655)

* Fixed an issue where the ***cs-download-sensor-installer-by-id*** command was not returned the file.

* update dockerimage

* changed the file name to be generic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants