MAAS doesn't attempt to validate inputs on the webui for power type settings

Bug #1276561 reported by Dave Russell
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Wishlist
Unassigned

Bug Description

You can input anything into the "ip address/hostname" parameters fields for power control, there is no attempt at validation.

While this is challenging, due to the fact that a hostname could be anything. We should initially check for the basics however, i.e. no spaces or weird/special characters.

As a secondary type of validation, when the information is entered and saved, could the MAAS server not at least try and resolve the ip address or hostname?

If the MAAS server is unable to resolve the entered information of an IP or hostname then it should not save, it should flag an error, and prompt the user to correct the information.

Dave Russell (drussell)
tags: added: micro-cluster
Revision history for this message
Julian Edwards (julian-edwards) wrote :

I don't think trying to resolve (I presume you mean reverse lookup?) IPs will be useful since there may not be one, but a forward check from hostname to IP would be for sure.

Changed in maas:
status: New → Triaged
importance: Undecided → Wishlist
Changed in maas:
status: Triaged → 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.