You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The comparison between contents in the database and contents in the xml files doesn't handle line-break correctly between Windows and Linux. NewLine is always marked as different by the report tool, and importing again doesn't fix anything.
To Reproduce
Steps to reproduce the behavior:
On Windows, in a local dev environment
Create a content using a DocumentType with block-list, property
Take a look at the xml file generated on the disk for this content : the property is a JSON string where the line breaks treated as "\r\n"
Deploy the code on an Linux Azure App Service
Go to the Azure Webapp
In the uSync backoffice, Click "Report"
See the content needs to be imported.
Import the content by clicking "Import" (or full import)
Make sure the content has been imported in the content tree
Go back to the uSync backoffice, click "Report" again
See error : The content is still marked as different (needing a sync)
Cilck on the "Detail" link and see that all that differs are the line-breaks (see screenshots)
Expected behavior
The compare tool should not consider \n and \r\n as different.
Screenshots
About your Site (please complete the following information):
Umbraco Version: 10.5.1
uSync Version: 10.5
Browser: Chrome, Firefox
Additional context
Local dev environment : Windows
Cloud hosting environment: Azure WebApp on Linux App Service
The text was updated successfully, but these errors were encountered:
mdeslauriers-sigmund
changed the title
uSync.ContentEdition : The diff should handle "\n" and "\r\n" seemlessly
ContentEdition : The diff should handle "\n" and "\r\n" seemlessly
May 3, 2023
Little complicated, but we are going to push this into our the System.Text.Json migration (Umbraco are dropping Newtonsoft). so v13 are the earliest for this i think :(
unless someone can find a super quick and reliable way for us to reach into all the JSON serialization in uSync (but not system-wide) and get it consistant?
Describe the bug
The comparison between contents in the database and contents in the xml files doesn't handle line-break correctly between Windows and Linux.
NewLine
is always marked as different by the report tool, and importing again doesn't fix anything.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The compare tool should not consider
\n
and\r\n
as different.Screenshots
About your Site (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: