Details
-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 3.10
-
Component/s: Core, Core Examples
-
Labels:
-
Environment:Not OS dependent.
-
Testcase included:yes
-
Number of attachments :
Description
When using named parameters and examples table, the named parameter value can cause side effects and wrongly transmitted parameter values if the value itself contains backslash '\' and dollar '$' characters.
This is because in ExamplesTable#replaceNamedParameters(Map<String, String>) it is used String#replaceAll(String, String).
According to javadoc, the replaceAll uses regex capturing features, that's why using \ and $ cause side effects.
Activity
Mauro Talevi
made changes -
Field | Original Value | New Value |
---|---|---|
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Mauro Talevi
made changes -
Affects Version/s | 3.9.6 [ 20672 ] | |
Affects Version/s | 3.x [ 16979 ] |
Please see https://github.com/rszabi/jbehave-core/commit/4fbaa52b6e216d01a266e23ae624246078effd5c
Thanks!