Modify ↓
Opened 14 years ago
Closed 14 years ago
#7737 closed enhancement (fixed)
Add testcase for special characters in query,
Reported by: | Torbjörn Svensson | Owned by: | osimons |
---|---|---|---|
Priority: | low | Component: | XmlRpcPlugin |
Severity: | minor | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
As reported in trac:ticket:4136 and fixed in trac:changeset:8721, some characters have special meaning in queries and can therefor not be used in searches. For instance the '&' character needs to be replaced with '\&' or it will be treated as a delimiter. There's a testcase for this in trac, but none exist when using the XmlRpcPlugin. Attached patch implement a simple testcase for the XmlRpcPlugin with the same strings as in the trac testcase.
Attachments (1)
Change History (2)
Changed 14 years ago by
Attachment: | test_special_character_escape.patch added |
---|
comment:1 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
(In [9171]) XmlRpcPlugin: Adding a test for ticket query with special characters such as
&
+|
. Test fails for Trac 0.11 (known issue), but not 0.12 as that fully supports the\
escaping.Closes #7737. Thanks to Azoff for test + testing!