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

base64 userdata encoding fix #3260

Merged
merged 1 commit into from May 23, 2019

Conversation

DaanHoogland
Copy link
Contributor

Description

In the cloudstack UI fields get '<', '>' and '&' replaced by xml-entities
these are generic for all fields and hurt us in the case of userdata
this fix calls the existing method to reverse character replacements.
it also removes the ccs class that pretends to prevent special chars

Fixes: #3202

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Screenshots (if appropriate):

How Has This Been Tested?

This has been tested by creating VMs in the simulator and checking the user_vm.user_data field contents

  these are generic for all fields and hurt userdata
  call ithe existing method
  remove class that pretends to prevent special chars
@DaanHoogland
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2681

@rohityadavcloud
Copy link
Member

No backend tests needed, UI confirmation/test required.

@DaanHoogland
Copy link
Contributor Author

@borisstoyanov I have tested this, but if you can confirm please.
btw travis does not like ACS at all anymore, i'll start a thread on dev@ to see how to fix that.

@rohityadavcloud
Copy link
Member

UI only change, LGTM.

@rohityadavcloud rohityadavcloud merged commit f6ecac4 into apache:master May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Userdata incorrectly encoded
4 participants