View Issue Details

IDProjectCategoryView StatusLast Update
0001265bareos-corewebuipublic2021-04-26 15:47
Reporterdevops Assigned Toarogge  
PriorityhighSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSDebianOS Version10
Product Version19.2.8 
Summary0001265: Filenames with spaces - no "Available versions" in restore dialog + Fix
DescriptionHello,

I found a bug in the webui. No "Available versions" are displayed for files with a name containing a space.
If you search the file via bconsole, you will find the information.

Steps To Reproduce1. backup a file with space in the filename
2. open webui
3. select restore and "Restore specific file version"
4. select the backuped file
Additional InformationWorkaround:

1. edit /usr/share/bareos-webui/module/Restore/src/Restore/Model/RestoreModel.php
2. change

from

public function getFileVersions(&$bsock=null, $clientname=null, $pathid=null, $filename=null) {
      if(isset($bsock)) {
         $cmd = '.bvfs_versions jobid=0 client='.$clientname.' pathid='.$pathid.' fname=' .$filename;

to

public function getFileVersions(&$bsock=null, $clientname=null, $pathid=null, $filename=null) {
      if(isset($bsock)) {
         $cmd = '.bvfs_versions jobid=0 client='.$clientname.' pathid='.$pathid.' fname="'.$filename .'"';
Tagswebui

Activities

arogge

arogge

2020-08-21 12:23

manager   ~0004033

Can you please open a PR in our github repository with your proposed fix?
Thank you!
devops

devops

2020-08-21 14:35

reporter   ~0004034

Done :)

https://github.com/bareos/bareos/pull/576
arogge

arogge

2021-04-26 15:47

manager   ~0004126

Reporter filed a PR that has been merged.

Issue History

Date Modified Username Field Change
2020-08-05 13:55 devops New Issue
2020-08-05 13:55 devops Tag Attached: webui
2020-08-21 12:23 arogge Assigned To => arogge
2020-08-21 12:23 arogge Status new => feedback
2020-08-21 12:23 arogge Note Added: 0004033
2020-08-21 14:35 devops Note Added: 0004034
2020-08-21 14:35 devops Status feedback => assigned
2021-04-26 15:47 arogge Status assigned => resolved
2021-04-26 15:47 arogge Resolution open => fixed
2021-04-26 15:47 arogge Note Added: 0004126
2021-04-26 15:47 arogge Status resolved => closed