RE: [Zope] Netscape Image Problems (LoginManager?)
Well I have determined that it has nothing to do with PTK or Login Manager, well I think anyway....... If you hit reload it breaks the images on the root level, if you put your cursor in the Location, or URL field and hit enter it reloads fine. I truly don't understand this problem and it only does it with images, in Netscape, is this an issue that everyone is just accepting or is there a fix for it. j At 08:51 AM 5/22/00 -0500, you wrote:
I'm not using PTK, but I am using LoginManager. I wonder if it or ZPatterns are causing this phenomena.
I use absolute URLs for images, so that's not an issue.
Could LoginManager be denying access to the images on a refresh?
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of john@nurl.net Sent: Monday, May 22, 2000 1:04 AM To: Zope@zope.org Subject: Re: [Zope] Netscape Image Problems
I just noticed something strange......it is only doing it when you are inside a Portal (ptk).......very strange..........
j
At 12:45 AM 5/22/00 -0500, you wrote:
I'm experiencing the same thing with Navigator 4.08 on NT4 against Zope 2.1.6 from Debian "potato". Disabling Navigator's cache fixes
the problem.
That's not a satisfactory solution, though.
On Sun, 21 May 2000 john@nurl.net wrote:
I have tried to track down a solution to this problem for a couple of days.
I have Zope 2.1.6 (binary release, python 1.5.2, win32-x86) installed.
Everything is working great, but when I use Netscape 3, 4.X , every time I hit the reload button or come back to the page at a later date all of my images won't display. It just shows the classic broken image icon that is default for Netscape.
I know that it isn't a Zope issue because the zope.org site works fine!
This is obviously not acceptable to any viewer, could someone please give me a work around or a solution to this problem.
Thank you in advance!
j
john@nurl.net
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
john@nurl.net wrote:
Well I have determined that it has nothing to do with PTK or Login Manager, well I think anyway.......
I would agree as I've experienced this exact same problem with Netscape 3.04 and my Squishdot site at http://www.bay-c.co.uk cheers, Chris PS: I'd love to know what's causing this... PPS: Is anyone who's experiencing this using SiteAccess?
O.K If you just load the document in a Netscape Browser....you get the image....then when you hit reload you get a Zope error message that says: Zope Error Zope has encountered an error while publishing this resource. Error Type: OverflowError Error Value: float too large to convert traceback: error on line 186 of image.py 186: mod_since=int(DateTime(header).timeTime()) I have tried loading a fresh copy of Zope and I still get the same error! pressing on to try to find answers!!!!!! j
john@nurl.net wrote:
Well I have determined that it has nothing to do with PTK or Login Manager, well I think anyway.......
I would agree as I've experienced this exact same problem with Netscape 3.04 and my Squishdot site at http://www.bay-c.co.uk
cheers,
Chris
PS: I'd love to know what's causing this...
PPS: Is anyone who's experiencing this using SiteAccess?
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
John, Add the following lines just before line 186 of image.py and tell us what comes out on the console (not your browser, but the console--assuming the console is visible). print header print DateTime(header) print DateTime(header).timeTime() Shane john@nurl.net wrote:
O.K
If you just load the document in a Netscape Browser....you get the image....then when you hit reload you get a Zope error message that says:
Zope Error
Zope has encountered an error while publishing this resource.
Error Type: OverflowError Error Value: float too large to convert
traceback:
error on line 186 of image.py
186: mod_since=int(DateTime(header).timeTime())
I have tried loading a fresh copy of Zope and I still get the same error!
pressing on to try to find answers!!!!!!
j
john@nurl.net wrote:
Well I have determined that it has nothing to do with PTK or Login Manager, well I think anyway.......
I would agree as I've experienced this exact same problem with Netscape 3.04 and my Squishdot site at http://www.bay-c.co.uk
cheers,
Chris
PS: I'd love to know what's causing this...
PPS: Is anyone who's experiencing this using SiteAccess?
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Shane, Nope the console is not visible, couldn't even log in......... j At 02:23 PM 5/22/00 -0400, you wrote:
John,
Add the following lines just before line 186 of image.py and tell us what comes out on the console (not your browser, but the console--assuming the console is visible).
print header print DateTime(header) print DateTime(header).timeTime()
Shane
john@nurl.net wrote:
O.K
If you just load the document in a Netscape Browser....you get the image....then when you hit reload you get a Zope error message that says:
Zope Error
Zope has encountered an error while publishing this resource.
Error Type: OverflowError Error Value: float too large to convert
traceback:
error on line 186 of image.py
186: mod_since=int(DateTime(header).timeTime())
I have tried loading a fresh copy of Zope and I still get the same error!
pressing on to try to find answers!!!!!!
j
john@nurl.net wrote:
Well I have determined that it has nothing to do with PTK or Login
Manager,
well I think anyway.......
I would agree as I've experienced this exact same problem with Netscape 3.04 and my Squishdot site at http://www.bay-c.co.uk
cheers,
Chris
PS: I'd love to know what's causing this...
PPS: Is anyone who's experiencing this using SiteAccess?
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Shane, I made the changes you suggested to Image.py. Here are the results: Thursday, 11-May-00 16:21:32 GMT 1900/05/11 16:21:31 GMT -2197697908.0 Sunday, 14-May-00 04:03:14 GMT 1900/05/14 04:03:14 GMT -2197483006.0 Thursday, 11-May-00 15:53:50 GMT 1900/05/11 15:53:50 GMT -2197699570.0 Thursday, 11-May-00 15:53:50 GMT 1900/05/11 15:53:50 GMT -2197699570.0 Thursday, 11-May-00 15:53:50 GMT 1900/05/11 15:53:50 GMT -2197699570.0 Thursday, 11-May-00 15:53:50 GMT 1900/05/11 15:53:50 GMT -2197699570.0 Thursday, 11-May-00 15:53:50 GMT 1900/05/11 15:53:50 GMT -2197699570.0 Thursday, 11-May-00 15:53:50 GMT 1900/05/11 15:53:50 GMT -2197699570.0 Jon
-----Original Message----- From: shane@shane.digicool.com [mailto:shane@shane.digicool.com]On Behalf Of Shane Hathaway Sent: Monday, May 22, 2000 1:24 PM To: john@nurl.net Cc: Zope@zope.org Subject: Re: [Zope] Netscape Image Problems (LoginManager?)
John,
Add the following lines just before line 186 of image.py and tell us what comes out on the console (not your browser, but the console--assuming the console is visible).
print header print DateTime(header) print DateTime(header).timeTime()
Shane
john@nurl.net wrote:
O.K
If you just load the document in a Netscape Browser....you get the image....then when you hit reload you get a Zope error message that says:
Zope Error
Zope has encountered an error while publishing this resource.
Error Type: OverflowError Error Value: float too large to convert
traceback:
error on line 186 of image.py
186: mod_since=int(DateTime(header).timeTime())
I have tried loading a fresh copy of Zope and I still get the
same error!
pressing on to try to find answers!!!!!!
j
john@nurl.net wrote:
Well I have determined that it has nothing to do with PTK or
Login Manager,
well I think anyway.......
I would agree as I've experienced this exact same problem with Netscape 3.04 and my Squishdot site at http://www.bay-c.co.uk
cheers,
Chris
PS: I'd love to know what's causing this...
PPS: Is anyone who's experiencing this using SiteAccess?
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
On Mon, May 22, 2000 at 03:10:59PM -0500, Jon Delheimer wrote:
Shane,
I made the changes you suggested to Image.py.
Here are the results:
Thursday, 11-May-00 16:21:32 GMT 1900/05/11 16:21:31 GMT -2197697908.0
I have stepped through the debugger with the call of ZPublisher.Zope('/path/to/image', d=1). Upon immediate entry into the ZPublisher/Test.py module I can set environ['IF_MODIFIED_SINCE'] to something reasonable such as 'Wednesday, March 15, 2000 19:02:17 GMT' and I get no error as I step through the code. This exonerates the Zope python code. The question then remains who is producing the buggy If-Modified-Since that puts the date back to 1900. Does someone know how to trap the headers that are sent to Zope so they can be inspected? ------------------------------------------------------ Andres Corrada-Emmanuel Email: andres@corrada.com ------------------------------------------------------
andres@corrada.com wrote:
On Mon, May 22, 2000 at 03:10:59PM -0500, Jon Delheimer wrote:
Shane,
I made the changes you suggested to Image.py.
Here are the results:
Thursday, 11-May-00 16:21:32 GMT 1900/05/11 16:21:31 GMT -2197697908.0
I have stepped through the debugger with the call of ZPublisher.Zope('/path/to/image', d=1). Upon immediate entry into the ZPublisher/Test.py module I can set environ['IF_MODIFIED_SINCE'] to something reasonable such as 'Wednesday, March 15, 2000 19:02:17 GMT' and I get no error as I step through the code. This exonerates the Zope python code.
The question then remains who is producing the buggy If-Modified-Since that puts the date back to 1900. Does someone know how to trap the headers that are sent to Zope so they can be inspected?
One easy way is to visit /Control_Panel/manage_debug which shows you the details about each active connection, including your own. Another possibility is to create a DTML method called "req" in your root folder which simply calls <dtml-var REQUEST>. I solved the 1900 problem by changing DateTime.py so that years 00-69 are now translated to 2000-2069. That's the way it was supposed to work in the first place; I think something fell through the cracks awhile back. Everybody is counting on having 64-bit processors or better by the year 2038, and if we do, performing an int() cast will be a safe thing to do. Shane
john@nurl.net wrote:
Well I have determined that it has nothing to do with PTK or Login Manager, well I think anyway.......
If you hit reload it breaks the images on the root level, if you put your cursor in the Location, or URL field and hit enter it reloads fine.
I truly don't understand this problem and it only does it with images, in Netscape, is this an issue that everyone is just accepting or is there a fix for it.
Are you running Zope in single thread mode? If I recall correctly, Netscape fires off a bunch of threads to simultaneously download the images on a page. It could be that Netscape is tying up the single thread, and getting impatient with its other requests. -- Steve Alexander Software Engineer Cat-Box limited
participants (6)
-
andres@corrada.com -
Chris Withers -
john@nurl.net -
Jon Delheimer -
Shane Hathaway -
Steve Alexander