-
Notifications
You must be signed in to change notification settings - Fork 73
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
[ BUG ] Edit-FalconFirewallGroup
throws error 400: Provided data does not match expectedRuleGroupModifyRequestV1 format
#433
Comments
Edit-FalconFirewallGroup
throws error 400: Provided data does not match expectedRuleGroupModifyRequestV1 format
### `Edit-FalconFirewallGroup` * `null` values for `rule_ids` and `rule_versions` will now be converted into empty arrays. * Single values for `rule_ids` and `rule_versions` will now be forced into arrays. * Slightly modified some error messages. * Rearranged some of the code before submission.
Thank you for the report! I ran into a few different issues that ended up causing the If you'd like to update your local module before release, you can replace * EXAMPLE REMOVED PENDING FURTHER FIX * Please ensure that you close and re-open PowerShell and re-import PSFalcon before testing, and let me know if this does not solve your issue. |
The fix works for the basic operations like rename and enable/disable, but only when casting the diffoperation parameter (Bug #246)
Unfortunately adding a rule to a groupit still not work. I tried the copy & paste from the samples and also altered it wth PSCustomObject but it still throws the 400 RuleGroupModifyRequestV1:
|
Thank you! I should have tested that. I can see from your submission that it was failing because it was sending I've prepared an updated To test this change, please replace Import-Module -Name PSFalcon
$ModulePath = (Show-FalconModule).ModulePath
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/CrowdStrike/psfalcon/03b5bc59d85c15fb06b21aebf3035c64149647df/public/fwmgr.ps1 -UseBasicParsing).Content > (Join-Path (Join-Path $ModulePath public) fwmgr.ps1) If that works for you, please let me know! If it does, I will leave this issue open for other users to apply this fix before the next release. |
Awesome, all samples works instandly without further ado. Thanks a lot for the fast and complete fix! |
This fix has been included in the 2.2.8 release which is now available on GitHub. I'm going to leave this issue open until the PowerShell Gallery release is also available. |
Using the basic examples from docu results in
Provided data does not match expected \u0027RuleGroupModifyRequestV1\u0027 format
Create Rule group with
New-FalconFirewallGroup
and sample script works well. Altering the rule with any of the samples fails (enable / disable, rename, add rule to group)(other issue: 2.2.7 seams to bring force casting of DiffOperation hastable to PSCustomObject issue back, 2.2.6 works without but also stops with Error 400 below)
The text was updated successfully, but these errors were encountered: