znuny / Znuny

Znuny/Znuny LTS is a fork of the ((OTRS)) Community Edition, one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management.
https://www.znuny.org
GNU General Public License v3.0
332 stars 82 forks source link

Bug - PostmasterFilter Import via CMD is not updating Filter #527

Open meisterheister opened 5 months ago

meisterheister commented 5 months ago

Environment

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

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

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

rkaldung commented 2 months ago

Internal issue 881