Skip to content

When URL_PATH is blank, it should assume that it is '/' #2908

@ibatten

Description

@ibatten

Describe the bug

Consider a configuration where nginx is set up with:

server {
...
server_name cacti.dom.ain;
...
root /usr/share/cacti/site;
}

Under <= 1.1.38 (I believe) you could do upgrades with $url_path set to ''. It now appears to need '/', and goes badly wrong (extensive attempts to fetch cacti.domain/install/install/thing.js, note double install) unless this is corrected.

[[ I have been trying to get onto the 1.2 train for some months, on and off. I finally built a replica system and systematically fixed all the load problems I was seeing with symlinks, until I could get to a stage where it was more obvious what the problem was ]]

To Reproduce

Set url_path to '' in config.php. Attempt to perform an upgrade.

Expected behavior

A better error message, or simply set it to '/' if it is ''.

Screenshots

Desktop (please complete the following information):

Desktop Safari latest or Chrome latest on MacOS. Server is Debian 10 out of the box. I doubt either matters much.

Metadata

Metadata

Assignees

Labels

bugUndesired behaviourresolvedA fixed issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions