jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => General => Topic started by: borja on 19.09.2016 13:14:30

Title: redirect
Post by: borja on 19.09.2016 13:14:30
Hello

In my web i´ve got links such as:
/web/index.php/component/jdownloads/send/152-misericordes-sicut-pater-himno-jubileo-misericordia-2016/1164-himno-para-el-ano-santo-de-la-misericordia-esp
but it generated sometimes in the log of the server:
37.134.135.159 - - [19/Sep/2016:10:04:05 +0200] "GET /web/index.php/component/jdownloads/send/152-misericordes-sicut-pater-himno-jubileo-misericordia-2016/1164-himno-para-el-ano-santo-de-la-misericordia-esp HTTP/1.0" 303 554 "-" "Dalvik/2.1.0 (Linux; U; Android 5.1; P6000 Pro Build/LMY47D)"
37.134.135.159 - - [19/Sep/2016:10:04:05 +0200] "GET /web/index.php/component/jdownloads/send/152-misericordes-sicut-pater-himno-jubileo-misericordia-2016/1164-himno-para-el-ano-santo-de-la-misericordia-esp?option=com_jdownloads HTTP/1.0" 303 554 "-" "Dalvik/2.1.0 (Linux; U; Android 5.1; P6000 Pro Build/LMY47D)"
37.134.135.159 - - [19/Sep/2016:10:04:05 +0200] "GET /web/index.php/component/jdownloads/send/152-misericordes-sicut-pater-himno-jubileo-misericordia-2016/1164-himno-para-el-ano-santo-de-la-misericordia-esp?option=com_jdownloads HTTP/1.0" 303 554 "-" "Dalvik/2.1.0 (Linux; U; Android 5.1; P6000 Pro Build/LMY47D)"
37.134.135.159 - - [19/Sep/2016:10:04:06 +0200] "GET /web/index.php/component/jdownloads/send/152-misericordes-sicut-pater-himno-jubileo-misericordia-2016/1164-himno-para-el-ano-santo-de-la-misericordia-esp?option=com_jdownloads HTTP/1.0" 303 554 "-" "Dalvik/2.1.0 (Linux; U; Android 5.1; P6000 Pro Build/LMY47D)"
37.134.135.159 - - [19/Sep/2016:10:04:06 +0200] "GET /web/index.php/component/jdownloads/send/152-misericordes-sicut-pater-himno-jubileo-misericordia-2016/1164-himno-para-el-ano-santo-de-la-misericordia-esp?option=com_jdownloads HTTP/1.0" 303 554 "-" "Dalvik/2.1.0 (Linux; U; Android 5.1; P6000 Pro Build/LMY47D)"


What´s wrong? Why is happening that sometimes?  I don´t understand the redirection.

and in the browser i´ve got a message such as:
Could not open the page, too many redirectsior
but with other browser:

213.144.36.80 - - [19/Sep/2016:13:11:44 +0200] "GET /web/index.php/component/jdownloads/send/152-misericordes-sicut-pater-himno-jubileo-misericordia-2016/1164-himno-para-el-ano-santo-de-la-misericordia-esp HTTP/1.0" 200 79488 "http://www.corodiocesano.es/web/index.php/partituras-ensayo" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0"

Title: Re: redirect
Post by: Arno on 19.09.2016 14:35:55
Hi borja,
I have not enough experiences with server hosting and server log files so i can not help here really.
Please contact your hoster for this.
Title: Re: redirect
Post by: borja on 19.09.2016 15:41:58
its a problem with joomla and the sef component but only happens with some browsers and with jdownloads.

Title: Re: redirect
Post by: borja on 20.09.2016 14:17:23
i´ve been looking and i don´t understand.




where is it processed this kind of link:
web/index.php/component/jdownloads/send/category/file?

is it processed in jdownloads? In which class/file?

is there any place where it is added "?option=com_jdownloads"? with some browsers?
Title: Re: redirect
Post by: borja on 20.09.2016 14:52:10
As i have been looking this url are similar to:


/web/index.php?option=com_jdownloads&task=download.send&id=968&catid=93&m=0

where are processed? Is there any problem in using the friendly one or this one?



Quote from: borja on 19.09.2016 13:14:30
Hello

In my web i´ve got links such as:
/web/index.php/component/jdownloads/send/152-misericordes-sicut-pater-himno-jubileo-misericordia-2016/1164-himno-para-el-ano-santo-de-la-misericordia-esp
but it generated sometimes in the log of the server:
37.134.135.159 - - [19/Sep/2016:10:04:05 +0200] "GET /web/index.php/component/jdownloads/send/152-misericordes-sicut-pater-himno-jubileo-misericordia-2016/1164-himno-para-el-ano-santo-de-la-misericordia-esp HTTP/1.0" 303 554 "-" "Dalvik/2.1.0 (Linux; U; Android 5.1; P6000 Pro Build/LMY47D)"
37.134.135.159 - - [19/Sep/2016:10:04:05 +0200] "GET /web/index.php/component/jdownloads/send/152-misericordes-sicut-pater-himno-jubileo-misericordia-2016/1164-himno-para-el-ano-santo-de-la-misericordia-esp?option=com_jdownloads HTTP/1.0" 303 554 "-" "Dalvik/2.1.0 (Linux; U; Android 5.1; P6000 Pro Build/LMY47D)"
37.134.135.159 - - [19/Sep/2016:10:04:05 +0200] "GET /web/index.php/component/jdownloads/send/152-misericordes-sicut-pater-himno-jubileo-misericordia-2016/1164-himno-para-el-ano-santo-de-la-misericordia-esp?option=com_jdownloads HTTP/1.0" 303 554 "-" "Dalvik/2.1.0 (Linux; U; Android 5.1; P6000 Pro Build/LMY47D)"
37.134.135.159 - - [19/Sep/2016:10:04:06 +0200] "GET /web/index.php/component/jdownloads/send/152-misericordes-sicut-pater-himno-jubileo-misericordia-2016/1164-himno-para-el-ano-santo-de-la-misericordia-esp?option=com_jdownloads HTTP/1.0" 303 554 "-" "Dalvik/2.1.0 (Linux; U; Android 5.1; P6000 Pro Build/LMY47D)"
37.134.135.159 - - [19/Sep/2016:10:04:06 +0200] "GET /web/index.php/component/jdownloads/send/152-misericordes-sicut-pater-himno-jubileo-misericordia-2016/1164-himno-para-el-ano-santo-de-la-misericordia-esp?option=com_jdownloads HTTP/1.0" 303 554 "-" "Dalvik/2.1.0 (Linux; U; Android 5.1; P6000 Pro Build/LMY47D)"


What´s wrong? Why is happening that sometimes?  I don´t understand the redirection.

and in the browser i´ve got a message such as:
Could not open the page, too many redirectsior
but with other browser:

213.144.36.80 - - [19/Sep/2016:13:11:44 +0200] "GET /web/index.php/component/jdownloads/send/152-misericordes-sicut-pater-himno-jubileo-misericordia-2016/1164-himno-para-el-ano-santo-de-la-misericordia-esp HTTP/1.0" 200 79488 "http://www.corodiocesano.es/web/index.php/partituras-ensayo" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0"
Title: Re: redirect
Post by: borja on 25.09.2016 15:57:37
My problem is not solve. I have just reproduced the problem using my mobile phone.

If i open the pdf with google drive in my mobile it doen´t work and i´ve got redirect messages. AS you can see beow, 2 requests are created. the first would work properly. instead the second one is the one that is giving the problem and this is the case when google drive is called and it is made the eternal redirect


what is "-" in the request?


176.83.54.170 - - [25/Sep/2016:15:45:36 +0200] "GET /web/index.php/component/jdownloads/send/37-celebra-al-senyor/938-celebra-il-signore-terra-tutta-contralto HTTP/1.0" 200 35518 "http://www.corodiocesano.es/web/index.php/partituras-ensayo" "Mozilla/5.0 (Linux; Android 4.4.2; es-es; SAMSUNG GT-I9195 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/1.5 Chrome/28.0.1500.94 Mobile Safari/537.36"
176.83.54.170 - - [25/Sep/2016:15:45:39 +0200] "GET /web/index.php/component/jdownloads/send/37-celebra-al-senyor/938-celebra-il-signore-terra-tutta-contralto HTTP/1.0" 303 507 "-" "Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9195 Build/KOT49H)"

