No Code Attached Yet bug
avatar Kaushik1216
Kaushik1216
12 Feb 2023

Steps to reproduce the issue

If sessions exipired and if you are in media manager .If you try to upload ,delete,createfolder ,sharelink,download etc except editing of
images you get a unexpected error . This is not in case of edit because edit functionalty is plugin and their is check in media component before calling plugin so in that case user redirect to login page if session expires

Expected result

After session expire user must redirect to login page if he/she try to do any thing on adminstrator end just like in all component .

Actual result

following errors

1

3

System information (as much as possible)

Joomla 4.2.7

Additional comments

avatar Kaushik1216 Kaushik1216 - open - 12 Feb 2023
avatar joomla-cms-bot joomla-cms-bot - change - 12 Feb 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 12 Feb 2023
avatar Kaushik1216 Kaushik1216 - change - 12 Feb 2023
Title
Media session expire unexpected behavior
On session expire media component unexpected behaviour
avatar Kaushik1216 Kaushik1216 - edited - 12 Feb 2023
avatar Ntrv3390
Ntrv3390 - comment - 18 Feb 2023

This error can be solve by adding the following code in libraries/src/Session/Storage/Storage.php

in the set() method

$app = JFactory::getApplication();
if (!$this->getId()) {
$app->redirect(JRoute::_('index.php?option=com_users&view=login&return=' . base64_encode(JUri::getInstance()->toString()), false));
}

avatar alikon alikon - change - 18 Feb 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-02-18 07:36:31
Closed_By alikon
avatar alikon alikon - close - 18 Feb 2023
avatar alikon
alikon - comment - 18 Feb 2023

closing as we have a pr #39884

avatar alikon alikon - change - 19 Feb 2023
Status Closed New
Closed_Date 2023-02-18 07:36:31
Closed_By alikon
avatar alikon alikon - reopen - 19 Feb 2023
avatar alikon
alikon - comment - 19 Feb 2023

reopen as pr #39884 has been closed

avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 22 Feb 2023

Add a Comment

Login with GitHub to post a comment