View | Details | Raw Unified | Return to bug 63674
Collapse All | Expand All

(-)a/src/core/src/main/java/org/apache/jmeter/samplers/DataStrippingSampleSender.java (-6 / +13 lines)
Lines 92-103 public class DataStrippingSampleSender extends AbstractSampleSender implements S Link Here
92
        //Strip the response data before writing, but only for a successful request.
92
        //Strip the response data before writing, but only for a successful request.
93
        SampleResult result = event.getResult();
93
        SampleResult result = event.getResult();
94
        if(stripAlsoOnError || result.isSuccessful()) {
94
        if(stripAlsoOnError || result.isSuccessful()) {
95
            // Compute bytes before stripping
95
            stripContent(result, 3);
96
            stripResponse(result);
97
            // see Bug 57449
98
            for (SampleResult subResult : result.getSubResults()) {
99
                stripResponse(subResult);
100
            }
101
        }
96
        }
102
        if(decoratedSender == null)
97
        if(decoratedSender == null)
103
        {
98
        {
Lines 113-118 public class DataStrippingSampleSender extends AbstractSampleSender implements S Link Here
113
        }
108
        }
114
    }
109
    }
115
110
111
    private void stripContent(SampleResult result, int level) {
112
        if (level < 0) {
113
            return;
114
        }
115
        // Compute bytes before stripping
116
        stripResponse(result);
117
        // see Bug 57449 and 63674
118
        for (SampleResult subResult : result.getSubResults()) {
119
            stripContent(subResult, level - 1);
120
        }
121
    }
122
116
    /**
123
    /**
117
     * Strip response but fill in bytes field.
124
     * Strip response but fill in bytes field.
118
     * @param result {@link SampleResult}
125
     * @param result {@link SampleResult}

Return to bug 63674