MAAS accepts user-data in different formats depending on the UI or API
Bug #1912697 reported by
Lee Trager
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Unassigned |
Bug Description
Both the UI and API accept user-data however they each require a different format. The UI requires user-data to be in plain text and will silently fail if base64 encoded data is given. The API requires user-data to be base64 encoded and fails with an exception if plain text is given.
MAAS should accept either plain text or base64 encoded data on both the API and UI. The backend should be smart enough to know if the user uploaded plain text and automatically convert it to base64 as needed.
Related branches
~ltrager/maas:lp1912697
Merged
into
maas:master
- MAAS Lander: Needs Fixing
- Alberto Donato (community): Approve
-
Diff: 215 lines (+117/-10)4 files modifiedsrc/maasserver/api/nodes.py (+3/-4)
src/maasserver/api/tests/test_machine.py (+53/-4)
src/metadataserver/api.py (+27/-1)
src/metadataserver/tests/test_api.py (+34/-1)
Changed in maas: | |
milestone: | 2.9.2 → 2.9.x |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
milestone: | 2.9.x → 2.9.0 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.