[ZBX-12327] Space as preprocessing param is considered invalid input for XML import Created: 2017 Jun 29  Updated: 2024 Apr 10  Resolved: 2017 Aug 30

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 3.4.0alpha1
Fix Version/s: 3.4.2rc1, 4.0.0alpha1, 4.0 (plan)

Type: Problem report Priority: Major
Reporter: Vjaceslavs Bogdanovs Assignee: Gregory Chalenko
Resolution: Fixed Votes: 0
Labels: import, preprocessing, trim, xml
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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]
    


 Comments   
Comment by Gregory Chalenko [ 2017 Aug 10 ]

Fixed in branches/dev/ZBX-12327 r71117

Comment by Gregory Chalenko [ 2017 Aug 30 ]

Fixed in:

  • 3.4.2rc1 r71877
  • 4.0.0alpha1 (trunk) r71878
Generated at Fri Apr 26 08:14:17 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.