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)

test_special_character_escape.patch (1.0 KB) - added by Torbjörn Svensson 14 years ago.

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by Torbjörn Svensson

comment:1 Changed 14 years ago by osimons

Resolution: fixed
Status: newclosed

(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!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain osimons.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.