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

Space as preprocessing param is considered invalid input for XML import

    Details

    • Team:
      Team A
    • Sprint:
      Sprint 14, Sprint 15
    • Story Points:
      1

      Description

      Consider the following scenario:

      1. Create a template.
      2. Create an item.
      3. Add a preprocessing step "Trim" with a single space as a param.
      4. Export the template.
      5. Try to import the template, and the result is:
        Incorrect value for field "params": cannot be empty. [conf.import.php:162 ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? CConfiguration->import() ? CConfigurationImport->import() ? CConfigurationImport->processItems() ? CItem->update() ? CItemGeneral->checkInput() ? CItem->checkSpecificFields() ? CItemGeneral->validateItemPreprocessing() ? CApiService::exception() in include/classes/api/services/CItemGeneral.php:953]
        

        Attachments

          Activity

            People

            • Assignee:
              gcalenko Gregory Chalenko
              Reporter:
              vjaceslavs Vjaceslavs Bogdanovs
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: