Bug 816806

Summary: Project-wide replace treats search as a regular expression instead of literal string
Product: [Retired] Zanata Reporter: David Mason <damason>
Component: Component-UIAssignee: David Mason <damason>
Status: CLOSED CURRENTRELEASE QA Contact: Joyce Chang <jochang>
Severity: high Docs Contact:
Priority: high    
Version: 1.6-SNAPSHOTCC: petersen, sflaniga, zanata-bugs
Target Milestone: ---   
Target Release: 1.6-beta-1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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 Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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).