Znuny
Znuny copied to clipboard
Bug - PostmasterFilter Import via CMD is not updating Filter
Environment
- Server OS: Ubuntu
- Browser: Chrome
- Znuny version: 6.5.5
Expected behavior
When altering a Postmaster Filter Konfiguration via Admin:PostMasterFilter:Import
updates should be applied to the Filters.
Actual behavior
Importing the configuration via CMD is not updating the Filter whereby crating a new filter works when changing the filter name. Since there seems to be no delete functionality creating a new filter every time is not a feasible solution.
How to reproduce
Steps to reproduce the behavior:
- Create a YAML file containing a valid filter config
---
- Match:
- Key: From
Value: INVALID-CUSTOMER2
Name: Support - CustomerID test2
Not:
- Key: From
Value: ~
Set:
- Key: X-OTRS-CustomerNo
Value: test2
StopAfterMatch: 0
-
Run Import
sudo -uotrs /opt/otrs/bin/otrs.Console.pl Admin::PostMasterFilter::Import test2.yaml
-
Alter YAML file:
---
- Match:
- Key: From
Value: VALID-CUSTOMER2
Name: Support - CustomerID test2
Not:
- Key: From
Value: ~
Set:
- Key: X-OTRS-CustomerNo
Value: test2
StopAfterMatch: 0
-
Run import again
sudo -uotrs /opt/otrs/bin/otrs.Console.pl Admin::PostMasterFilter::Import test2.yaml
-
Value is still the old one.
Additional information
Updating existing filters was working fine at least in Znuny 6.0 where I previously used the add-on ImportExportPostmasterFilter. Since Updating to Znuny LTS this module is not available anymore so I tried to switch to the integrated version. However it seems that this issue has another origin since even when I install the previously used addon (making it install changing framework version in OPM) imports will not update Filters anymore.
Internal issue 881
Fixed https://github.com/znuny/Znuny/commit/1c5641c501f0245fef83b5888eaaae032aee68a1 https://github.com/znuny/Znuny/releases/tag/rel-7_1_3