Cannot display aliases that are prefixes of other aliases

Bug #1638965 reported by Radek Liska
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Jacob Vlijm

Bug Description

How to repro:
- have 4+ partitions
- alias the 1st one "aa"
- alias the 2nd one "aab"
- alias the 3rd one "aaaaaaac"
- alias the 4th one "aaaba"

Save aliases, restart. Selecting partitions 1, 2 and 4 will all display partition 4 in the indicator, only partition 3 will really display itself.

Revision history for this message
Jacob Vlijm (vlijm) wrote :

Hi Radek, thanks for taking the effort to file this bug! Sharp one, I need to look into the definition of the aliases. I will get back to this.
Thanks again!

Changed in spaceview:
importance: Undecided → Medium
assignee: nobody → Jacob Vlijm (vlijm)
importance: Medium → High
Revision history for this message
Francis Chin (chinf) wrote :

It's a simple bug in line 88 (in def update_interface) which reads:
                if self.default_dev in name:

This should instead use the equality operator:
                if self.default_dev == name:

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers