Fix S3 use_ssl
and autocreate
default values
#1948
Labels
1. To develop
bug
feature: auto config (environment variables)
Auto configuring via environment variables
needs review
Needs confirmation this is still happening or relevant
Description
From the PHP Manual for
getenv
, we haveNow check this out
docker/.config/s3.config.php
Line 3 in a15c755
docker/.config/s3.config.php
Line 19 in a15c755
Value not set ->
getenv
returnsfalse
->use_ssl
getsfalse
-> ternary goes tofalse
This is a great example of why to not allow poorly written code into a codebase. It obfuscates things.
Should probably be
There are several other suspicious variables. Using a ternary operator for a boolean expression is redundant. Not relying on truthy falsy values in favor of explicit checks is also somewhat suspicious here.
docker/.config/s3.config.php
Lines 18 to 23 in a15c755
docker/.config/swift.config.php
Line 8 in a15c755
Requirements
OBJECTSTORE_S3_BUCKET
(use defaults)autocreate
istrue
use_ssl
istrue
use_path_style
isfalse
legacy_auth
isfalse
OBJECTSTORE_SWIFT_URL
autocreate
isfalse
The text was updated successfully, but these errors were encountered: