?
avatar Hg347
Hg347
2 Apr 2017

Steps to reproduce the issue

  1. In admin backend goto System;Global config;Users
  2. set Send Password=No

But the password is always sent!

Expected result

The password does not appear in email.

Actual result

The password does appears in email.

System information (as much as possible)

Joomla! 3.6.5 Stable [
OS Linux l
PHP 7.0.7
MySQLi 5.5.5-10.0.29-MariaDB

Additional comments

I assume the bug is in libraries/vendor/joomla/registry/src/
The way class Registry::get() is handling default values.
If sendpassword field in DB is 0, the final check
if (!$found || $node === null || $node === '')
fails since $node=0 and $node === null || $node === '' proably returns true.
In any case that final check is a problem. If the string in the database is set empty $node === ''
for a reason, the default value is returned, which is likely a bug too.

Votes

# of Users Experiencing Issue
0/1
Average Importance Score
3.00

avatar Hg347 Hg347 - open - 2 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Apr 2017
avatar AlexRed
AlexRed - comment - 2 Apr 2017

I can confirm the problem


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15060.

avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Apr 2017
Status New Confirmed
avatar flyingwombats
flyingwombats - comment - 5 Apr 2017

Tested in nightly on 5 April 2017 and its now working correctly with no not sending the password and yes sending it.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15060.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Apr 2017

@Hg347 @AlexRed can you confirm @flyingwombats so this Issue can be closed?

avatar AlexRed
AlexRed - comment - 5 Apr 2017

yes, now is ok. Joomla! 3.7.0-beta4 (nightly Build)

avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Apr 2017
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2017-04-05 11:03:27
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 5 Apr 2017
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 5 Apr 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 5 Apr 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Apr 2017

closed as Issue is resolved.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15060.

Add a Comment

Login with GitHub to post a comment