MAAS accepts user-data in different formats depending on the UI or API

Bug #1912697 reported by Lee Trager
6
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

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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.