Znuny icon indicating copy to clipboard operation
Znuny copied to clipboard

Bug - PostmasterFilter Import via CMD is not updating Filter

Open meisterheister opened this issue 1 year ago • 1 comments

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:

  1. 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
  1. Run Import sudo -uotrs /opt/otrs/bin/otrs.Console.pl Admin::PostMasterFilter::Import test2.yaml

  2. 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
  1. Run import again sudo -uotrs /opt/otrs/bin/otrs.Console.pl Admin::PostMasterFilter::Import test2.yaml

  2. 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.

meisterheister avatar Jan 10 '24 11:01 meisterheister

Internal issue 881

rkaldung avatar May 02 '24 06:05 rkaldung

Fixed https://github.com/znuny/Znuny/commit/1c5641c501f0245fef83b5888eaaae032aee68a1 https://github.com/znuny/Znuny/releases/tag/rel-7_1_3

dennykorsukewitz avatar Oct 02 '24 08:10 dennykorsukewitz