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

ASF GitHub Bot commented on TIKA-4882:
--------------------------------------

timgrein opened a new pull request, #3142:
URL: https://github.com/apache/tika/pull/3142

   Currently the behavior of `FilenameUtils.calculateExtension` only specifies 
that the `defaultValue` is returned on a parse exception or a null value. The 
behavior for an unknown value is not specified and silently returns `.bin`. I 
adjusted the docs and now the `defaultValue` is returned, if the extension is 
unknown.




> FilenameUtils.calculateExtension ignores defaultValue on unknown path
> ---------------------------------------------------------------------
>
>                 Key: TIKA-4882
>                 URL: https://issues.apache.org/jira/browse/TIKA-4882
>             Project: Tika
>          Issue Type: Bug
>          Components: core
>            Reporter: Tim Grein
>            Priority: Minor
>
> FilenameUtils.calculateExtension ignores an unknown extension in the sense 
> that the behavior on an unknown extension is not specified in the javadoc and 
> it's not explicitly handled. It should probably be either handled or 
> explicitly documented.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to