VirtualBox

Opened 6 years ago

#18141 new defect

VBoxManage usbfilter add/modify --product does not set value

Reported by: anothervboxuser Owned by:
Component: other Version: VirtualBox 5.2.22
Keywords: Cc:
Guest type: other Host type: other

Description

Hi Folks,

Virtualbox 5.2.22 on Ubuntu Linux, but the bug is non-OS specific.

Issue

--product for VBoxManage usbfilter add or modify is not working

VBoxManage usbfilter \
  add 0 \
  --target "test" \
  --name "SunplusIT Inc Integrated Camera [0010]" \
  --product "Integrated Camera" \
;

Output in test.vbox

<DeviceFilter
  name="SunplusIT Inc Integrated Camera [0010]" 
  active="true" 
/>

The expected result is

<DeviceFilter
  name="SunplusIT Inc Integrated Camera [0010]" 
  product="Integrated Camera"
  active="true" 
/>

Research

I looked over code in https://www.virtualbox.org/browser/vbox/trunk/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp#L405

and it looks that:

if (!f.mProduct.isEmpty())
  CHECK_ERROR_BREAK(flt, COMSETTER(Product)(f.mProduct.raw()));

if missing for add/modify cases for global and vm specific cases.

Change History (0)

Note: See TracTickets for help on using tickets.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette