View Issue Details

IDProjectCategoryView StatusLast Update
0001160bareos-coreGeneralpublic2024-03-20 14:52
Reportertuxmaster Assigned Toarogge  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionwon't fix 
PlatformLinuxOSCentOSOS Version7
Product Version18.2.7 
Summary0001160: The value for the name oftopn of an resurece must be ascii only
DescriptionWhen set the name to an resource contains no ascii chars then the director will not start.
Sample:
will work:
Pool {
name = foo
...
}
will fails:
Pool {
name = fooäöü
...
}
But the documentation says, that file files can be UTF-8.
Additional InformationUsing unicode chars in other options than name, it will work.
TagsNo tags attached.

Activities

arogge

arogge

2019-12-16 17:25

manager   ~0003673

Where in the docs does it say that you can use anything non-ascii for a resource name?
If it is documented like that it is simply wrong and we would have to update the documentation.
tuxmaster

tuxmaster

2019-12-16 17:59

reporter   ~0003674

I have read this documentation:
https://docs.bareos.org/Configuration/CustomizingTheConfiguration.html
Under the section "Character Sets" https://docs.bareos.org/Configuration/CustomizingTheConfiguration.html#character-sets
is written, that bareos will use UTF-8 encodings.
And in the section of the name resource there is only spoken of alphanumeric characters. So for example an 'ä' is an normal character.
So then there must be an hint here, that only asciii chars, are allowed here. Because for options that accept an string, utf-8 chars are working.
arogge

arogge

2019-12-17 09:45

manager   ~0003677

In the data-type section at https://docs.bareos.org/Configuration/CustomizingTheConfiguration.html#data-types there is the following description:

"""
A keyword or name consisting of alphanumeric characters, including the hyphen, underscore, and dollar characters. The first character of a name must be a letter. A name has a maximum length currently set to 127 bytes.
Please note that Bareos resource names as well as certain other names (e.g. Volume names) must contain only letters (including ISO accented letters), numbers, and a few special characters (space, underscore, …). All other characters and punctuation are invalid.
"""

We can improve the documentation for that quite a lot. However, I'm not sure it is sufficient to do it here. Do you think we should add another hint somewhere else?
tuxmaster

tuxmaster

2019-12-17 18:27

reporter   ~0003678

I think it will be better, general say, that only ascii chars are allowed under the general section.
Or when possible modify the parser, so that it will accept utf-8 strings on all settings.
bruno-at-bareos

bruno-at-bareos

2024-03-20 14:52

manager   ~0005858

no changes will occurs without community proposal (PR) or sponsored code.

Issue History

Date Modified Username Field Change
2019-12-15 13:01 tuxmaster New Issue
2019-12-16 17:25 arogge Assigned To => arogge
2019-12-16 17:25 arogge Status new => feedback
2019-12-16 17:25 arogge Note Added: 0003673
2019-12-16 17:59 tuxmaster Note Added: 0003674
2019-12-16 17:59 tuxmaster Status feedback => assigned
2019-12-17 09:45 arogge Note Added: 0003677
2019-12-17 18:27 tuxmaster Note Added: 0003678
2024-03-20 14:52 bruno-at-bareos Status assigned => closed
2024-03-20 14:52 bruno-at-bareos Resolution open => won't fix
2024-03-20 14:52 bruno-at-bareos Note Added: 0005858