[hal] No DeviceRemoved message is sent on the bus when ejecting a DVD

Bug #252524 reported by Guillaume Emont
2
Affects Status Importance Assigned to Milestone
Moovida
Fix Released
High
Guillaume Emont

Bug Description

Steps to reproduce:
1. with PYTHON_PATH correctly set, run python elisa-plugins/elisa/plugins/hal/interactive_hal.py
2. press enter
3. insert a DVD
4. wait a few seconds
5. eject the DVD
6. wait a few seconds
7. type common.application.bus.messages in the ipython shell, and it will output its contents

Expected behaviour: common.application.bus.messages contains a NewDeviceDetected object AND a DeviceRemoved object.
Current behaviour: common.application.bus.messages only contains a NewDeviceDetected object and no DeviceRemoved object.

Changed in elisa:
importance: Undecided → High
milestone: none → 0.5.3
Revision history for this message
Benjamin Kampmann (lightyear) wrote :

this patch should fix the issue

Changed in elisa:
assignee: nobody → guijemont
milestone: 0.5.3 → 0.5.4
Revision history for this message
Guillaume Emont (guijemont) wrote :

I've vaguely started a minimal cleanup in lp:~guijemont/elisa/hal_insanity_fix.
I think the real problem is that we shouldn't send a udi or try to (very hackily) send a mount_point in the DeviceRemoved, but rather put a DeviceModel (or something similar) in the DeviceRemoved, so that it has a chance to work fine for any kind of device.

Changed in elisa:
status: New → In Progress
Changed in elisa:
milestone: 0.5.4 → 0.5.5
yyoyo (lionel.martin)
Changed in elisa:
milestone: 0.5.5 → 0.5.6
Olivier Tilloy (osomon)
Changed in elisa:
status: In Progress → Fix Committed
Olivier Tilloy (osomon)
Changed in elisa:
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.