This was due to missing changesets in the 1.1.2 release
related to
roles/authsystem/registration modules. The correct changes
are already in
the current monotone repository and available in the nightly
download if you
don't have monotone.
Jo
"Chris Hayes" <chayes antenna.nl> wrote in
message
news:mailman.474.1157921654.5576.xaraya_devel xaraya.com...
> sorry for mailing it here. I bumped into an error on
bugs.xaraya.com.
>
> Core: Roles module
> Xaraya112 basic
> php5 (but also php4)
>
>
============================================================
============
> SUMMARY
>
============================================================
============
>
> Empty default value defaultregmodname unexpected in
getvalidation -> error
>
>
============================================================
============
> DETAILS
>
============================================================
============
>
> Xaraya 112.
> * trying to confirm email on user registration, one
arrives in:.
> * modules/roles/xaruser/getvalidation.php line 47-50:
> //Get default registration module info if any
>
$defaultregdata=xarModAPIFunc('roles','user','getdefaultregd
ata');
> $regmodule=$defaultregdata['defaultregmodname'];
>
$regmoduleactive=$defaultregdata['defaultregmodactive'];
> * modules/roles/xaruserapi/getdefaultregdata.php
> line 16/17 function description:
> * return array defaultregmodname string, empty if no
active registration
> module
> * defaultregmodactive boolean, regmodule
is active or not
>
> * So in my setup this results in an empty value for
$regmodule
>
> * however.
> * modules/roles/xaruser/getvalidation.php about line
60:
> $newpending = xarModGetVar($regmodule,
'explicitapproval');
> uses $regmodule which is empty.
>
> * includes/xarMod.php function xarModGetVar receives
this as $modName:
>
> if (empty($modName)) {
> xarErrorSet(XAR_SYSTEM_EXCEPTION, 'EMPTY_PARAM',
'modName');
> return;
> }
>
>
>
============================================================
============
> REPRODUCE
>
============================================================
============
> 1. Install Xaraya 112 with user registration set to ask
for confirmation
> 2. Subscribe new user
> 3. Follow confirmation
> Note: see extra notes!
>
>
============================================================
============
> ACTUAL RESULTS
>
============================================================
============
> Error: modName empty.
>
>
============================================================
============
> EXPECTED
>
============================================================
============
> Smooth registration.
>
>
============================================================
============
> ADDITONAL INFO
>
============================================================
============
> MAYBE IT HAS TO DO WITH INSTALLING MY OWN MODULES.
>
> But still, a check for empty result of regmodule should
be added.
>
> An aside:
> *PLEASE* add file, functionname and linenumber to the
error message.
>
>
>
============================================================
============
> SEVERITY
>
============================================================
============
> For my situation, highly annoying.
> But this situation may be rare.
>
>
>
>
>
_______________________________________________
Xaraya_devel mailing list
Xaraya_devel xaraya.com
http:
//xaraya.com/mailman/listinfo/xaraya_devel
|