View Issue Details

IDProjectCategoryView StatusLast Update
0034783mantisbtinstallationpublic2024-09-30 04:22
Reportervboctor Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status feedbackResolutionopen 
Product Version2.26.1 
Summary0034783: Checking URL to installation is failing
Description

Starting with an empty db and no config_inc.php file. MantisBT is hosted locally on Mac OS under https://mantisbt/. The server is MAMP PRO running Apache and PHP 8.1.13

The content returned is null for the URL.

The curl extension is installed.

It doesn't seem that the curl extension or the curl command are set up to follow redirects. But even if a follow redirect is added (e.g. curl -L and the appropriate option in the curl extension options), it doesn't successfully follow the URL.

Overriding hard fail to false, installs successfully.

TagsNo tags attached.

Relationships

related to 0034782 resolveddregad Can't enable category General since 2.27.0 

Activities

dregad

dregad

2024-09-30 04:22

developer   ~0069295

The URL check in the installer was introduced in 2.26.1, as part of fixing security issue 0019381 (see commit MantisBT master-2.26 7055731d), so this should not be something new with 2.27.0.

The content returned is null for the URL.

Can you clarify whether that is an actual NULL, a boolean FALSE or an empty string ? I tested this under various scenarios, but never faced an issue like you describe. As far as I know, only shell_exec() can return NULL, this means that somehow the libcurl call failed (returned false), it would be interesting to know why.

Would you be able to trace what is happening in url_get() and provide details ?

As a side note, the code of url_get() is really dated, we should probably replace that by a GuzzleHttp Request.