unclebob / fitnesse

FitNesse -- The Acceptance Test Wiki
fitnesse.org
Other
2.04k stars 715 forks source link

Hash Map not parsed correctly by slim #951

Open gmaj opened 8 years ago

gmaj commented 8 years ago

When using latest fitnesse 20160618 (or even 20150814) build with jdk 1.8 I noticed that Hash Maps tables are not getting converted correctly. This behavior seems to be random because sometimes slim parses the hash table successfully. When the parsing fails there are no errors and values are passed on with html characters.

I do not see similar failures when fitnesse is running on jdk 1.7 or below.

Below is my test page

|script|REST service caller|${service_url} | |get; |resource/v1 | |!{var1:.value1,var2:val2,var3:val3,var4:val4}| |check |responseCode |200 | |check |result |Count |<100 |

amolenaar commented 8 years ago

What is the output you see and what is the output you expect? What can I do to reproduce this behavior?

gmaj commented 7 years ago

below is what my fixture gets from fitness as input instead of a hashmap. %3Ctable%20class=%22hash_table%22%3E%0A%09%3Ctr%20class=%22hash_row%22%3E%0A%09%09%3Ctd%20class=%22hash_key%22%3Efname%3C/td%3E%0A%09%09%3Ctd%20class=%22hash_value%22%3EBob%3C/td%3E%0A%09%3C/tr%3E%0A%09%3Ctr%20class=%22hash_row%22%3E%0A%09%09%3Ctd%20class=%22hash_key%22%3Elname%3C/td%3E%0A%09%09%3Ctd%20class=%22hash_value%22%3EMartin%3C/td%3E%0A%09%3C/tr%3E%0A%09%3Ctr%20class=%22hash_row%22%3E%0A%09%09%3Ctd%20class=%22hash_key%22%3Edob%3C/td%3E%0A%09%09%3Ctd%20class=%22hash_value%22%3E5-Dec-1952%3C/td%3E%0A%09%3C/tr%3E%0A%3C/table%3E,

On Wikik I set the properties as shown below

!{fname:Bob, lname:Martin, dob:5-Dec-1952}

This seems to happen when I use jdk 1.8 with 1.7.0.17 or earlier versions fitneese seems to parse input correctly.