Re: [PHP-DEV] Chora and CVSWeb problems
On Sun, 19 Aug 2001, Hojtsy Gabor wrote: Someone reported a Chora error at [EMAIL PROTECTED] It seems he uses Konqueror, and Chora can't find the default language file to display for him: | Warning: Undefined index: defaults | in /usr/local/www/chora.php.net/horde/lib/Lang.php on line 42 | | Warning: Cannot add header information - headers already sent by | (output started at /usr/local/www/chora.php.net/horde/lib/Lang.php:42) | in /usr/local/www/chora.php.net/horde/lib/Lang.php on line 64 | | [snip] I reported that last night .. seems to work fine again now. -- John Donagher Application Engineer, Intacct Corp. Public key available off http://www.keyserver.net Key fingerprint = 4024 DF50 56EE 19A3 258A D628 22DE AD56 EEBE 8DDD -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Chora and CVSWeb problems
On Sun, Aug 19, 2001 at 07:23:18PM +0200, Hojtsy Gabor wrote: Text diff is not working at Chora, at least with IE 5.00, as it thinks that it needs to display XML content, and just prints out an XML error. Just the Human readable one works... :(( Please elaborate. Is this not working for any files, or only specific files (with an XML extension), and only with IE 5.00? And what do you mean XML Error ? Someone reported a Chora error at [EMAIL PROTECTED] It seems he uses Konqueror, and Chora can't find the default language file to display for him: Chuck fixed this, was just a config problem. The version of Chora now has several language translations available (should autodetect form the browser's Accept-Language headers). Anil -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Chora and CVSWeb problems
Text diff is not working at Chora, at least with IE 5.00, as it thinks that it needs to display XML content, and just prints out an XML error. Just the Human readable one works... :(( Please elaborate. Is this not working for any files, or only specific files (with an XML extension) I have tried the phpdoc files, one XML for example: http://cvs.php.net/diff.php/phpdoc/en/functions/com.xml?r1=0tr1=1.18f=ur2 =0tr2=1.20 One not XML (.ent) for example: http://cvs.php.net/diff.php/phpdoc/en/language-defs.ent?r1=0tr1=1.1f=ur2= 0tr2=1.7 and only with IE 5.00? Sorry, I don't have any other browser now to test, you can test with the links above. And what do you mean XML Error ? IE has an internal XML processor (exactly it is the processor named MSXML) It it finds an error, it just prints (viewing the page displayed with the last link): | The XML page cannot be displayed | | Cannot view XML input using style sheet. Please correct | the error and then click the Refresh button, or try again later. | | Invalid at the top level of the document. Line 1, Position 1 | = | ^ | Maybe Chora puts out an XML content type header, or something, that makes IE think this is XML (as it is not). I can't see the source, as IE just denies to show the source in such cases saying The XML source file is unavailable for viwing). Please ask, if more information is needed [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Chora and CVSWeb problems
Maybe Chora puts out an XML content type header, or something, that makes IE think this is XML (as it is not). I can't see the source, as IE just denies to show the source in such cases saying The XML source file is unavailable for viwing). Please ask, if more information is needed IE is a completely useless web browser. It does not honour mime types and simply uses the file extension and/or any client-side file type associations. Chora is doing the right thing. On that com.xml URL you posted it is sending a text/plain Content-Type header. The fact that IE choosed to pass text/plain to an internal XML parser is just one more reason you should never use IE for web browsing. You never know what the thing is going to do. I would not suggest changing Chora in any way with this respect. -Rasmus -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Chora and CVSWeb problems
On Sun, Aug 19, 2001 at 12:31:22PM -0700, Rasmus Lerdorf wrote: Maybe Chora puts out an XML content type header, or something, that makes IE think this is XML (as it is not). I can't see the source, as IE just denies to show the source in such cases saying The XML source file is unavailable for viwing). Please ask, if more information is needed IE is a completely useless web browser. It does not honour mime types and simply uses the file extension and/or any client-side file type associations. Chora is doing the right thing. On that com.xml URL you posted it is sending a text/plain Content-Type header. The fact that IE choosed to pass text/plain to an internal XML parser is just one more reason you should never use IE for web browsing. You never know what the thing is going to do. I would not suggest changing Chora in any way with this respect. Agh, I see the problem now. One workaround is to disable the 'use_path_info' option in Chora, which will result in IE seeing a '.php' extension instead of the '.xml' extension. The old PATH_INFO urls will still work, but new links will use GET propagation for the cvs-path. Another one is to pad the PATH_INFO for diffs with a '.txt' extension which will fool IE. I don't think I'll bother doing this when the above option is much cleaner. Anil -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Chora and CVSWeb problems
At 22:31 19-08-01, Rasmus Lerdorf wrote: Maybe Chora puts out an XML content type header, or something, that makes IE think this is XML (as it is not). I can't see the source, as IE just denies to show the source in such cases saying The XML source file is unavailable for viwing). Please ask, if more information is needed IE is a completely useless web browser. That's why 75% of our users and like 90% of the Web uses it, eh? :) It does not honour mime types and simply uses the file extension and/or any client-side file type associations. Chora is doing the right thing. On that com.xml URL you posted it is sending a text/plain Content-Type header. The fact that IE choosed to pass text/plain to an internal XML parser is just one more reason you should never use IE for web browsing. You never know what the thing is going to do. I would not suggest changing Chora in any way with this respect. 'Hadin Yikov Et Hahar'. I wish I knew how to translate that :) Zeev -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Chora and CVSWeb problems
At 22:31 19-08-01, Rasmus Lerdorf wrote: Maybe Chora puts out an XML content type header, or something, that makes IE think this is XML (as it is not). I can't see the source, as IE just denies to show the source in such cases saying The XML source file is unavailable for viwing). Please ask, if more information is needed IE is a completely useless web browser. That's why 75% of our users and like 90% of the Web uses it, eh? :) That doesn't mean that the lack of proper mime type handling doesn't make it a useless browser. People use all sorts of useless stuff every day. -Rasmus -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Chora and CVSWeb problems
At 23:14 19-08-01, Rasmus Lerdorf wrote: That doesn't mean that the lack of proper mime type handling doesn't make it a useless browser. People use all sorts of useless stuff every day. As much as this is appetizing to start a nice browser war, I'll control myself. I think an English teacher could argue with that last sentence of yours, though :) Zeev -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Chora and CVSWeb problems
As much as this is appetizing to start a nice browser war, I'll control myself. I think an English teacher could argue with that last sentence of yours, though :) It was quite intentional. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Chora and CVSWeb problems
ZS That's why 75% of our users and like 90% of the Web uses it, eh? :) Well, we all know that millions of lemmings can't be wrong, but the fact is that MSIE is pretty crappy browser. The much more sad fact is that the rest of browsers (which makes 2 or 3 of them) are more crappy (some of them order of magnitude more crappy). ZSIt does not honour mime types and ZS simply uses the file extension and/or any client-side file type ZS associations. Chora is doing the right thing. On that com.xml URL you It does even worse. It tries to guess file type from the content. I hope somebody will invent some worm that uses this misfeature so that they would finally fix it... -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ +972-3-6139665 ext.115 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Chora and CVSWeb problems
On Sun, Aug 19, 2001 at 11:29:18PM +0300, Stanislav Malyshev wrote: It does even worse. It tries to guess file type from the content. I hope somebody will invent some worm that uses this misfeature so that they would finally fix it... Guessing the file-type from the first few magic bytes is probably a good thing (especially in the case where other methods have failed, and the MIME type has fallen back to application/octet-stream or something equally unhelpful). The bug here is that it ignores the explicit Content-Type header instead of its own detection mechanisms, which is clearly bad. Anyone want to file a Microsoft bug report? :-) Anil -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Chora and CVSWeb problems
Hi Anil! On Sun, 19 Aug 2001, Anil Madhavapeddy wrote: Guessing the file-type from the first few magic bytes is probably a good thing (especially in the case where other methods have failed, and the MIME type has fallen back to application/octet-stream or something equally unhelpful). uhm, well, but if I send foo.gif and it starts with some friendly VBScript I won't bet you'll think the same. Apache does same guessing on the server, which is safer (and does not do it by default, iirc.) The bug here is that it ignores the explicit Content-Type header instead of its own detection mechanisms, which is clearly bad. Anyone want to file a Microsoft bug report? :-) was already discussed on bugtraq not too long ago; I remember a link pointing that it's actually a documented feature :) -- teodor -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Chora and CVSWeb problems
On Mon, Aug 20, 2001 at 04:01:39AM +0300, [EMAIL PROTECTED] wrote: well, but if I send foo.gif and it starts with some friendly VBScript I won't bet you'll think the same. Yes I would ... I'm referring to content-MIME mapping, and it doesnt matter if this happens on the client or server, as long as there's a sensible precedence order (which is the source of this IE/Chora problem - it's not obeying the server response headers). VBScript is irrelevant unless IE does something monumentally stupid like execute scripts while trying to sniff the MIME type. Anyway, this is rapidly getting OT (even by php-dev's lax standards :) Anil -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]