james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tellier Benoit (JIRA)" <mime4j-...@james.apache.org>
Subject [jira] [Commented] (MIME4J-275) Unable to read content-type name, getFileName return null
Date Thu, 17 May 2018 07:12:00 GMT

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

Tellier Benoit commented on MIME4J-275:
---------------------------------------

I guess there's a misunderstanding here, sorry.

What I meant here was that we should be able to retrieve the filename when the Content-Disposition
header is missing (and only Content-Type:name)

> Unable to read content-type name, getFileName return null
> ---------------------------------------------------------
>
>                 Key: MIME4J-275
>                 URL: https://issues.apache.org/jira/browse/MIME4J-275
>             Project: James Mime4j
>          Issue Type: Bug
>          Components: parser (core)
>    Affects Versions: 0.8.1
>            Reporter: Raffaele Gambelli
>            Priority: Major
>         Attachments: vi_attachment_name.eml
>
>
> Hi all,
> I have an eml where there is a part like this:
> {quote}--___04381732116.93.1525348748___
> Content-Transfer-Encoding: Base64
> Content-type: application/pdf; Name="20180503_135905_043475033.pdf"
> {quote}
>  
> I know that it is missing the content-disposition, but parser shouldn't be able to read
content-type name anyway? And doing so, part.getFileName() would return that, am I wrong?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message