View Issue Details

IDProjectCategoryView StatusLast Update
0001262bareos-coreGeneralpublic2023-09-13 18:47
Reporteramelentjev Assigned Tobruno-at-bareos  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Summary0001262: IgnoreCase with not-ascii paths breaks RegexFile
DescriptionIn Fileset resource description RegexFile does not match files if IgnoreCase = yes and their paths contains non-ascii symbols (bug found on cyrillic charset)

Example :

FileSet {
  Name = "_TS"
  Include {
    Options {
      Exclude = yes
      IgnoreCase = Yes
      RegexFile = "D:/Почта/.*\.msf$"
    }
    File = "D:/Почта"
  }
}

Files with *,msf extension does not exclude from backup. If IgnoreCase=yes removed everything is working as intended. Also if path and RegexFile contain only ASCII characters, for example D:/temp , it also works.
Steps To Reproduceconfigure such Fileset, for example:

FileSet {
  Name = "_TS"
  Include {
    Options {
      Exclude = yes
      IgnoreCase = Yes
      RegexFile = "D:/Почта/.*\.msf$"
    }
    File = "D:/Почта"
  }
}

files with msf extension doesn't exclude from backup
TagsNo tags attached.

Activities

bruno-at-bareos

bruno-at-bareos

2023-09-05 16:45

manager   ~0005382

The RegexFile is using the fnmatch C function.
https://pubs.opengroup.org/onlinepubs/000095399/functions/fnmatch.html

As Windows NTFS is already a Case ignorant, it is probable that adding a second IgnoreCase = yes make the reverse of expected.

Would you mind to check (with recent code 22.1.0 at least) if this is also the case on a pure *nix filesystem.
Thanks
bruno-at-bareos

bruno-at-bareos

2023-09-13 18:47

manager   ~0005440

Don't use IgnoreCase on FS that already do that.

Issue History

Date Modified Username Field Change
2020-07-10 17:34 amelentjev New Issue
2023-09-05 16:45 bruno-at-bareos Assigned To => bruno-at-bareos
2023-09-05 16:45 bruno-at-bareos Status new => feedback
2023-09-05 16:45 bruno-at-bareos Note Added: 0005382
2023-09-13 18:47 bruno-at-bareos Status feedback => closed
2023-09-13 18:47 bruno-at-bareos Resolution open => no change required
2023-09-13 18:47 bruno-at-bareos Note Added: 0005440