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 behaviour if parameter types value is empty string, behave th… #2536

Merged
merged 1 commit into from
Dec 1, 2024

Conversation

elsif2
Copy link
Collaborator

@elsif2 elsif2 commented Nov 20, 2024

This fixes the issue of the types list being empty when the runtime config is generated with the web manager:

   parameters:
     types: ''

A similar fix was made for reports previously.

@elsif2 elsif2 force-pushed the shadowserver-intelmq-manager-types branch from a84a73b to 06b395b Compare November 20, 2024 23:14
@elsif2 elsif2 requested a review from sebix November 20, 2024 23:21
@@ -19,6 +19,8 @@

### Bots
#### Collectors
- `intelmq.bots.collectors.shadowserver.collector_reports_api.py`:
- Fixed behaviour if parameter `types` value is empty string, behave the same way as not set, not like no type.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- Fixed behaviour if parameter `types` value is empty string, behave the same way as not set, not like no type.
- Fixed behaviour if parameter `types` value is empty string, behave the same way as not set, not like no type (PR#2536 by Jason).

@sebix
Copy link
Member

sebix commented Nov 21, 2024

Thanks for the fix.

Unfortunately, the actual problem is much bigger than that of single parameters and requires a generic solution. Multiple users are falling into this trap regularly and it hurts the usability of IntelMQ massively.

@sebix sebix added bug Indicates an unexpected problem or unintended behavior component: bots labels Nov 21, 2024
@sebix sebix added this to the 3.3.2 Bugfix release milestone Nov 21, 2024
@sebix sebix merged commit a486071 into develop Dec 1, 2024
31 checks passed
@sebix sebix deleted the shadowserver-intelmq-manager-types branch December 1, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior component: bots
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants