[
https://issues.apache.org/jira/browse/WOOKIE-80?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127468#comment-13127468
]
Paul Sharples commented on WOOKIE-80:
-------------------------------------
I can see that this has been implemented and there are plenty of test cases
found in the ContentTypeUtilsTest class. However, it appears it is never
actually called for real in the parsing section for an IconEntity.
In org.apache.wookie.w3c.impl.IconEntity, line 83..
if (!ContentTypeUtils.isSupportedImageType(fSrc)) fSrc = null;
This calls ContentTypeUtil.isSupportedImageType(String)
...but this method will never call the filesniffer. There is a similar
method...
ContentTypeUtil.isSupportedImageType(File)
..which will call the filesniffer method. Should IconEntity call this second
method instead?
> W3C Widgets conformance: check content type of icons
> ----------------------------------------------------
>
> Key: WOOKIE-80
> URL: https://issues.apache.org/jira/browse/WOOKIE-80
> Project: Wookie
> Issue Type: Bug
> Components: Parser
> Reporter: Scott Wilson
> Assignee: Scott Wilson
> Fix For: 0.9.1
>
> Original Estimate: 2h
> Time Spent: 1h
> Remaining Estimate: 1h
>
> Icons specified by a widget's config.xml need to have their content-type
> checked out using the SNIFF algorithm in the W3C Widgets spec. Currently
> conformance test "za" fails due to this issue.
--
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