jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => Bugs! => Topic started by: rockbaer2007 on 09.01.2023 15:19:16

Title: Immer noch > You have not supplied a valid HTTP status code - [Fixed in 4.0.15]
Post by: rockbaer2007 on 09.01.2023 15:19:16
Hallo Arno,
wenn auf Downloadbutton klicken bekomme ich immer noch folgende Meldung:0 You have not supplied a valid HTTP status code

dann habe ich den Link per Rechtsklick - "Adresse des Link kopieren" kopiert (1) und in neues Tab eingefügt  und Enter und es kommt die obige Meldung, wenn in ich aber verkürze (2) ein Enter
funktioniert der Download

(1) https://www.ugso-software.de/index.php/download-new-testpage?task=download.send&id=1&catid=2&m=0
(2) https://www.ugso-software.de/index.php/download-new-testpage?task=download.send&id=1

Das komisch ist der Link wird automatisch zu der Adresse wie (1)
also nach dem Download des Programm steht da (1) in der Zeile

Hello Arno,
when click on download button I still get the following message:0 You have not supplied a valid HTTP status code

then I copied the link by right click - "copy address of link" (1) and pasted into new tab and enter and it comes the above message, but if in I shorten (2) an enter
the download works

(1) https://www.ugso-software.de/index.php/download-new-testpage?task=download.send&id=1&catid=2&m=0
(2) https://www.ugso-software.de/index.php/download-new-testpage?task=download.send&id=1

The funny thing is the link will automatically go to the adress like (1)
so after downloading the program it says (1) in the line


Translated with www.DeepL.com/Translator (free version)

jDownloads Version 4.0.12 pre beta
Title: Re: Immer noch > 0 You have not supplied a valid HTTP status code
Post by: rockbaer2007 on 09.01.2023 15:55:47
Hier der Link zur Downloadseite
https://www.ugso-software.de/index.php/download-new-testpage/category/2-unkategorisiert

Hinweis an den Jdownloads Einstellungen habe ich nichts geändert

Here is the link to the download page
https://www.ugso-software.de/index.php/download-new-testpage/category/2-unkategorisiert

Note I have not changed anything in the Jdownloads settings
Title: Re: Immer noch > 0 You have not supplied a valid HTTP status code
Post by: Arno on 09.01.2023 16:58:05
Hallo,
das hattest du schon mal nachgesehen?
https://www.jdownloads.com/forum/index.php?topic=13733.msg48711#msg48711

Ist das ein Update (von 3.9.x) oder eine neue jDownloads 4 Installation?
Wenn Update, mit welcher Version (ungefähr, oder Datum) wurde das durchgeführt?
--------------------------------------------------------------------------------------Added by ColinM-------------
Hello,
did you already look at that?
https://www.jdownloads.com/forum/index.php?topic=13733.msg48711#msg48711

Is this an update (from 3.9.x) or a new jDownloads 4 installation?
If update, with which version (roughly, or date) was this done?
Title: Re: Immer noch > 0 You have not supplied a valid HTTP status code
Post by: Arno on 09.01.2023 20:25:52
Benutzt du die Option zum direkten starten des Downloads?
Also ohne vorherigen Anzeige der Zusammenfassung.


Do you use the option to start the download directly?
That is, without first displaying the summary.
Title: Re: Immer noch > 0 You have not supplied a valid HTTP status code
Post by: Arno on 10.01.2023 12:16:47
Okay. Es scheint sich um einen Bug zu handeln der dann auftritt wenn die obigen Option verwendet wird (in Verbindung mit aktiver sef option in Joomla).
Betrifft also alle User mit dieser Kombination.
Ich versuche es heute oder morgen zu fixen.


Okay. It seems to be a bug that occurs when the above option is used (in combination with an active sef option in Joomla).
So it affects all users with this combination.
I will try to fix it today or tomorrow. 
Title: Re: Immer noch > 0 You have not supplied a valid HTTP status code
Post by: Arno on 12.01.2023 00:29:35
Hi,
ich schick dir morgen mal einen fix zum testen.
Bin leider etwas krank.


