Modify

Opened 4 years ago

Closed 4 years ago

#7737 closed enhancement (fixed)

Add testcase for special characters in query,

Reported by: Azoff 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 Azoff 4 years ago.

Download all attachments as: .zip

Change History (2)

Changed 4 years ago by Azoff

comment:1 Changed 4 years ago by osimons

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.