[zanata-bugs] [Bug 816806] New: Project-wide replace treats search as a regular expression instead of literal string

bugzilla at redhat.com bugzilla at redhat.com
Fri Apr 27 03:57:45 UTC 2012


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: Project-wide replace treats search as a regular expression instead of literal string

https://bugzilla.redhat.com/show_bug.cgi?id=816806

           Summary: Project-wide replace treats search as a regular
                    expression instead of literal string
           Product: Zanata
           Version: 1.6-SNAPSHOT
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: high
          Priority: high
         Component: Component-UI
        AssignedTo: runab at redhat.com
        ReportedBy: damason at redhat.com
         QAContact: dchen at redhat.com
                CC: zanata-bugs at redhat.com
   Estimated Hours: 0.0
    Classification: Community
      Story Points: ---
              Type: Bug
        Regression: ---
        Mount Type: ---
     Documentation: ---


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:

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the zanata-bugs mailing list