API doesn't correctly handle partition/blockdevice names in parameters

Bug #1964755 reported by Alberto Donato
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Alberto Donato

Bug Description

Forms that interact with partitions/block devices allow passing names in addition to IDs.

These are not correctly resolved to IDs, though (in convert_xxx_name_to_id methods) because the query doesn't limit to the specific node.
Thus, if there are for instance two machines with an "sda" disk with partitions, "sda-part1" doesn't match a single object, causing the query to fail.

Related branches

Alberto Donato (ack)
Changed in maas:
assignee: nobody → Alberto Donato (ack)
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
milestone: next → 3.2.0-beta1
Changed in maas:
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.