Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed an issue where mergeAndValidate() threw error for files not in UTF-8 encoding. #238

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

VShingala
Copy link
Member

Description

This PR fixes an issue where mergeAndValidate() API throw error for any files in input that contains data not in UTF-8 encoding. Since, for folder import, files can be in such format often time the conversion ended in error.

Issue was with the fast-xml-parser module. It throws error while parsing files that are not in UTF-8 format. With this PR, we'll ignore such errors and simply report content of such file as empty string for safeParseToObject() function.

We've also added corresponding tests to make sure intended functionality works as expected.

@VShingala VShingala changed the title Fixed an issue where mergeAndValidate() threw error for files not in UTF-8 encoding. [DO-NOT_MERGE] Fixed an issue where mergeAndValidate() threw error for files not in UTF-8 encoding. Jul 8, 2024
@VShingala VShingala changed the title [DO-NOT_MERGE] Fixed an issue where mergeAndValidate() threw error for files not in UTF-8 encoding. Fixed an issue where mergeAndValidate() threw error for files not in UTF-8 encoding. Jul 8, 2024
@VShingala VShingala requested a review from theonly1me July 19, 2024 05:47
@VShingala VShingala merged commit 5d47754 into development Jul 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant