View Issue Details

IDProjectCategoryView StatusLast Update
0000766bareos-core[All Projects] webuipublic2017-03-02 17:28
ReporterfrankAssigned Tofrank 
PriorityhighSeveritymajorReproducibilityalways
Status confirmedResolutionopen 
Product Version 
Fixed in Version 
Summary0000766: Hardcoded default limit on .bvfs_lsdirs and .bvfs_lsfiles prevents webui from loading all directory content
DescriptionWebUI does not set a limit to retrieve directories and files via bvfs commands (.bvfs_lsfiles/.bvfs_lsdirs).

But a default limit of 2000 is set in the dird code, which is not documented in the BVFS API section of the Bareos Developers Manual or anywhere else.

See Bareos Source src/dird/ua_dotcmds.c line 455 and line 507.

This leads to a wrong display of directories and files in the restore tree of the webui in case of directories containing a file number or directory number greater than 2000 as obviously files and directories which should be listed are missing.
Additional InformationAlso it is not possible to set the limit to none via e.g. .bvfs_lsdirs path=/ jobid=9000 limit=0 which one might propably expect.

In addition the command helptext should mention the default limit, which it does not.

*help .bvfs_lsdirs
  Command Description
  ======= ===========
  .bvfs_lsdirs List directories using BVFS

Arguments:
    jobid=<jobid> path=<path> |
    pathid=<pathid> [limit=<limit>] [offset=<offset>]

When at a prompt, entering a period cancels the command.

*help .bvfs_lsfiles
  Command Description
  ======= ===========
  .bvfs_lsfiles List files using BVFS

Arguments:
    jobid=<jobid> path=<path> |
    pathid=<pathid> [limit=<limit>] [offset=<offset>]

When at a prompt, entering a period cancels the command.

*
TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-19.2: impact
bareos-19.2: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action

Relationships

related to 0000773 confirmedfrank Webui Restore don't show complete folder content of large folders 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2017-01-13 18:01 frank New Issue
2017-01-13 18:08 frank Assigned To => frank
2017-01-13 18:08 frank Status new => confirmed
2017-01-13 18:27 frank Description Updated View Revisions
2017-03-02 17:28 frank Relationship added related to 0000773