Bug 816806 - Project-wide replace treats search as a regular expression instead of literal string
Summary: Project-wide replace treats search as a regular expression instead of literal...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Zanata
Classification: Retired
Component: Component-UI
Version: 1.6-SNAPSHOT
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 1.6-beta-1
Assignee: David Mason
QA Contact: Joyce Chang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-27 03:57 UTC by David Mason
Modified: 2013-03-04 03:19 UTC (History)
3 users (show)

Fixed In Version: 1.6.0-alpha-3-SNAPSHOT (20120430-0019)
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-06-22 00:58:07 UTC
Embargoed:


Attachments (Terms of Use)

Description David Mason 2012-04-27 03:57:44 UTC
Description of problem:
After running a project-wide search, when using the replace feature, the search is treated as a regular expression, so '.' will match any character and '?' at the beginning of the search string causes an error in replacement.

Version-Release number of selected component (if applicable):
1.6-alpha-1

How reproducible:
Always

Steps to Reproduce:
1.Sign in to a project and enter "?testing..." in any two translation fields
2.Navigate to project wide search and replace
3.Search for "..."
4.Enter "!" in the replacement field
5.Click "replace" next to one of the "?testing..." fields
6.Search for "?test", enter "test" in replacement field
7.Click "replace" next to the other "?testing..." field
  
Actual results:
5. string changed to "!!!.."
7. message "Replace text failed" shown and no replacement made

Expected results:
5. string changed to "?testing!"
7. string changed to "testing..."

Additional info:

Comment 2 Joyce Chang 2012-05-03 05:16:44 UTC
verified in Zanata version 1.6.0-alpha-3-SNAPSHOT (20120430-0019).


Note You need to log in before you can comment on or make changes to this bug.