[jboss-jira] [JBoss JIRA] (WFCORE-4043) Issues accessing JNLP application in Internet Explorer due to missing mime-type.

Saisha Naik (JIRA) issues at jboss.org
Fri Aug 17 02:10:00 EDT 2018


     [ https://issues.jboss.org/browse/WFCORE-4043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Saisha Naik updated WFCORE-4043:
--------------------------------
               Description: 
Issues accessing a JNLP application in Internet Explorer due to missing JNLP extension in undertow. The JNLP application is rendered as an XML file due to incorrect mime-type.
This works fine in Mozilla and Chrome.

The JNLP mapping does not exist in [Mimemappings.java|https://github.com/undertow-io/undertow/blob/master/core/src/main/java/io/undertow/util/MimeMappings.java]. 

  was:
Issues accessing a JNLP application in Internet Explorer due to missing JNLP extension in undertow. The JNLP application is rendered as an XML file due to incorrect mime-type.

The JNLP mapping does not exist in [Mimemappings.java|https://github.com/undertow-io/undertow/blob/master/core/src/main/java/io/undertow/util/MimeMappings.java]. The work around is to add the mime-type to the servlet container[2] :

{code}
/subsystem=undertow/servlet-container=default/mime-mapping=json:add(value="application/json")
{code}

        Steps to Reproduce: 
1) Deploy the Test.jnlp(attached) in welcome-root folder.
2) Deploy TestJnlp.jar(attached) in deployments/ directory.
2) Access the URL : https://IP:PORT/Test.jnlp
3) It will prompt to download the Test.jnlp file. Accept and double click on it.
4) Click on the "Run" button to lauch the AWT program.

The above steps will work fine in browsers like Mozilla and Chrome, but fail in IE.
                Attachment: Test.jnlp
                            TestJnlp.jar
    Workaround Description: 
The work around is to add the mime-type explicitly to the servlet container :

{code}
/subsystem=undertow/servlet-container=default/mime-mapping=json:add(value="application/json")
{code}

                Workaround: Workaround Exists
                   Affects: Migration,Compatibility/Configuration,User Experience


> Issues accessing JNLP application in Internet Explorer due to missing mime-type.
> --------------------------------------------------------------------------------
>
>                 Key: WFCORE-4043
>                 URL: https://issues.jboss.org/browse/WFCORE-4043
>             Project: WildFly Core
>          Issue Type: Bug
>            Reporter: Saisha Naik
>            Priority: Minor
>         Attachments: Test.jnlp, TestJnlp.jar
>
>
> Issues accessing a JNLP application in Internet Explorer due to missing JNLP extension in undertow. The JNLP application is rendered as an XML file due to incorrect mime-type.
> This works fine in Mozilla and Chrome.
> The JNLP mapping does not exist in [Mimemappings.java|https://github.com/undertow-io/undertow/blob/master/core/src/main/java/io/undertow/util/MimeMappings.java]. 



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list