felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-5110) HTTP resources content type are not set when using whiteboard pattern
Date Fri, 20 Nov 2015 14:22:11 GMT

    [ https://issues.apache.org/jira/browse/FELIX-5110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15018077#comment-15018077
] 

ASF GitHub Bot commented on FELIX-5110:
---------------------------------------

GitHub user xfournet opened a pull request:

    https://github.com/apache/felix/pull/41

    FELIX-5110 implement default mime type handling in PerBundleServletCo…

    …ntextImpl#getMimeType with the same way than ServletContextImpl#getMimeType

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/xfournet/felix FELIX-5110

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/felix/pull/41.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #41
    
----
commit e186ce83913b77b5d09a57a4e064c156aad81e74
Author: Xavier Fournet <xavier.fournet@gmail.com>
Date:   2015-11-20T14:20:22Z

    FELIX-5110 implement default mime type handling in PerBundleServletContextImpl#getMimeType
with the same way than ServletContextImpl#getMimeType

----


> HTTP resources content type are not set when using whiteboard pattern
> ---------------------------------------------------------------------
>
>                 Key: FELIX-5110
>                 URL: https://issues.apache.org/jira/browse/FELIX-5110
>             Project: Felix
>          Issue Type: Bug
>          Components: HTTP Service
>    Affects Versions: http.jetty-3.1.0, http.jetty-3.1.2
>            Reporter: Xavier Fournet
>            Assignee: Carsten Ziegeler
>             Fix For: http.base-3.0.4, http.jetty-3.1.4
>
>
> As written in the javadoc of org.osgi.service.http.context.ServletContextHelper#getMimeType,
when it return null "the Http Whiteboard implementation should determine the MIME type itself"
> When registering resource through the HTTP service, a similar default mecanism is working
well.
> But the whiteboard pattern, no content type is determined at all. This cause problem
(eg serving .css with no content type is not accepted by IE)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message