View Issue Details

IDProjectCategoryView StatusLast Update
0000771bareos-core[All Projects] webuipublic2017-01-27 11:58
ReporterkhetzalAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSanyOS Version3
Product Version16.2.4 
Fixed in Version16.2.5 
Summary0000771: 404 error when browsing a host starting with a number
DescriptionHello,

I've find an issue with hosts starting by a numeric value.
We name our hosts by fqdn. Some of them start with a numeric value. When we click on the hostname, we have a 404 error on the url:

http://mybackupserver/bareos-webui/client/details/001-my-host.fqdn-fd

There is the problem with all hosts that start by a number, and no problem with other hosts.

I think it's linked to https://bugs.bareos.org/view.php?id=595 :

/module/Client/config/module.config.php

Line 46:
'id' => '[a-zA-Z][a-zA-Z0-9\._-]*',
has to be changed to

'id' => '[a-zA-Z0-9][a-zA-Z0-9\._-]*',

But I've not tested the fix.
TagsNo tags attached.
bareos-master: impactyes
bareos-master: actionfixed
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: impactyes
bareos-16.2: actionfixed
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

Activities

frank

frank

2017-01-27 11:55

manager   ~0002537

Fix committed to bareos-webui bareos-16.2 branch with changesetid 6837.
frank

frank

2017-01-27 11:55

manager   ~0002539

Fix committed to bareos-webui master branch with changesetid 6841.

Related Changesets

bareos-webui: bareos-16.2 56eb3bbf

2017-01-26 11:36:51

frank

Ported: N/A

Details Diff
Fix to bugreport 0000771

Fixes 0000771: 404 error when browsing a host starting with a number
Affected Issues
0000771
mod - module/Client/config/module.config.php Diff File

bareos-webui: master ea0202e9

2017-01-26 11:36:51

frank

Ported: N/A

Details Diff
Fix to bugreport 0000771

Fixes 0000771: 404 error when browsing a host starting with a number
Affected Issues
0000771
mod - module/Client/config/module.config.php Diff File

Issue History

Date Modified Username Field Change
2017-01-26 09:56 khetzal New Issue
2017-01-26 11:27 frank Assigned To => frank
2017-01-26 11:27 frank Status new => assigned
2017-01-26 11:34 frank Status assigned => confirmed
2017-01-27 11:55 frank Changeset attached => bareos-webui bareos-16.2 56eb3bbf
2017-01-27 11:55 frank Note Added: 0002537
2017-01-27 11:55 frank Status confirmed => resolved
2017-01-27 11:55 frank Resolution open => fixed
2017-01-27 11:55 frank Changeset attached => bareos-webui master ea0202e9
2017-01-27 11:55 frank Note Added: 0002539
2017-01-27 11:57 frank Status resolved => feedback
2017-01-27 11:57 frank Resolution fixed => reopened
2017-01-27 11:58 frank bareos-master: impact => yes
2017-01-27 11:58 frank bareos-master: action => fixed
2017-01-27 11:58 frank bareos-16.2: impact => yes
2017-01-27 11:58 frank bareos-16.2: action => fixed
2017-01-27 11:58 frank Assigned To frank =>
2017-01-27 11:58 frank Status feedback => closed
2017-01-27 11:58 frank Resolution reopened => fixed
2017-01-27 11:58 frank Fixed in Version => 16.2.5