(bug?) long result sets sometimes return wrong mime-type "Application/Octet-Stream" "Application/Octet-Stream"
I think I discovered a bug (might be even two, now that I think about it): I have a simple ZSQL query that returns some 500 rows. I created a standard search interface (size=50), which of course produces the "next x results" hyperlink at the bottom of the table. Now: 1.) the Hyperlink always says "Next 1 results", where it should say 50... (or whatever I put in the "size" parameter of the search interface's "in" tag) 2.) if I move forward to, say, row 150 or so, using the link sometimes I don't get a page displayed but the Navigator-dialog "save as ... (application/octet-stream)" appears. (I can certainly save the file to disk, reopen it via "file-open" and it gets displayed correctly. of course it does: a "file-open" does not transmit MIME-Types...) If I change the "size" parameter in the search interface to another value (e.g. 200) I get the "save as.."-dialog right away... Is this problem already known, and maybe even solved yet? Regards, Heiko. -- Heiko Stoermer Media Intelligence Group
On Wed, 18 Aug 1999, Heiko Stoermer wrote:
I think I discovered a bug (might be even two, now that I think about it): Which Zope version?
I have a simple ZSQL query that returns some 500 rows. I created a standard search interface (size=50), which of course produces the "next x results" hyperlink at the bottom of the table. Now: 1.) the Hyperlink always says "Next 1 results", where it should say 50... (or whatever I put in the "size" parameter of the search interface's "in" tag)
2.) if I move forward to, say, row 150 or so, using the link sometimes I don't get a page displayed but the Navigator-dialog "save as ... (application/octet-stream)" appears. (I can certainly save the file to disk, reopen it via "file-open" and it gets displayed correctly. of course it does: a "file-open" does not transmit MIME-Types...) If I change the "size" parameter in the search interface to another value (e.g. 200) I get the "save as.."-dialog right away... Well, older Zope versions were very picky what characters are valid, and any result that contained other characters was labeled binary. Actually, this mostly hits Windows users, as certain programs just use the windows charset. ;) Is this problem already known, and maybe even solved yet? Try Zope 2.0.0b4 ;)
Andreas -- Andreas Kostyrka | andreas@mtg.co.at phone: +43/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA
At 17:38 18/08/99 , Heiko Stoermer wrote:
I think I discovered a bug (might be even two, now that I think about it):
I have a simple ZSQL query that returns some 500 rows. I created a standard search interface (size=50), which of course produces the "next x results" hyperlink at the bottom of the table. Now: 1.) the Hyperlink always says "Next 1 results", where it should say 50... (or whatever I put in the "size" parameter of the search interface's "in" tag)
2.) if I move forward to, say, row 150 or so, using the link sometimes I don't get a page displayed but the Navigator-dialog "save as ... (application/octet-stream)" appears. (I can certainly save the file to disk, reopen it via "file-open" and it gets displayed correctly. of course it does: a "file-open" does not transmit MIME-Types...) If I change the "size" parameter in the search interface to another value (e.g. 200) I get the "save as.."-dialog right away...
Is this problem already known, and maybe even solved yet?
What version of Zope are you using? I know of two separate problems that cause the aforementioned problems, both fixed in the latest release. The first was a bug in the batch-code of the in tag that became visible in Zope 2 running on Python 1.5.2, causing batch sizes to be miscalculated. This was fixed in 2.0a3. The second is a misassumption that any output from a DTML method or document that contains non 7-bit characters is binairy. This has been fixed in 2.0b2. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
Martijn Pieters wrote:
At 17:38 18/08/99 , Heiko Stoermer wrote:
I think I discovered a bug (might be even two, now that I think about it):
I have a simple ZSQL query that returns some 500 rows. I created a standard search interface (size=50), which of course produces the "next x results" hyperlink at the bottom of the table. Now: 1.) the Hyperlink always says "Next 1 results", where it should say 50... (or whatever I put in the "size" parameter of the search interface's "in" tag)
2.) if I move forward to, say, row 150 or so, using the link sometimes I don't get a page displayed but the Navigator-dialog "save as ... (application/octet-stream)" appears. (I can certainly save the file to disk, reopen it via "file-open" and it gets displayed correctly. of course it does: a "file-open" does not transmit MIME-Types...) If I change the "size" parameter in the search interface to another value (e.g. 200) I get the "save as.."-dialog right away...
Is this problem already known, and maybe even solved yet?
What version of Zope are you using? I know of two separate problems that cause the aforementioned problems, both fixed in the latest release.
I'm awfully sorry, but it seems that _alpha_2_ is installed on our development machine... (I'm not the administrator...) I'll have B4 installed today and I hope this fixes the problems. Thanks though, Heiko. -- Heiko Stoermer Media Intelligence Group
participants (3)
-
Andreas Kostyrka -
Heiko Stoermer -
Martijn Pieters