Open hiboma opened 2 months ago
As a workaround for now, I created the following monkey patch to avoid the validation exception.
class DeviceControlUSBClassExceptionsResponse
def action=(action)
validator = EnumAttributeValidator.new(
"String",
["FULL_ACCESS", "FULL_BLOCK", "READ_ONLY", "BLOCK_EXECUTE"],
)
unless validator.valid?(action)
raise ArgumentError, "invalid value for \"action\", must be one of #{validator.allowable_values}."
end
@action = action
end
end
Hopefully upstream will fix the problem!
@hiboma Thank you for opening up the issue. I will look into this for you soon!
Hello!
True to the title of the issue, I encountered Falcon::DeviceControlPoliciesApi#get_device_control_policies raising an ArgumentError exception when the API returns 'action: BLOCK_EXECUTE'.
How to reproduce
Version
Script
Exeception
Debug Response
My guess is that this can be solved if Falcon::DeviceControlPoliciesApi's validator.allowable_values contains BLOCK_EXECUTE.
Regards.