[jira] Created: (PLXCOMP-103) Content Type is set to null, when mime type is unknown

View: New views
2 Messages — Rating Filter:   Alert me  

[jira] Created: (PLXCOMP-103) Content Type is set to null, when mime type is unknown

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Content Type is set to null, when mime type is unknown
------------------------------------------------------

                 Key: PLXCOMP-103
                 URL: http://jira.codehaus.org/browse/PLXCOMP-103
             Project: Plexus Components
          Issue Type: Bug
          Components: plexus-webdav
         Environment: WebSphere Application Server 6.1, Archiva 1.0.1
            Reporter: Steffen Grunwald


If you try to get a file with an unknown extension a NullPointerException is thrown.
Cause: If the file extension is not mapped in mime.types, setContentType is called with null.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Updated: (PLXCOMP-103) Content Type is set to null, when mime type is unknown

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/PLXCOMP-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steffen Grunwald updated PLXCOMP-103:
-------------------------------------

    Attachment: PLXCOMP-103.patch

Don't set Header Field, if mime type is unknown.

> Content Type is set to null, when mime type is unknown
> ------------------------------------------------------
>
>                 Key: PLXCOMP-103
>                 URL: http://jira.codehaus.org/browse/PLXCOMP-103
>             Project: Plexus Components
>          Issue Type: Bug
>          Components: plexus-webdav
>         Environment: WebSphere Application Server 6.1, Archiva 1.0.1
>            Reporter: Steffen Grunwald
>         Attachments: PLXCOMP-103.patch
>
>
> If you try to get a file with an unknown extension a NullPointerException is thrown.
> Cause: If the file extension is not mapped in mime.types, setContentType is called with null.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email