VirtualBox

Ticket #7148 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

IVFSExplorer::entryList needs to return file/dir permission and file attributes -> Fixed in SVN

Reported by: joseph1962smith Owned by:
Priority: minor Component: webservices
Version: VirtualBox 3.2.4 Keywords:
Cc: Guest type: Linux
Host type: Linux

Description

The IVFSExplorer::entryList method currently returns an array of arrays.

Array (Array (list of files), Array (list of file types))

The first array is the name of the entry. The second array contains a corresponding entry that defines the entry type (VFSFileType).

To properly present a remote file/directory browser, the following attributes are required:

-RWX - Read/Write/eXecute permission for the user

-Size - Size of the file as reported by the filesystem

This will allow a remote user to only be presented with files they can access. Additionally, including the size of the file provides a way for the user to confirm the file they are viewing matches the size they expected.

This request is not for a full-blown remote file browser, but rather a modification to the existing list of data that is returned to include the permission of the file and it's size.

Since the result is already an array of arrays, the impact could be negligible if the additional information is provided in arrays. E.g:

Array (Array (list of files), Array (list of file types), Array (list of permissions), Array (list of sizes))

Change History

comment:1 Changed 3 years ago by poetzsch

  • Summary changed from IVFSExplorer::entryList needs to return file/dir permission and file attributes to IVFSExplorer::entryList needs to return file/dir permission and file attributes -> Fixed in SVN

Fixed in the next major release.

comment:2 Changed 3 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fix in VBox 4.0.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use