View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
13324Bug reportsAuthenticationpublic2018-02-09 17:02
Reporterminnoce Assigned ToDenisChenu  
PrioritynoneSeverityblock 
Status closedResolutionfixed 
Fixed in Version3.2.x 
Summary13324: Limesurvey crash after activating webserver authentication plugin
Description

I configured my webserver for doing basic authentication under admin area of Limesurvey and activated the Webserver authentication plugin.
Trying to authenticate again to Limesurvey cause a crash with some PHP errors messages:
Notice: Undefined variable: user in /dati/data/libs/limesurvey3.2.1+180208/application/core/plugins/Authwebserver/Authwebserver.php on line 109
Notice: Trying to get property of non-object in /dati/data/libs/limesurvey3.2.1+180208/application/core/plugins/Authwebserver/Authwebserver.php on line 109

Inspecting Limesurvey PHP code at line 109 of "Authwebserver.php" there is a reference to "$user->uid", but $user at this point is not defined.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)3.2.1+180208
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL 5.6
Server OS (if known)CentOS
Webserver software & version (if known)Apache 2.2
PHP Version5.6

Users monitoring this issue

There are no users monitoring this issue.

Activities

ollehar

ollehar

2018-02-09 10:22

administrator   ~46337

Offensive commit: https://github.com/LimeSurvey/LimeSurvey/commit/06de2953b82852e1c4c8c627fd4b1bdf58811a53#diff-c572bc22f6261eb7203a86ce9c5640e5L113

ollehar

ollehar

2018-02-09 10:22

administrator   ~46338

Please consider adding a regression test!

ollehar

ollehar

2018-02-09 10:28

administrator   ~46339

And consider integrating this program with your editor ;) https://phpmd.org/

DenisChenu

DenisChenu

2018-02-09 10:48

developer   ~46340

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=26403

c_schmitz

c_schmitz

2018-02-09 17:02

administrator   ~46357

Version 3.3.0 released

Related Changesets

LimeSurvey: master 1230ac2f

2018-02-09 10:48:08

DenisChenu

Details Diff
Fixed issue 13324: Limesurvey crash after activating webserver authentication plugin Affected Issues
13324
mod - application/core/plugins/Authwebserver/Authwebserver.php Diff File

Issue History

Date Modified Username Field Change
2018-02-09 09:42 minnoce New Issue
2018-02-09 10:21 ollehar Assigned To => DenisChenu
2018-02-09 10:21 ollehar Status new => assigned
2018-02-09 10:22 ollehar Note Added: 46337
2018-02-09 10:22 ollehar Note Added: 46338
2018-02-09 10:28 ollehar Note Added: 46339
2018-02-09 10:48 DenisChenu Changeset attached => LimeSurvey master 1230ac2f
2018-02-09 10:48 DenisChenu Note Added: 46340
2018-02-09 10:48 DenisChenu Resolution open => fixed
2018-02-09 10:49 DenisChenu Status assigned => resolved
2018-02-09 10:49 DenisChenu Fixed in Version => 3.2.x
2018-02-09 17:02 c_schmitz Note Added: 46357
2018-02-09 17:02 c_schmitz Status resolved => closed