Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix data in fields where HTML characters were double escaped on 22 #6477

Merged

Conversation

ridz1208
Copy link
Collaborator

@ridz1208 ridz1208 commented May 6, 2020

Brief summary of changes

This PR fixes the issue where special characters entered in instrument forms were double escaped on saving but improperly decoded on instrument loading causing each save to prepend an &amp; escaping string to the already escaped characters. the problematic chars are &, <, > and ".

The escaping is done in the deleted lines as well as the insert and update functions of the database class making this first instance unnecessary.

A script has also been added to help projects identify if the bug has affected their data. Amending the data in the database will remain the responsibility of each project since it is highly specific to each project.

@ridz1208 ridz1208 added Add to Release Notes PR change should be highlighted in Release notes (important security, features and bugfixes) Bug PR or issue introducing/requiring bug fixes (not mutually exclusive with the Feature label) Caveat for Existing Projects PR contains changes that might impact the code or accepted practices of current active projects labels May 6, 2020
@ridz1208 ridz1208 added this to the 22.0.2 milestone May 6, 2020
@ridz1208
Copy link
Collaborator Author

ridz1208 commented May 6, 2020

@driusan as agreed, I have added the bugfix and the reporter script
once merged i'd like to push it to 23 before the release

@ridz1208 ridz1208 changed the base branch from 23.0-release to 22.0-release May 8, 2020 19:43
@driusan driusan merged commit cf52280 into aces:22.0-release May 20, 2020
laemtl pushed a commit to laemtl/Loris that referenced this pull request Jun 2, 2020
…ces#6477)

This PR fixes the issue where special characters entered in instrument forms were double escaped on saving but improperly decoded on instrument loading causing each save to prepend an &amp; escaping string to the already escaped characters. the problematic chars are &, <, > and ".

The escaping is done in the deleted lines as well as the insert and update functions of the database class making this first instance unnecessary.

A script has also been added to help projects identify if the bug has affected their data. Amending the data in the database will remain the responsibility of each project since it is highly specific to each project.
laemtl pushed a commit to laemtl/Loris that referenced this pull request Jun 2, 2020
…ces#6477)

This PR fixes the issue where special characters entered in instrument forms were double escaped on saving but improperly decoded on instrument loading causing each save to prepend an &amp; escaping string to the already escaped characters. the problematic chars are &, <, > and ".

The escaping is done in the deleted lines as well as the insert and update functions of the database class making this first instance unnecessary.

A script has also been added to help projects identify if the bug has affected their data. Amending the data in the database will remain the responsibility of each project since it is highly specific to each project.
laemtl pushed a commit to laemtl/Loris that referenced this pull request Jun 11, 2020
…ces#6477)

This PR fixes the issue where special characters entered in instrument forms were double escaped on saving but improperly decoded on instrument loading causing each save to prepend an &amp; escaping string to the already escaped characters. the problematic chars are &, <, > and ".

The escaping is done in the deleted lines as well as the insert and update functions of the database class making this first instance unnecessary.

A script has also been added to help projects identify if the bug has affected their data. Amending the data in the database will remain the responsibility of each project since it is highly specific to each project.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Add to Release Notes PR change should be highlighted in Release notes (important security, features and bugfixes) Bug PR or issue introducing/requiring bug fixes (not mutually exclusive with the Feature label) Caveat for Existing Projects PR contains changes that might impact the code or accepted practices of current active projects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants