Menu

#50 File selection does not show all folders

5.0-4
closed
nobody
None
3
2015-12-07
2015-09-07
Flow86
No

Hi,

in file dialogs not all folders are shown, even if the json-answer contains all items.

i.e

in config:
var $browserRestrictFolders = array('/home/vbox/VirtualBox VMs', '/home/shared/iso');

json answer is

[{"expanded":false,"selected":false,"path":"\/home\/vbox\/VirtualBox VMs","name":"\/home\/vbox\/VirtualBox
VMs","type":"folder","children":[]
},[{"expanded":false,"selected":false,"path":"\/home\/shared\/iso
\/debian","name":"debian","type":"folder","children":[]
},{"expanded":false,"selected":false,"path":"
\/home\/shared\/iso\/windows","name":"windows","type":"folder","children":[]}]]

The only directory shown in dialogs is "'/home/vbox/VirtualBox VMs".

If I remove the directory from the list, no directory is shown in the dialogs

that worked in old 4.x versions

Discussion

  • Flow86

    Flow86 - 2015-09-07

    aahh - I now now what the problem is:

    in "Optical Media" Tab I can only select vhd etc files, in "Harddrive" tab only iso files. The selection seems to be swapped

     
  • Ian Moore

    Ian Moore - 2015-09-09
    • Group: 5.0-1 --> 5.0-3
     
  • Ian Moore

    Ian Moore - 2015-09-09

    I am unable to reproduce this. Can you attach your config.php (without passwords of course)? Also, which web browser are you using?

     
  • Ian Moore

    Ian Moore - 2015-09-09
    • Group: 5.0-3 --> unassigned
     
  • Flow86

    Flow86 - 2015-09-11

    Try the following:

    Open Manager for virtual media

    • in Hard-disks-tab: try to add an existing vdi/vmdk: you can only select iso/"optical media"-files
    • in Optical-disks-tab: try to add an iso: you can only select vdi/vmdk

    the same problem occurs if you try to set a media for a cdrom drive while editing a virtual machine

     
  • slaecker

    slaecker - 2015-12-02

    I have the same problem: In VM settings on Mass Storage tab when browsing for a HDD (SATA in my case) only the folder containing ISO files is shown, when browsing for ISO files to attach to an optical drive only virtual disks are shown.

    Screenshot 1 (Hard Disk selection):

    Screenshot 2 (Optical disk selection):

    Config.php

    System:
    Arch Linux 64-bit 4.2.5 (up-to-date)
    VirtualBox 5.0.10_OSE
    phpVirtualBox 5.0-3

     
  • Ian Moore

    Ian Moore - 2015-12-05

    I see now. I missed that this is when using the browserRestrictFolders setting. I think that is where the bug is.

    @slaecker are you using the restrict folders setting in config.php as well?

     
    • slaecker

      slaecker - 2015-12-07

      Sorry for being late.

      In the Config.php linked above I have:

      // Restrict locations / folders
      var $browserRestrictFolders = array('/srv/images','/srv/vms');

      But as I saw you already fixed the issue. I'll try the new release at weekend.

       

      Last edit: slaecker 2015-12-07
  • Ian Moore

    Ian Moore - 2015-12-07
    • status: open --> closed
    • Group: unassigned --> 5.0-4
     
  • Ian Moore

    Ian Moore - 2015-12-07

    Fixed in latest release.

     

Log in to post a comment.