Zope, Excel, CookieCrumbler and MS Internet Explorer
I tried this Zopelab's tip: http://www.zopelabs.com/cookbook/1075841024 .. with the idea of allowing my clients to open simple tables within their Excel spreadsheets. Using IE (our primary target browser) tt works fine sometimes, but most of the time they get an error message from IE itself that tells it can't download the file, after having showed the dialog Open|Save|Cancel. No relevant error message appears in the event log neither in the site error log object. Curious thing is that in that dialog box ( Open|Save|Cancel ), sometimes the file type appears and sometimes it doesn't. When it doesn't, it means the problem is about to happen. So after digging a little with Shane's Tcpwatch I've noticed that the file would open only whether a basic authentication header was sent, in despite of the cookie information (that is always sent). This problem only happens in IE. Using Opera or Firefox won't show any problem. Also I'm using CookieCrumbler, so after I removed the "login" object at the root of my app, IE is no longuer showing problems. Has anyone had this same experience and eventually come up with a workaround that still uses cookies authentication? Thanks in advance, Ausum
Ausum Studio wrote:
.. with the idea of allowing my clients to open simple tables within their Excel spreadsheets. Using IE (our primary target browser) tt works fine sometimes, but most of the time they get an error message from IE itself that tells it can't download the file, after having showed the dialog Open|Save|Cancel. No relevant error message appears in the event log neither in the site error log object.
Curious thing is that in that dialog box ( Open|Save|Cancel ), sometimes the file type appears and sometimes it doesn't. When it doesn't, it means the problem is about to happen. So after digging a little with Shane's Tcpwatch I've noticed that the file would open only whether a basic authentication header was sent, in despite of the cookie information (that is always sent).
This problem only happens in IE. Using Opera or Firefox won't show any problem. Also I'm using CookieCrumbler, so after I removed the "login" object at the root of my app, IE is no longuer showing problems.
I've had customer reports of similar wierdities with Excel spreadsheets, CookieCrumbler is also involved. What version of CookieCrumbler/Windows/Office/IE/Zope are you using? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
----- Original Message ----- From: "Chris Withers" <chris@simplistix.co.uk> To: "Ausum Studio" <ausum_studio@hotmail.com> (...)
I've had customer reports of similar wierdities with Excel spreadsheets, CookieCrumbler is also involved. What version of CookieCrumbler/Windows/Office/IE/Zope are you using?
Hi Chris, I'm using version 1.1. After your post I realized there was a new version, then I downloaded it and the problem still was there. Nonetheless Shane has added a precious feature by which the cookie authentication can be disabled on a per-request basis. So as recommended, I ended up adding "?disable_cookie_login__=1" to every URL meant to be opened as an Excel file, and that made it. Obviously this means I'm using cookie authentication in my site,except for those URLs which use basic. So I'm still looking for a rounded solution to the problem. Thanks for any hint you may share, Ausum
cheers,
Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Ausum Studio wrote:
Nonetheless Shane has added a precious feature by which the cookie authentication can be disabled on a per-request basis.
Hehe, that feature's been there for a good few years ;-)
So as recommended, I ended up adding "?disable_cookie_login__=1" to every URL meant to be opened as an Excel file, and that made it.
Cool, I'll bear that one in mind!
Obviously this means I'm using cookie authentication in my site,except for those URLs which use basic. So I'm still looking for a rounded solution to the problem.
Thanks for any hint you may share,
Odd, so you have to use basic for some urls now? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
----- Original Message ----- From: "Chris Withers" <chris@simplistix.co.uk> To: "Ausum Studio" <ausum_studio@hotmail.com> (...)
I've had customer reports of similar wierdities with Excel spreadsheets, CookieCrumbler is also involved. What version of CookieCrumbler/Windows/Office/IE/Zope are you using?
Hi Chris, I'm using version 1.1. After your post I checked out that there's an 1.2 one dated in June. Guess I need to try it out. Thanks for any hint you may share, Ausum
cheers,
Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (2)
-
Ausum Studio -
Chris Withers