Bareos Bug Tracker
Bareos Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001020bareos-core[All Projects] webuipublic2018-10-10 09:372018-10-10 11:12
Reporterlinkstat 
Assigned Tofrank 
PrioritynormalSeveritymajorReproducibilityalways
StatusassignedResolutionopen 
PlatformLinuxOSDebianOS Version9
Product Version18.2.4-rc1 
Target VersionFixed in Version 
Summary0001020: Webui can not restore a client, if it contains spaces in its name
DescriptionAll my clients have names with spaces on their names like "client-fd using Catalog-XXX"; correctly handled (ie, enclosing the name in quotation marks, or escaping the space with \), this has not represented any problem... until now. Webui can even perform backup tasks (previously defined in the configuration files) and has not presented problems with the spaces. But when it came time to restore something ... it just does not seem to be able to properly handle the character strings that contain spaces inside. Apparently, cuts the string to first place especially found (as you can see by looking at the attached image).
Steps To ReproduceDefine a client whose name contains spaces inside, such as "hostname-fd Testing Client".
Try to restore a backup from Webui to that client (it does not matter that the backup was originally made in that client or that the newly defined client is a new destination for the restoration of a backup previously made in another client).
Webui will fail by saying "invalid client argument: hostname-fd". As you can see, Webui will "cut" the client's name to the first string before the first space, and since there is no hostname-fd client, the task will fail; or worse, if additionally there was a client whose name matched the first string before the first space, Webui will restore the wrong client.
Additional Informationbconsole does not present any problem when the clients contain spaces in their names (this of course, when the spaces are correctly handled by the human operator who writes the commands, either by enclosing the name with quotation marks, or escaping spaces with a backslash).
TagsNo tags attached.
bareos-master: impact
bareos-master: 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
Attached Filesjpg file icon Bareos - Can not restore when a client name has spaces in their name.jpg [^] (139,884 bytes) 2018-10-10 09:37

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2018-10-10 09:37 linkstat New Issue
2018-10-10 09:37 linkstat File Added: Bareos - Can not restore when a client name has spaces in their name.jpg
2018-10-10 11:12 frank Status new => assigned
2018-10-10 11:12 frank Assigned To => frank


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker