View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004719 | SymmetricDS | Bug | public | 2020-12-23 19:41 | 2021-11-04 14:58 |
Reporter | pmarzullo | Assigned To | pmarzullo | ||
Priority | normal | ||||
Status | closed | Resolution | fixed | ||
Product Version | 3.11.13 | ||||
Target Version | 3.11.14 | Fixed in Version | 3.11.14 | ||
Summary | 0004719: MultiBatchStagingWriter writes "\r\n" on Windows for end of lines in child batch staging files | ||||
Description | MultiBatchStagingWriter, when modifying extracted batch file for child initial load requests, is using System.lineSeparator() to write end of lines. The problem is that when there is a value that has an embedded newline in it, and that newline is just a "\n" character, and SymmetricDS is running on Windows, the System.lineSeparator() writes out "\r\n", changing the value that is saved in the target database. Rewrite the reading/parsing/writing logic to only write a "\n" for end of lines, since that is what AbstractProtocolDataWriter uses for end of lines. | ||||
Steps To Reproduce | 1. Have a table that has a value with an embedded new line. 2. Create initial load requests for two nodes at the same for that table, where SymmetricDS is running on a Windows box. 3. Values in the target for one of those nodes will end up having the embedded new line replaced with a "\r\n". | ||||
Tags | staging | ||||
SymmetricDS: 3.11 da8e02de 2020-12-23 21:12:00 Details Diff |
0004719: MultiBatchStagingWriter writes "\r\n" on Windows for end of lines in child batch staging files |
Affected Issues 0004719 |
|
mod - symmetric-core/src/main/java/org/jumpmind/symmetric/service/impl/MultiBatchStagingWriter.java | Diff File | ||
SymmetricDS: 3.12 5faabe40 2020-12-23 21:12:00 Details Diff |
0004719: MultiBatchStagingWriter writes "\r\n" on Windows for end of lines in child batch staging files |
Affected Issues 0004719 |
|
mod - symmetric-core/src/main/java/org/jumpmind/symmetric/service/impl/MultiBatchStagingWriter.java | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-12-23 19:41 | pmarzullo | New Issue | |
2020-12-23 19:41 | pmarzullo | Status | new => assigned |
2020-12-23 19:41 | pmarzullo | Assigned To | => pmarzullo |
2020-12-23 19:41 | pmarzullo | Tag Attached: staging | |
2020-12-23 19:43 | pmarzullo | Relationship added | related to 0004720 |
2020-12-23 21:15 | pmarzullo | Status | assigned => resolved |
2020-12-23 21:15 | pmarzullo | Resolution | open => fixed |
2020-12-23 21:15 | pmarzullo | Fixed in Version | => 3.11.14 |
2020-12-23 22:00 | pmarzullo | Changeset attached | => SymmetricDS 3.11 da8e02de |
2020-12-23 22:00 | pmarzullo | Changeset attached | => SymmetricDS 3.12 5faabe40 |
2021-11-04 14:58 | admin | Status | resolved => closed |