https://issues.apache.org/bugzilla/show_bug.cgi?id=49889
Helder Magalhães <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|SVG Rasterizer |SVG Viewer --- Comment #7 from Helder Magalhães <[email protected]> 2010-10-04 10:55:26 EDT --- (In reply to comment #0) > If an SVG image contains a reference to an external image that should be read > from a webserver, and that webserver returns the image back with a 404 header > (indicating that the desired address was not found), the contents of the > response is discarded, and Batik throws an exception. This is true, although it's not clear from this description that the exception is later caught and a default broken/missing image is displayed instead. This is for completeness, I believe the current behavior is much more interesting and consistent with other implementations. (In reply to comment #5) > I've put up a simple example at http://mystuff.webfreehosting.net/svg/ > > It contains a single line .htaccess file: > > ErrorDocument 404 /svg/Missing-Image.png > > http://mystuff.webfreehosting.net/svg/test.svg has an example whereby it tries > to retrieve the file "cannotfind.png" (which doesn't exist - and falls back to > the file 'Missing-Image.png') > > Hope this helps -- let me know if you need any additional info. Cool, thanks, I've set this as bug's URL. :-) > I tried several browsers - Firefox, Chrome & Opera rendered the image with the > 404 content inside the image. Konqueror seemed to have trouble displaying the > image, but it didn't like the version with a valid URL either, so it seems to > be more fussy than others. I don't have a Windows environment to try IE9. I've tried with IE9 platform preview 4 [1] (AFAIK, there's already a more recent beta version available but I haven't tried it yet) and the behavior is consistent with other implementations (i.e., "missing image" is displayed). I've also tried with IE8+ASV3 (Adobe SVG Plug-in) and it doesn't follow all other implementations. I guess this is an old known issue in ASV and, due to the fact that it's EOL'ed and is fading away, this is only informative. I've tested Batik without and with this patch applied and (after applying the patch) the behavior seems fine (loading both the bug's URL and the test case added in comment 6). :-) If there's nothing against, I'll commit this within the next few days. :-) [1] http://blogs.msdn.com/b/ie/archive/2010/08/04/html5-modernized-fourth-ie9-platform-preview-available-for-developers.aspx -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
