Submitted by : simon at: 2003-10-26T21:31:51+00:00 (14 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

eg site logo, external editor pencil icon. This is an issue with my imeme setup which has not yet been nailed down. It happens only when accessing the site through it's apache front end, not when talking directly to zope.


DeanGoodmanson, 2002/09/26 04:26 GMT (via web):
Seen this kind of goofyness with squishdot..certain graphics woldn't appear. No apache. We thought it was a browser caching issue.


2002/09/26 11:12 GMT (via web):
Mmh, I have fixed this once (long time ago). I assume your using Apache's ProxyPass? instead of mod_rewrite and RewriteRule? .

From http://www.zope.org/Members/anser/apache_zserver

But when you do, there is one tiny annoyance left: the icon graphics for the object tree don't load. (That's because they are being loaded by plain old IMG SRC="/misc_/xxx_image" tags - no site_url DTML variable for SiteAccess? to fix.) To fix this, go back to Apache and add two more ProxyPass? directives, next to the ones you already entered:
ProxyPass /misc_ http://fightclub.org:8080/misc_
ProxyPass /p_ http://fightclub.org:8080/p_

(You don't need matching ProxyPassReverse? directives.) This sends client requests for images in /p_ and /misc_ through to the ZServer? as well... which shouldn't be a problem unless your legacy content already included root directories with those names!

I prefer using mod_rewrite and RewriteRule?, see: http://www.zope.org/Members/michel/HowTos/ApacheRewriting

-- PieterB


Hi Simon: My MS Explorer Browser (version 6.0) does not render the external edit gif over on the right margin just above the comment window. The MS Explorer Browser the little red x in a box with the gif label (external edit) just to the left. Of course the whole thing works because it is still clickable and the label says what it is. Nifty feature. Keep up the wonderful work. JohnDeBruyn (November 1, 2002) Thanks John - moved from ExternalEditor --SM

SimonMichael, 2003/01/19 23:28 GMT (via web):
I've upgraded this to serious since it's really bugging me now. It's a problem with apache's cache - these small images appear in the cache as files with length 0. Not sure if Pieter's comment still applies.

SimonMichael, 2003/01/19 23:45 GMT (via web):
The rule in use is:

  RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/%{HTTP_HOST}:80/$1 [L,P]

I don't think Pieter's comment applies, these images have fully-specified SRC attributes and they work when apache's cache is turned off. I'd like to keep apache's cache on though.

SimonMichael, 2003/01/19 23:56 GMT (via web):
Apache bug 7847 and this thread are relevant. They claim it's an IIS problem. Could zope be doing the same thing ? Someone says apache 1.3.27 fixed it, so that may be an option.

SimonMichael, 2003/01/20 00:06 GMT (via web):
Aha no, the entertaining apache bug 10128 ("this bug is happily alive and has been ignored with the usual Apache arrogance") nails it. It looks like I need to upgrade to 1.3.27 or greater.

SimonMichael, 2003/01/20 00:23 GMT (via web):
But.. confused again. Looking at HTTP headers again with curl, I don't see a Cache-control header and I seem to see content-length 0 even when talking directly to zope - not what I remember from last time. Eg:

 > curl -I http://localhost:8080/misc_/ZWiki/ZWikiPage_icon.gif
 HTTP/1.1 200 OK
 Server: Zope/(Zope 2.6.0 (source release, python 2.1, linux2), python 2.1.3, freebsd4) ZServer/1.1b1
 Date: Mon, 20 Jan 2003 00:22:02 GMT
 Content-Type: image/gif
 Etag: 
 Content-Length: 0
 Last-Modified: Sat, 09 Mar 2002 00:07:53 GMT

SimonMichael, 2003/01/20 01:30 GMT (via web):
Ah.. curl lies, use wget -S instead. Yes, see:

 > wget -S http://zwiki.org:80/misc_/ZWiki/ZWikiPage_icon.gif
 --01:26:53--  http://zwiki.org/misc_/ZWiki/ZWikiPage_icon.gif
            => `ZWikiPage_icon.gif.3'
 Connecting to zwiki.org:80... connected!
 HTTP request sent, awaiting response... 200 OK
 2 Date: Mon, 20 Jan 2003 01:26:53 GMT
 3 Server: Zope/(Zope 2.6.0 (source release, python 2.1, linux2), python 2.1.3, freebsd4) ZServer/1.1b1
 4 Content-Type: image/gif
 5 Cache-Control: public,max-age=3600
 6 Content-Length: 0
 7 Last-Modified: Sat, 09 Mar 2002 00:07:53 GMT
 8 Age: 3677
 9 X-Cache: HIT from zwiki.org
 10 Connection: close
 11 

but note doing it without the virtual host works:

 > wget -S http://localhost:80/misc_/ZWiki/ZWikiPage_icon.gif
 --01:26:45--  http://localhost/misc_/ZWiki/ZWikiPage_icon.gif
            => `ZWikiPage_icon.gif.2'
 Connecting to localhost:80... connected!
 HTTP request sent, awaiting response... 200 OK
 2 Date: Mon, 20 Jan 2003 01:26:45 GMT
 3 Server: Zope/(Zope 2.6.0 (source release, python 2.1, linux2), python 2.1.3, freebsd4) ZServer/1.1b1
 4 Content-Type: image/gif
 5 Cache-Control: public,max-age=3600
 6 Content-Length: 212
 7 Last-Modified: Sat, 09 Mar 2002 00:07:53 GMT
 8 Age: 3723
 9 X-Cache: HIT from localhost
 10 Connection: close
 11 

SimonMichael, 2003/01/20 01:31 GMT (via web):
No change with apache 1.3.27.

SimonMichael, 2003/01/20 01:42 GMT (via web):
Correction! Clear the mod_proxy cache, make everything happy, try again and we seem to be out of the woods.

PieterB, 2003/01/21 00:38 GMT (via web):
Yihaa! Fixed the irritating bug!


comments:

how to clear the mod_proxy cache --SimonMichael, Fri, 12 Sep 2003 13:12:30 -0700 reply
Do it while apache is down. Eg http://lists.imeme.net/archives/imeme-users/2003-January/002262.html (adjust path for your system)

repair --simon, Thu, 10 Aug 2006 03:14:18 -0700 reply
Name: #237 clim => #237 images intermittently broken on zwiki.org Category: general-i18n => site-zwiki.org Severity: serious => normal Status: open => closed