6.0.0-git
2019-03-20

[#1140] javascripts can't be loaded periodically
Summary javascripts can't be loaded periodically
Queue Horde Base
Queue Version 3.0.2
Type Bug
State Resolved
Priority 1. Low
Owners Horde Developers (at)
Requester mcsi (at) mcsi (dot) pp (dot) ru
Created 2005-01-13 (5179 days ago)
Due
Updated 2005-02-03 (5158 days ago)
Assigned 2005-01-19 (5173 days ago)
Resolved 2005-01-20 (5172 days ago)
Milestone
Patch No

History
2005-02-03 06:58:22 ryan (at) postkazzen (dot) dk Comment #13 Reply to this comment
Just to mention, this also fixed a problem with Fixefox.



It did not always load the menu. But a refresh made it load. But after 
aplying the patch it works fine for me in both Firefox and IE.
2005-01-20 15:12:30 vilius (at) lnk (dot) lt Comment #12 Reply to this comment
No-cache patch fixed the problem. Thanks.





P.S. Sorry for the dublicate bug report Chuck. Just never saw that 
amount of errors and I posted about it too fast.
2005-01-20 15:11:28 Chuck Hagenbuch Comment #11
State ⇒ Resolved
Reply to this comment
The no-cache header is now the only caching header we send here. Fix 
will be in Horde 3.0.3. Resolving.
2005-01-19 21:56:29 bennettm (at) mailsnare (dot) net Comment #10 Reply to this comment
The changes below seems to fix the problem as far as we can test. I 
can't verify the original reporters problem, which was related to the 
Last-Modifed header, but the issue we saw under  Win98/IE6 seems to be 
related to the missing Cache-control header. I think setting that to 
no-cache is the desired behavior.



--- javascript.php 2005-01-19 21:45:01.000000000 +0000

+++ javascript.php      2005-01-19 21:45:17.000000000 +0000

@@ -29,9 +29,7 @@ if (!empty($app) && !empty($file) && str

               * don't include base.php in this file. */

              Horde::compressOutput();



-            $mod_gmt = gmdate('D, d M Y H:i:s', 
filemtime($script_file)) . ' GMT';

-            header('Last-Modified: ' . $mod_gmt);

-            header('Cache-Control: public, max-age=86400');

+            header('Cache-Control: no-cache');

              header('Content-Type: text/javascript');

          }
2005-01-19 18:31:12 Chuck Hagenbuch State ⇒ Feedback
 
2005-01-19 18:30:57 Chuck Hagenbuch Comment #9 Reply to this comment
I can't, but I don't have access to Win98. But I'm confused; the 
original code didn't work for the original reporter. But it does for 
you. So which is it? Can you come up with something that works for both/
2005-01-19 03:47:22 bennettm (at) mailsnare (dot) net Comment #8 Reply to this comment
Sorry, forgot to mention it was IE 6 under Win98.
2005-01-19 03:44:43 bennettm (at) mailsnare (dot) net Comment #7 Reply to this comment
We discovered one anomaly when tried this patch: IE under Win98 fails 
to load the left-hand sidebar and reports that the Horde_Tree function 
is undefined on line 509. Backing out the changes seems to fix 
everything. Can anyone else confirm that behavior?
2005-01-15 16:50:32 Chuck Hagenbuch Comment #6 Reply to this comment
Okay. Please test this patch and let me know if I should merge it:



http://cvs.horde.org/diff.php/horde/services/javascript.php?r1=1.38&r2=1.39&ty=u
2005-01-15 15:55:07 Jan Schneider Comment #5 Reply to this comment
I think it never worked anyway, at least the files get loaded on 
*every* page call here.
2005-01-15 05:20:33 Chuck Hagenbuch Comment #4 Reply to this comment
Do we want javascript that runs through services/javascript.php (and 
by definition requires php code, therefore) to be cached at all 
anymore? Anything static should be static JS, and there might be other 
problems caused by caching this page...
2005-01-15 01:13:26 Jan Schneider Priority ⇒ 1. Low
 
2005-01-15 01:13:06 Jan Schneider State ⇒ Assigned
Assigned to Horde DevelopersHorde Developers
 
2005-01-13 13:56:54 mcsi (at) mcsi (dot) pp (dot) ru Comment #3 Reply to this comment
The problem turns out to be in If-Modified-Since HTTP header. This is 
always-failing request made by IE:



GET /horde/services/javascript.php?file=open_compose_win.js&app=imp HTTP/1.1

Accept: */*

Accept-Language: ru

Accept-Encoding: gzip, deflate

If-Modified-Since: Thu, 02 Dec 2004 16:27:54 GMT; length=1288

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

Host: users.portpc-design.spb.ru

Connection: Keep-Alive

Cookie: Horde=8e8aa91017dc9ae1af4442dce7a2d3c0



If I skip If-Modified-Since header, evrything works fine. After 
deleting IE cache, scripts loads fine. After refresh it gets 500 error.



When I commented out

header('Last-Modified: ' . $mod_gmt);

from javascript.php everything started to work just fine.
2005-01-13 10:00:31 Jan Schneider Comment #2
Summary ⇒ javascripts can't be loaded periodically
State ⇒ Feedback
Reply to this comment
Never heard of this before, and there isn't much we can do about this. 
Find out why your server returns a 500 and we might be able to 
workaround this.
2005-01-13 08:19:15 mcsi (at) mcsi (dot) pp (dot) ru Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Summary ⇒ javascripts cant be loaded periodically
Queue ⇒ Horde Base
Reply to this comment
Hello.



   Here are the records from the httpd access log. I'm using horde 
3.0.2. I cant compose new mail in imp, because javascript cant  be 
loaded. Strangest thing is when using IE they cant be loaded at all, 
giving 500 error. Using Mozilla, they could be loaded periodically.

   The server and apache are working just fine for everything else, so 
I dont suspect them failing. Also, I'm using suphp and php5.

   Also, there are no useful information neither in the horde log 
(DEBUG) nor in the suphp or httpd-error logs. That's very strange too.





195.128.162.78 - - [13/Jan/2005:11:09:42 +0300] "GET 
/horde/services/javascript.php?file=open_compose_win.js&app=imp 
HTTP/1.0" 500 673 "-" "M

ozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"

195.128.162.78 - - [13/Jan/2005:11:09:44 +0300] "GET 
/horde/services/javascript.php?file=open_compose_win.js&app=imp 
HTTP/1.0" 500 673 "-" "M

ozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"

195.128.162.78 - - [13/Jan/2005:11:09:45 +0300] "GET 
/horde/services/javascript.php?file=open_compose_win.js&app=imp 
HTTP/1.0" 500 673 "-" "M

ozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"

195.128.162.78 - - [13/Jan/2005:11:09:46 +0300] "GET 
/horde/services/javascript.php?file=open_compose_win.js&app=imp 
HTTP/1.0" 500 673 "-" "M

ozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"

195.128.162.78 - - [13/Jan/2005:11:09:47 +0300] "GET 
/horde/services/javascript.php?file=open_compose_win.js&app=imp 
HTTP/1.0" 500 673 "-" "M

ozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"

195.128.162.78 - - [13/Jan/2005:11:09:48 +0300] "GET 
/horde/services/javascript.php?file=open_compose_win.js&app=imp 
HTTP/1.0" 500 673 "-" "M

ozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"

195.128.162.78 - - [13/Jan/2005:11:09:49 +0300] "GET 
/horde/services/javascript.php?file=open_compose_win.js&app=imp 
HTTP/1.0" 500 673 "-" "M

ozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"

195.128.162.78 - - [13/Jan/2005:11:09:50 +0300] "GET 
/horde/services/javascript.php?file=open_compose_win.js&app=imp 
HTTP/1.0" 500 673 "-" "M

ozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"

195.128.162.78 - - [13/Jan/2005:11:10:07 +0300] "GET 
/horde/services/portal/sidebar.php?httpclient=1 HTTP/1.0" 200 24380 
"-" "Mozilla/5.0 (Wi

ndows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707"

195.128.162.78 - - [13/Jan/2005:11:10:33 +0300] "GET 
/horde/services/javascript.php?file=open_compose_win.js&app=imp 
HTTP/1.0" 500 673 "-" "M

ozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707"

195.128.162.78 - - [13/Jan/2005:11:10:35 +0300] "GET 
/horde/services/javascript.php?file=open_compose_win.js&app=imp 
HTTP/1.0" 200 1288 "-" "

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707"

195.128.162.78 - - [13/Jan/2005:11:10:36 +0300] "GET 
/horde/services/javascript.php?file=open_compose_win.js&app=imp 
HTTP/1.0" 200 1288 "-" "

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707"

195.128.162.78 - - [13/Jan/2005:11:10:37 +0300] "GET 
/horde/services/javascript.php?file=open_compose_win.js&app=imp 
HTTP/1.0" 200 1288 "-" "

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707"


Saved Queries