Hi,
I'll send you a fix tomorrow to test.
Unfortunately I'm a bit sick.
Title: Re: Immer noch > 0 You have not supplied a valid HTTP status code
Post by: rockbaer2007 on 17.01.2023 10:20:38
Quote from: Arno on 09.01.2023 20:25:52
Benutzt du die Option zum direkten starten des Downloads?
Also ohne vorherigen Anzeige der Zusammenfassung.


Do you use the option to start the download directly?
That is, without first displaying the summary.
Nein benutze ich nicht.


No I do not use.
Title: Re: Immer noch > 0 You have not supplied a valid HTTP status code
Post by: Arno on 19.01.2023 01:22:01
Hat sich das Problem nun mit der Version 4.0.13 erledigt? Hast du es installiert und getestet?
Falls nicht, bitte ich erneut um ein Akeeba Backup da ich das Problem sonst mangels Reproduzierung wohl nicht lösen kann.


Has the problem now been solved with version 4.0.13? Have you installed and tested it?
If not, please make another Akeeba backup, otherwise I will probably not be able to solve the problem due to lack of reproduction.
Title: Re: Immer noch > 0 You have not supplied a valid HTTP status code
Post by: rockbaer2007 on 19.01.2023 10:17:50
Hallo Arno,

ich sende dir das Backup am WE
Title: Re: Immer noch > 0 You have not supplied a valid HTTP status code
Post by: Arno on 20.01.2023 20:08:51
Okay. Danke.
Title: Re: Immer noch > 0 You have not supplied a valid HTTP status code
Post by: keep2000 on 24.01.2023 15:28:36
Got the issue with clean installed 4.0.12, and it's still there after updated to 4.0.14

There is a category, which is public. There is a file in it, which is restricted to registered.
With super user level, it does work.
With registered user, I get this: You have not supplied a valid HTTP status code

Details:

InvalidArgumentException Object
(
    [message:protected] => You have not supplied a valid HTTP status code
    [string:Exception:private] =>
    [code:protected] => 0
    [file:protected] => .../libraries/vendor/joomla/application/src/AbstractWebApplication.php
    [line:protected] => 507
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => .../libraries/src/Application/CMSApplication.php
                    [line] => 975
                    [function] => redirect
                    [class] => Joomla\Application\AbstractWebApplication
                    [type] => ->
                )

            [1] => Array
                (
                    [file] => .../components/com_jdownloads/src/Controller/DownloadController.php
                    [line] => 664
                    [function] => redirect
                    [class] => Joomla\CMS\Application\CMSApplication
                    [type] => ->
                )



I backtraced a bit and it's maybe aroud line 649 in DownloadController, $allow = $user->authorise('download', 'com_jdownloads.category.'.$catid); is false.

When I check the settings and allow the download permission to registered (like this: https://snipboard.io/MFKEDC.jpg ) I can download the file.

So it must be there, also need a proper message in this case.
Title: Re: Immer noch > 0 You have not supplied a valid HTTP status code
Post by: Arno on 26.01.2023 16:17:58
Quote from: keep2000 on 24.01.2023 15:28:36
Got the issue with clean installed 4.0.12, and it's still there after updated to 4.0.14

There is a category, which is public. There is a file in it, which is restricted to registered.
With super user level, it does work.
With registered user, I get this: You have not supplied a valid HTTP status code

I backtraced a bit and it's maybe aroud line 649 in DownloadController, $allow = $user->authorise('download', 'com_jdownloads.category.'.$catid); is false.

When I check the settings and allow the download permission to registered (like this: https://snipboard.io/MFKEDC.jpg ) I can download the file.

So it must be there, also need a proper message in this case.
Hi,
okay, thanks I will check this this evening.
Title: Re: Immer noch > 0 You have not supplied a valid HTTP status code
Post by: Arno on 30.01.2023 14:45:45
QuoteThere is a category, which is public. There is a file in it, which is restricted to registered.
With super user level, it does work.
With registered user, I get this: You have not supplied a valid HTTP status code

Ich veröffentliche heute noch die Version 4.0.15. Damit habe ich das Szenario oben erfolgreich getestet. Bitte installiere diese und teste es dann erneut.


Today I am releasing version 4.0.15. I have successfully tested the scenario above with it. Please install it and then test it again.