Bug report #15748
Processing: Log tab in processing dialog misses text in between angled brackets (<>)
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Victor Olaya | ||
Category: | Processing/GUI | ||
Affected QGIS version: | 2.18.0 | Regression?: | No |
Operating System: | Linux, Windows | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 23670 |
Description
For some reason, text in between angled brackets disappears completely from log output found in the processing execution dialog.
This behavior was observed on QGIS 2.18, on both Windows and Ubuntu.
A model file is supplied to demonstrate the problem. The steps found below have been executed with this model.
STEPS TO REPRODUCE:
1. Create a model, include a raster calculator and build a conditional query with angle brackets: (A<50)*A*2+A*2*(A>=50)+(A<-9999)*0
2. Execute the algorithm. The output of a run I did is included hereafter: (see also the included picture for a marked one)
Algorithm demonstration_angle_brackets starting... Prepare algorithm: GDALOGRRASTERCALCULATOR_1 Running Raster calculator [1/1] Parameters: INPUT_A =||REDACTED||, BAND_A =1, INPUT_B =None, BAND_B =1, INPUT_C =None, BAND_C =1, INPUT_D =None, BAND_D =1, INPUT_E =None, BAND_E =1, INPUT_F =None, BAND_F =1, FORMULA =(A=50)+(A=, RTYPE =1, EXTRA = GDAL command: gdal_calc.py --calc "(A=50)+(A GDAL command output: 0 .. 10 .. 20 .. 30 .. 40 .. 50 .. 60 .. 70 .. 80 .. 90 .. 100 - Done Converting outputs OK. Execution took 0.250 ms (1 outputs). Model processed ok. Executed 1 algorithms total Converting outputs Loading resulting layers Algorithm demonstration_angle_brackets finished
3. Observe that in log output, the calculation reportedly executed is "(A=50)+(A", which is different from what was entered in the model before. Furthermore, the reported gdal_translate command is truncated altogether, which suggests that text sent to output is simply truncated from an open angle backet (<) onward.
4. Observe that the resulting raster map was calculated correctly.
Associated revisions
[processing] replace greater than and lower than characters in log
fixes #15748
History
#1 Updated by Victor Olaya almost 8 years ago
- Status changed from Open to Closed
Fixed in changeset 3c8c509c8188e9db302278ac743f1b2c7a740a38.