I noticed a bug on the login page. If you press "Next" without entering a
username and password, the issue occurs.
Thank you
++++++++++++++++++++++++++++++++
Prado\Exceptions\TPhpErrorException
Description
[Warning] Undefined array key "" (@line 161 in file
/var/www/bacularis/protected/vendor/bacularis/bacularis-common/Common/Modules/BasicUserConfig.php).
Source File
/var/www/bacularis/protected/vendor/bacularis/bacularis-common/Common/Modules/BasicUserConfig.php
(161)
0150: * @param string $user username
0151: * @param mixed $username
0152: * @return array username and password hash or empty array if user not
found
0153: */
0154: public function getUserCfg($username)
0155: {
0156: $user = [];
0157: $u = $this->getUsers($username);
0158: if (count($u) == 1) {
0159: $user = [
0160: 'username' => $username,
0161: 'pwd_hash' => $u[$username]
0162: ];
0163: }
0164: return $user;
0165: }
0166:
0167: /**
0168: * Save HTTP Basic users file.
0169: * Given parameter is associative array with usernames as keys
0170: * and encrypted passwords as values.
0171: *
0172: * @access public
0173: * @param array $all_users users/passwords list
Stack Trace
#0
/var/www/bacularis/protected/vendor/bacularis/bacularis-common/Common/Modules/BasicUserConfig.php(161):
Prado\Prado::phpErrorHandler()
#1
/var/www/bacularis/protected/vendor/bacularis/bacularis-web/Web/Modules/WebLocalUserManager.php(62):
Bacularis\Common\Modules\BasicUserConfig->getUserCfg()
#2
/var/www/bacularis/protected/vendor/bacularis/bacularis-web/Web/Modules/WebUserManager.php(122):
Bacularis\Web\Modules\WebLocalUserManager->validateUser()
#3
/var/www/bacularis/protected/vendor/bacularis/bacularis-web/Web/Pages/LoginPage.php(111):
Bacularis\Web\Modules\WebUserManager->validateUser()
#4 ${PradoFramework}/TComponent.php(1253): LoginPage->login()
#5 ${PradoFramework}/Web/UI/WebControls/TLinkButton.php(318):
Prado\TComponent->raiseEvent()
#6 ${PradoFramework}/Web/UI/WebControls/TLinkButton.php(305):
Prado\Web\UI\WebControls\TLinkButton->onClick()
#7 ${PradoFramework}/Web/UI/TPage.php(956):
Prado\Web\UI\WebControls\TLinkButton->raisePostBackEvent()
#8 ${PradoFramework}/Web/UI/TPage.php(286):
Prado\Web\UI\TPage->raisePostBackEvent()
#9 ${PradoFramework}/Web/UI/TPage.php(218):
Prado\Web\UI\TPage->processPostBackRequest()
#10 ${PradoFramework}/Web/Services/TPageService.php(547):
Prado\Web\UI\TPage->run()
#11 ${PradoFramework}/Web/Services/TPageService.php(465):
Prado\Web\Services\TPageService->runPage()
#12 ${PradoFramework}/TApplication.php(1262):
Prado\Web\Services\TPageService->run()
#13 ${PradoFramework}/TApplication.php(386):
Prado\TApplication->runService()
#14 ${DocumentRoot}/index.php(43): Prado\TApplication->run()
#15 {main}
++++++++++++++++++++++++++++++++
في الأحد، ٨ ديسمبر ٢٠٢٤ ٧:٥٤ ص wastn jak <[email protected]> كتب:
> Thank you for that 🌹🌹
>
> في الأحد، ٨ ديسمبر ٢٠٢٤ ٦:٠٢ ص Marcin Haba <[email protected]> كتب:
>
>> On Fri, 6 Dec 2024 at 11:29, Marcin Haba <[email protected]> wrote:
>> >
>> > On Thu, 5 Dec 2024 at 22:18, wastn jak <[email protected]> wrote:
>> > >
>> > > hi everyone
>> > > i was testing bacula and bacularis to use them when i try restore
>> backup in step 2 - select backup to restore if i press next button without
>> select job this error 👇 appears but when select job it's fine
>> > > you can solve it by appear text to select job next to Next button
>> > > I want to share this error with you and thanks all 🌹
>> >
>> > Hello wastn,
>> >
>> > Many thanks for reporting this bug. We will fix it.
>>
>> Hello wastn,
>>
>> This bug has been fixed. The fix will be available from the next
>> Bacularis release.
>>
>> Thanks.
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users