176.83.54.170 - - [25/Sep/2016:15:45:39 +0200] "GET /web/index.php/component/jdownloads/send/37-celebra-al-senyor/938-celebra-il-signore-terra-tutta-contralto?option=com_jdownloads HTTP/1.0" 303 507 "-" "Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9195 Build/KOT49H)"
176.83.54.170 - - [25/Sep/2016:15:45:39 +0200] "GET /web/index.php/component/jdownloads/send/37-celebra-al-senyor/938-celebra-il-signore-terra-tutta-contralto?option=com_jdownloads HTTP/1.0" 303 507 "-" "Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9195 Build/KOT49H)"
176.83.54.170 - - [25/Sep/2016:15:45:40 +0200] "GET /web/index.php/component/jdownloads/send/37-celebra-al-senyor/938-celebra-il-signore-terra-tutta-contralto?option=com_jdownloads HTTP/1.0" 303 507 "-" "Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9195 Build/KOT49H)"
176.83.54.170 - - [25/Sep/2016:15:45:40 +0200] "GET /web/index.php/component/jdownloads/send/37-celebra-al-senyor/938-celebra-il-signore-terra-tutta-contralto?option=com_jdownloads HTTP/1.0" 303 507 "-" "Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9195 Build/KOT49H)"
Title: Re: redirect
Post by: Arno on 26.09.2016 10:13:22
Hi borja,
as i had already written:
QuoteI have not enough experiences with server hosting and server log files so i can not help here really.
Please contact your hoster for this.
So have you asked your hoster?
Can it be that you use an additional sef component?

The download url is created here /components/com_jdownloads/controllers.
And when the Joomla sef option is activated is used also this /components/com_jdownloads/router.php

I use not Google Drive or any else.
Nobody else has a problem like this reported. So for me seems it to be a pure server thing.

By the way, i can not test all your posted links - i have not any login data.

Title: Re: redirect
Post by: borja on 26.09.2016 15:13:03
Arno,

may i give you an user? To test it you only a android mobile with google drive as pdf viewer.
Title: Re: redirect
Post by: Arno on 26.09.2016 18:05:40
I have not any Android mobile. Only an iPhone.
Title: Re: redirect
Post by: borja on 26.09.2016 18:24:29
 Arno we can try with iphone. I know some users with the same problem in user. I create it in the next hours and send you a private message with the instructions. Thsnk you
Title: Re: redirect
Post by: ColinM on 27.09.2016 01:35:18
Hi
Could you please tell us what SEF module or plugins you are using.  Are you using some SEF form another extension?
Colin
Title: Re: redirect
Post by: borja on 27.09.2016 10:47:14
Arno

As far as i know i have only installed and publish the default system-sef. the other are not published. i sent a private message to arno in order to test the problem in the web.

i don´t know if arno could reproduce the error because it only happens in some cases: android + google drive as pdf viewer and in iphone but in this case i don´t know if you have to got something installed or not.


Best regards,

Title: Re: redirect
Post by: ColinM on 27.09.2016 12:19:54
Hi
Could you say which browser you are using in Android - I usually use Firefox.  Also could you advise which Files Layout you are using
Colin
Title: Re: redirect
Post by: ColinM on 27.09.2016 12:59:23
Hi
Just to check I have just downloaded a pdf from my test site on an android based phone (Samsung Galaxy S5) with Android version 6.0.1
I used google  drive pdf viewer and there was no problem.  Just to avoid doubt the Google drive logo that appears when it asks which viewer sould be used is like the one in the attached pic but the actual words under the logo are "Drive PDF Viewer".  I was using Firefox. 
Is it same logo for you?

Are you using a multi lingual site?

When I use Chrome browser it opens directly without any question and offers me the chance to save to drive.
Colin

[gelöscht durch Administrator]
Title: Re: redirect
Post by: borja on 27.09.2016 13:16:16
My pic logo is different is white with a red backgroun and the letters "PDF" appears on the left corner.ç


my mobile is this one:
Mozilla/5.0 (Linux; Android 4.4.2; es-es; SAMSUNG GT-I9195 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/1.5 Chrome/28.0.1500.94 Mobile Safari/537.36

may i give you the same steps that i gave to arno in private?


I´ve been using this document since 2009 and last year i update my whole site including this component and there was not problem.
Title: Re: redirect
Post by: ColinM on 01.10.2016 09:44:12
Borja
Yesterday at around midnight I used my Android based phone and downloaded Signore, Vero Corpo  without any difficulty.
The PDF 'front' was the one you described
Quotered backgroun and the letters "PDF" appears on the left corner
.
So basically I cannot reproduce your problem.
But I will try again today.

Colin
Title: Re: redirect
Post by: borja on 01.10.2016 10:19:58
Colin

which is your android version? google drve version?

thank you,
Title: Re: redirect
Post by: ColinM on 01.10.2016 13:14:43
Hi
Android version is 6.0.1. Do not know drive version
Colin
Title: Re: redirect
Post by: borja on 01.10.2016 13:40:07
Could be a cookie problem? Sometimes i can read that is a problem that came from enable\disable cookie.
Title: Re: redirect
Post by: borja on 02.10.2016 18:30:44
Colin

I patch my web and it doesn´t work. I explain what i´ve been testing:

  - I put this type of link in my web:
         index.php?option=com_jdownloads&task=download.send&id=940&catid=37&m=0

      and i ´ve got a message with googledrive that says:
                "no se puede mostrar pdf ( El formato index.php no es valido)"

  - I put a file that everybody can download and it works properly but i change the file permission to "registered", problems appear.

- I patched the web to 3.6.2 from 3.4.0 and the error is there.

- i don´t know why this access are generating in my apache:
  37.10.152.54 - - [30/Sep/2016:22:05:22 +0200] "GET /web/index.php/component/jdownloads/send/37-celebra-al-senyor/940-celebra-il-signore-terra-tutta-soprano HTTP/1.0" 200 45637 "http://www.corodiocesano.es/web/index.php/partituras-ensayo" "Mozilla/5.0 (Linux; Android 4.4.2; es-es; SAMSUNG GT-I9195 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/1.5 Chrome/28.0.1500.94 Mobile Safari/537.36"
37.10.152.54 - - [30/Sep/2016:22:05:26 +0200] "GET /web/index.php/component/jdownloads/send/37-celebra-al-senyor/940-celebra-il-signore-terra-tutta-soprano HTTP/1.0" 303 505 "-" "Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9195 Build/KOT49H)"

in the first request the file is got by the browser but it is generated a second request by google drive and it´s when the file is not gotten and it is generated a unended loop.

Arno where are you? I´m looking for your access and the problem is that maybe midnight is not my midnight. Are you in England? I found an access from England.






  User can download a file but without using google drive.
Title: Re: redirect
Post by: borja on 02.10.2016 19:51:24
I´ve been trying. I think it a problem with the session. the session is not manage properly by google drive. if i change the file permission to public, it works properly.


it could be? Why is it not shown another message as user has not permission to get the file?

When there is a session problem, it is response with a 303 and a this kind of redirect: 

176.83.247.205 - - [02/Oct/2016:12:54:30 +0200] "GET /web/index.php/component/jdownloads/send/152-misericordes-sicut-pater-himno-jubileo-misericordia-2016/1164-himno-para-el-ano-santo-de-la-misericordia-esp HTTP/1.0" 303 554 "-" "Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9195 Build/KOT49H)"


176.83.247.205 - - [02/Oct/2016:12:54:30 +0200] "GET /web/index.php/component/jdownloads/send/152-misericordes-sicut-pater-himno-jubileo-misericordia-2016/1164-himno-para-el-ano-santo-de-la-misericordia-esp?option=com_jdownloads HTTP/1.0" 303 554 "-" "Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9195 Build/KOT49H)"


Title: Re: redirect
Post by: ColinM on 05.10.2016 17:54:39
Hi
Good research.  The http: 303 error is an interesting one.  It should I think have been handled by the browser. That is perhaps why I had no problems with some browser but problem with others that just did not want to know. This is not something I would expect jD to handle as effectively jD has said "over to you Mr Browser" when the Download file is located remotely.

Colin
Title: Re: redirect
Post by: borja on 08.10.2016 09:03:06
Colin,
which browser do you use? which version? i would like to try it and put a messag in my web.
why is interesting error 303?

thank you
Title: Re: redirect
Post by: ColinM on 08.10.2016 11:30:25
Hi
Personally I use Firefox on Android and else where as it dopes not assume I will use everything by Google!
Apologies for the reference to "interesting" - it is an English colloquial expression meaning strange, unusual and rare.
Colin