-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Avoid html escaping while saving vmsettings in backup_details #11900
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
Conversation
|
@blueorangutan package |
|
@abh1sar a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11900 +/- ##
=========================================
Coverage 17.56% 17.56%
Complexity 15533 15533
=========================================
Files 5909 5909
Lines 529013 529014 +1
Branches 64605 64605
=========================================
+ Hits 92912 92915 +3
Misses 425652 425652
+ Partials 10449 10447 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15532 |
|
@blueorangutan test |
|
@abh1sar a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
nvazquez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM
harikrishna-patnala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, merging based on the author's testing results.
|
[SF] Trillian test result (tid-14716)
|
Description
This PR fixes #11678
Impact
The Bug causes the backups to be not listed in the UI if the ssh.key or the password of the instance contain the character
=Details
The
backup_detailstable stores vm_settings at the time of backup as a JSON string.if vm_settings contain ssh-key or password with the character such as
=it is saved with html escaping as\u003d.This is causing an issue while generating backup response becuase ApiResponseSerializer.toJSONSerializedString() adds an extra escape character to
\u003dand outputs it as\=. Json decode fails for\=and cmk returns errorfailed to decode responseFor the fix, I am disabling HTML escaping while setting the vmsettings json in the
backup_detailstable.This is consistent with the
vm_instance_detailstable where each setting is stored as it is, without any html escaping.ssh-key in vm_instance:


ssh-key in backup_details:



1. Before fix:
api.log:
2. After fix:



api.log:
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?