jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => Bugs! => Topic started by: svherpen on 13.02.2023 10:18:41

Title: Incorrect URL redirect after file deletion - [Fixed in 4.0.18]
Post by: svherpen on 13.02.2023 10:18:41
Hi Arno,
This weekend I noticed the next behaviour: when deleting the file attachement via the front-end (in order to replace it with a newer file), I do get a 404 'page-not-found' message.
I'm not sure if this is because of the jDownloads 4.0.15 release.
Have you heard/seen similar situations?

Regards,
Sjaak
Title: Re: Incorrect URL redirect after file deletion
Post by: ColinM on 22.02.2023 15:26:01
Hi
Suggest you update to jD 4.0.17 beta which is available in
https://www.jdownloads.com/index.php/downloads/category/6-jdownloads.html

ColinM
Title: Re: Incorrect URL redirect after file deletion
Post by: svherpen on 22.02.2023 19:10:27
Unfortunately, that did not fix the problem.
Title: Re: Incorrect URL redirect after file deletion
Post by: ColinM on 22.02.2023 21:15:14
Hi
I tried the same when I had Error reporting on. It gave a 404 Page not found error with a trace:

()                                                                           JROOT\libraries\src\Router\Router.php:153
2    Joomla\CMS\Router\Router->parse()                    JROOT\libraries\src\Application\SiteApplication.php:736
3    Joomla\CMS\Application\SiteApplication->route()    JROOT\libraries\src\Application\SiteApplication.php:224
4    Joomla\CMS\Application\SiteApplication->doExecute()    JROOT\libraries\src\Application\CMSApplication.php:294
5    Joomla\CMS\Application\CMSApplication->execute()    JROOT\includes\app.php:61
6    require_once()                                                        JROOT\index.php:32

The Error from JROOT\libraries\src\Router\Router.php:153 is that the URL is invalid

When I went back in the file had been removed from the Download OK so that suggests it was when trying to return to the original view
I was  able to add a file ok from FE.
Colin
Title: Re: Incorrect URL redirect after file deletion
Post by: svherpen on 23.02.2023 19:02:54
Hi Colin,

I'm not argueing on the 404 error, in fact that's exactly what I meant to say. It should not be that jDownloads returns to a 404 error page after the file was deleted.
And yes, the file is deleted (so the functionality is working) and yes, I can add a new file.

But still the 404 should not be there when the file is deleted.
Title: Re: Incorrect URL redirect after file deletion
Post by: ColinM on 24.02.2023 17:34:15
Hi
I was just adding a full status report as that saves some time in sorting out the bug - which does of course need fixing.  I was not implying it is anyway acceptable!!!

Colin
Title: Re: Incorrect URL redirect after file deletion
Post by: svherpen on 24.02.2023 19:39:38
Thanks, then it was my misunderstanding. ;)
I'll wait for a future release where this will be fixed.

Sjaak
Title: Re: Incorrect URL redirect after file deletion - [Fixed in 4.0.18]
Post by: Arno on 25.02.2023 14:34:37
Hi Guys,
is already fixed in next beta release 4.0.18.
I will publish this release in the next days.