Bug 826877
Summary: | Preview fails when replace term has single \ or $ | ||
---|---|---|---|
Product: | [Retired] Zanata | Reporter: | David Mason <damason> |
Component: | Component-UI | Assignee: | David Mason <damason> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ding-Yi Chen <dchen> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 1.6-SNAPSHOT | CC: | aeng, zanata-bugs |
Target Milestone: | --- | ||
Target Release: | 1.6.1 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 1.6.1-SNAPSHOT (20120606-0019) | Doc Type: | Bug Fix |
Doc Text: |
This is a known issue in 1.6, and is fixed in 1.6.1.
Cause
Replacement phrase on search-and-replace page is not properly escaped.
Consequence
Preview fails or does not behave as expected in some cases when it contains a '$' or '\':
- a single '\' not followed by another character causes failure
- a single '\' followed by another character will be dropped from the replacement
- a '$' not preceded by a '\' causes failure
Workaround (1.6)
Enter "\\" instead of "\" and "\$" instead of "$" in the replacement text box.
Fix (1.6.1)
Replacement phrase is now escaped properly in the code.
Result
'\' and '$' now behave as expected with no special treatment required.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2012-07-03 05:27:45 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-05-31 07:56:09 UTC
Workaround: enter "\\" instead of "\" and "\$" instead of "$" in the preview text box. Fixed in 1.6.1-SNAPSHOT Above workaround will be required until the next release. See https://github.com/zanata/zanata/commit/0beb2057d2f78263f1ace937ab70805e4c348590 Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: This is a known issue in 1.6, and is fixed in 1.6.1. Cause Replacement phrase on search-and-replace page is not properly escaped. Consequence Preview fails or does not behave as expected in some cases when it contains a '$' or '\': - a single '\' not followed by another character causes failure - a single '\' followed by another character will be dropped from the replacement - a '$' not preceded by a '\' causes failure Workaround (1.6) Enter "\\" instead of "\" and "\$" instead of "$" in the replacement text box. Fix (1.6.1) Replacement phrase is now escaped properly in the code. Result '\' and '$' now behave as expected with no special treatment required. VERIFIED with Zanata version 1.6.1-SNAPSHOT (20120606-0019) |