You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2017/02/13 20:47:55 UTC
[Bug 60730] New: JSONPostProcessor does not set _ALL variable when
only one match occurs
https://bz.apache.org/bugzilla/show_bug.cgi?id=60730
Bug ID: 60730
Summary: JSONPostProcessor does not set _ALL variable when only
one match occurs
Product: JMeter
Version: 3.1
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Main
Assignee: issues@jmeter.apache.org
Reporter: rainer.jung@kippdata.de
Target Milestone: ---
The JSONPostProcessor does not set the _ALL variable when only one match
occurs. The following patch fixes this:
Index:
src/components/org/apache/jmeter/extractor/json/jsonpath/JSONPostProcessor.java
===================================================================
---
src/components/org/apache/jmeter/extractor/json/jsonpath/JSONPostProcessor.java
(revision 1782848)
+++
src/components/org/apache/jmeter/extractor/json/jsonpath/JSONPostProcessor.java
(working copy)
@@ -163,7 +163,7 @@
String suffix = (matchNumber < 0) ? "_1" : "";
placeObjectIntoVars(vars, currentRefName + suffix,
extractedValues, 0);
if (matchNumber < 0 && getComputeConcatenation())
{
- vars.put(currentRefName + ALL_SUFFIX,
vars.get(currentRefName));
+ vars.put(currentRefName + ALL_SUFFIX,
vars.get(currentRefName + suffix));
}
}
if (matchNumber != 0) {
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 60730] JSONPostProcessor does not set _ALL variable when only
one match occurs
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60730
Rainer Jung <ra...@kippdata.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #1 from Rainer Jung <ra...@kippdata.de> ---
Fix will be part of version 3.2:
Author: rjung
Date: Mon Feb 13 21:31:47 2017
New Revision: 1782882
URL: http://svn.apache.org/viewvc?rev=1782882&view=rev
Log:
JSONPostProcessor does not set _ALL variable when only one match occurs
Bugzilla Id: 60730
--
You are receiving this mail because:
You are the assignee for the bug.