[richfaces-issues] [JBoss JIRA] (RF-13224) RF 4.5 build fails to render optimized resources

Michal Petrov (JIRA) jira-events at lists.jboss.org
Tue Oct 8 06:23:03 EDT 2013


    [ https://issues.jboss.org/browse/RF-13224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12811787#comment-12811787 ] 

Michal Petrov commented on RF-13224:
------------------------------------

I guess the issue is in this then:

(StaticResourceHandler.java)[https://github.com/richfaces/richfaces/blob/master/framework/src/main/resource-optimizer/org/richfaces/resource/optimizer/resource/handler/impl/StaticResourceHandler.java?source=c#L96]

{code}
if (Strings.isNullOrEmpty(contentType)) {
     result.setContentType(MimetypesFileTypeMap.getDefaultFileTypeMap().getContentType(resourceName));
} else {
     result.setContentType(contentType);
}
{code}

The description for {{MimetypesFileTypeMap}} is:

{panel}
h3. MIME types file search order:

The MimetypesFileTypeMap looks in various places in the user's system for MIME types file entries. When requests are made to search for MIME types in the MimetypesFileTypeMap, it searches MIME types files in the following order:

# Programmatically added entries to the MimetypesFileTypeMap instance.
# The file .mime.types in the user's home directory.
# The file <java.home>/lib/mime.types.
# The file or resources named META-INF/mime.types.
# The file or resource named META-INF/mimetypes.default (usually found only in the activation.jar file).
{panel}

I had none of those {{mime.types}} files in my system. After copying one from {{/etc}} it now seems to work.
                
> RF 4.5 build fails to render optimized resources
> ------------------------------------------------
>
>                 Key: RF-13224
>                 URL: https://issues.jboss.org/browse/RF-13224
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: resource handling
>    Affects Versions: 4.5.0.Alpha1
>            Reporter: Lukáš Fryč
>            Assignee: Michal Petrov
>             Fix For: 4.5.0.Alpha1
>
>
> -I believe it's caused by:-
> https://github.com/richfaces/richfaces/commit/46b03d226ae420bcbc8abd7f79ed5790f2bb6dc4
> This is no longer an issue.
> Current issues:
> * packed.js is not generated, .js files do not seem to be handled by the plugin at all
> * some images are not rendered, e.g. gradientA.png (used in several components for background), it is not defined in resource-mappings.properties

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the richfaces-issues mailing list