You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Ivan Khalopik (JIRA)" <ji...@apache.org> on 2010/12/28 14:08:45 UTC
[jira] Created: (TAP5-1392) SVG assets rended with wrong content
type
SVG assets rended with wrong content type
-----------------------------------------
Key: TAP5-1392
URL: https://issues.apache.org/jira/browse/TAP5-1392
Project: Tapestry 5
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.2
Reporter: Ivan Khalopik
Priority: Minor
When svg image added to page like asset in img tag, it is rended with application/xml content type instead of image/svg+xml, so that browsers doesn't show it.
When it is added to page as static resource all is ok.
The problem is in this code (StreamableResourceImpl):
URLConnection connection = url.openConnection();
contentType = connection.getContentType();
it returns application/xml, while code below will return image/svg+xml:
servletContext.getMimeType(resource.getPath());
Tested with Jetty6 + Chrome8,Opera11
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] [Commented] (TAP5-1392) SVG assets rended with wrong content
type
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13129355#comment-13129355 ]
Hudson commented on TAP5-1392:
------------------------------
Integrated in tapestry-trunk-freestyle #580 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/580/])
TAP5-1392: SVG assets rended with wrong content type
hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1185420
Files :
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/assets/AssetsModule.java
> SVG assets rended with wrong content type
> -----------------------------------------
>
> Key: TAP5-1392
> URL: https://issues.apache.org/jira/browse/TAP5-1392
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ivan Khalopik
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.3
>
>
> When svg image added to page like asset in img tag, it is rended with application/xml content type instead of image/svg+xml, so that browsers doesn't show it.
> When it is added to page as static resource all is ok.
> The problem is in this code (StreamableResourceImpl):
> URLConnection connection = url.openConnection();
> contentType = connection.getContentType();
> it returns application/xml, while code below will return image/svg+xml:
> servletContext.getMimeType(resource.getPath());
> Tested with Jetty6 + Chrome8,Opera11
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (TAP5-1392) SVG assets rended with wrong content
type
Posted by "Howard M. Lewis Ship (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-1392.
--------------------------------------
Resolution: Fixed
Fix Version/s: 5.3
Assignee: Howard M. Lewis Ship
> SVG assets rended with wrong content type
> -----------------------------------------
>
> Key: TAP5-1392
> URL: https://issues.apache.org/jira/browse/TAP5-1392
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ivan Khalopik
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.3
>
>
> When svg image added to page like asset in img tag, it is rended with application/xml content type instead of image/svg+xml, so that browsers doesn't show it.
> When it is added to page as static resource all is ok.
> The problem is in this code (StreamableResourceImpl):
> URLConnection connection = url.openConnection();
> contentType = connection.getContentType();
> it returns application/xml, while code below will return image/svg+xml:
> servletContext.getMimeType(resource.getPath());
> Tested with Jetty6 + Chrome8,Opera11
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (TAP5-1392) SVG assets rended with wrong content
type
Posted by "Howard M. Lewis Ship (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-1392.
--------------------------------------
Resolution: Fixed
Fix Version/s: 5.3
Assignee: Howard M. Lewis Ship
> SVG assets rended with wrong content type
> -----------------------------------------
>
> Key: TAP5-1392
> URL: https://issues.apache.org/jira/browse/TAP5-1392
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ivan Khalopik
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.3
>
>
> When svg image added to page like asset in img tag, it is rended with application/xml content type instead of image/svg+xml, so that browsers doesn't show it.
> When it is added to page as static resource all is ok.
> The problem is in this code (StreamableResourceImpl):
> URLConnection connection = url.openConnection();
> contentType = connection.getContentType();
> it returns application/xml, while code below will return image/svg+xml:
> servletContext.getMimeType(resource.getPath());
> Tested with Jetty6 + Chrome8,Opera11
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1392) SVG assets rended with wrong content
type
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13129355#comment-13129355 ]
Hudson commented on TAP5-1392:
------------------------------
Integrated in tapestry-trunk-freestyle #580 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/580/])
TAP5-1392: SVG assets rended with wrong content type
hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1185420
Files :
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/assets/AssetsModule.java
> SVG assets rended with wrong content type
> -----------------------------------------
>
> Key: TAP5-1392
> URL: https://issues.apache.org/jira/browse/TAP5-1392
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ivan Khalopik
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.3
>
>
> When svg image added to page like asset in img tag, it is rended with application/xml content type instead of image/svg+xml, so that browsers doesn't show it.
> When it is added to page as static resource all is ok.
> The problem is in this code (StreamableResourceImpl):
> URLConnection connection = url.openConnection();
> contentType = connection.getContentType();
> it returns application/xml, while code below will return image/svg+xml:
> servletContext.getMimeType(resource.getPath());
> Tested with Jetty6 + Chrome8,Opera11
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira