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

Fixed an issue where checking domains raises an error with 'NoneType'… #21270

Merged
merged 2 commits into from
Sep 18, 2022

Conversation

spearmin10
Copy link
Contributor

… object has no attribute 'split'

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

None

Description

When checking some domains (e.g. mail16.amadeus.net), it raises an error with 'NoneType' object has no attribute 'split'

Screenshots

image

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

@content-bot content-bot added the Contribution Thank you! Contributions are always welcome! label Sep 16, 2022
@content-bot content-bot changed the base branch from master to contrib/spearmin10_AutoFocusV2 September 16, 2022 08:41
@content-bot
Copy link
Collaborator

Thank you for your contribution. Your generosity and caring are unrivaled! Make sure to register your contribution by filling the Contribution Registration form, so our content wizard @YuvHayun will know he can start review the proposed changes.

@content-bot content-bot added Community Contribution Form Filled Whether contribution form filled or not. labels Sep 16, 2022
Copy link
Contributor

@YuvHayun YuvHayun left a comment

Choose a reason for hiding this comment

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

Looks great! @spearmin10
Let's add one unit test to test cases where we try to extract a None type and make sure it won't raise an error.

@YuvHayun YuvHayun added the pending-contributor The PR is pending the response of its creator label Sep 18, 2022
@YuvHayun YuvHayun added the ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. label Sep 18, 2022
@content-bot
Copy link
Collaborator

content-bot commented Sep 18, 2022

For the Reviewer: Successfully created a pipeline in Gitlab with url: https://code.pan.run/xsoar/content/-/pipelines/3679914

@YuvHayun
Copy link
Contributor

@spearmin10
PR approved, thx for your contribution!

@YuvHayun YuvHayun merged commit 6f8d603 into demisto:contrib/spearmin10_AutoFocusV2 Sep 18, 2022
YuvHayun added a commit that referenced this pull request Sep 18, 2022
#21293)

* Fixed an issue where checking domains raises an error with 'NoneType'… (#21270)

* Fixed an issue where checking domains raises an error with 'NoneType' object has no attribute 'split'

* Added a test case for domain

* RN fixes

Co-authored-by: Masahiko Inoue <54964121+spearmin10@users.noreply.github.com>
Co-authored-by: YuvHayun <yhayun@paloaltonetworks.com>
@spearmin10 spearmin10 deleted the AutoFocusV2 branch September 19, 2022 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Contribution Form Filled Whether contribution form filled or not. Contribution Thank you! Contributions are always welcome! docs-approved pending-contributor The PR is pending the response of its creator ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants