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

user history not saved with empty table

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 1.8.5
    • None
    • Frontend (F)
    • None
    • 1.8 branch rev 18595.

      with empty user_history table nothing is ever added to the user history. debug reveals only these queries :

      SELECT title1, url1, title2, url2, title3, url3, title4, url4, title5, url5 FROM user_history WHERE userid=1
      SELECT title5, url5 FROM user_history WHERE userid=1
      UPDATE user_history SET title1=title2, url1=url2, title2=title3, url2=url3, title3=title4, url3=url4, title4=title5, url4=url5, title5='S_CONFIGURATION_OF_ACTIONS', url5='actionconf.php' WHERE userid=1

      so it never attempts to add a new record and is not bothered that 'update' affects no records.

      when fixing, selenium test that checks the db afterwards is highly recommended.

            Unassigned Unassigned
            richlv richlv
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: