canonical / maas-ui

The UI for MAAS (metal-as-a-service)
https://maas.io
Other
51 stars 50 forks source link

Inconsistent validation of A DNS records #2719

Open webteam-app opened 3 years ago

webteam-app commented 3 years ago

Bug originally filed by nikolay.vinogradov at https://bugs.launchpad.net/bugs/1905610

Running snapped MAAS 2.9 (2.9.0~rc1 (9117-g.ae6569d91).

MAAS allowed me to create an A DNS record with a dot in the middle, but it won't allow to edit or remove it until the record is renamed (see the DNS resource editing on the attached screenshot).

The validation behaviour should be made more consistent in this scenario.

Thanks.

Caleb-Ellis commented 3 years ago

As per the email to the MAAS-design mailing list, we'll leave this for now while the core team come up with a mini-spec for updating the websocket api.

To clarify there's a bug in the websocket code in which validation is different depending on whether you use domain.update_dnsresource or domain.update_address_record (which is what the UI uses).