Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-26951

Admin user can't clone linked template

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 7.0.17, 7.0.18
    • Frontend (F), Templates (T)
    • None
    • Support Engineer Test Environment:
      AlmaLinux 8.10
      Postgres 15.14
      TimescaleDB 2.22.0*
      Zabbix frontend 7.0.18

      In client's environment there was TimescaleDB 2.15.3
    • Support backlog

      Steps to reproduce DB:

      createuser --pwprompt zabbix
      createdb zabbix_test
      psql -c "ALTER DATABASE zabbix_test OWNER TO zabbix;"
      psql zabbix_test -c 'CREATE EXTENSION timescaledb VERSION "2.15.3";'
      psql zabbix_test -c "SELECT public.timescaledb_pre_restore();" -f /tmp/zabbix_dump_reproducible.sql -c "SELECT public.timescaledb_post_restore();"
      

      DB dump available in comment.

      Two users available:

      superadmin user - Admin Secret1234!
      admin user - tester123 Tere123456!
      

      Steps to reproduce bug:

      • Login as tester123
      • Find template Module ICMP Ping template and try clone it. When you will press "Add" button you will met an error:

        the text of the error: Reproduced error_text.txt
      • Try to Export the template, you should meet 500 error.
      • Try clone some of others two templates you will succeed.
      • Try export some of others of two templates you will succeed.
      • Create any host and link some of free template to the host
      • Try to clone the template. When it was unlinked you could do it, now you couldn't.
      • Try export the template - the 500 error
      • Unlink and delete the template from the host.
      • Now you can clone it and export too
      • Login as Admin
      • Find and clone Module ICMP Ping template. You should success
      • Now login as tester123 again
      • Try clone linked template Module ICMP Ping, now it should be cloned without errors.

      Expected:
      Expected that admin user could clone linked templates without errors.

            zabbix.dev Zabbix Development Team
            gjeniceks Genadijs Jeniceks
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: