Page MenuHomePhabricator

Avoid errors in CLI mode when user has no name
Closed, ResolvedPublic

Description

MWLBFactory tries to determine the current user's name using posix_getpwuid(). This will however fail if the current user has no name, which is the case when running in our standard docker environment. This would cause an error message something like this:

Notice: Trying to access array offset on value of type bool in /var/www/html/w/includes/db/MWLBFactory.php on line 401

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 692938 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):

[mediawiki/core@master] Avoid errors in CLI mode when user has no name

https://gerrit.wikimedia.org/r/692938

daniel claimed this task.
daniel updated the task description. (Show Details)

marged. that was quick!

Change 692938 merged by jenkins-bot:

[mediawiki/core@master] Avoid errors in CLI mode when user has no name

https://gerrit.wikimedia.org/r/692938