You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2010/08/17 16:19:15 UTC
[jira] Created: (TIKA-483) Empty file detected as text/plain
Empty file detected as text/plain
---------------------------------
Key: TIKA-483
URL: https://issues.apache.org/jira/browse/TIKA-483
Project: Tika
Issue Type: Bug
Affects Versions: 0.7
Reporter: Jukka Zitting
Our current type detection code returns text/plain for an empty document. A more better return type would be application/octet-stream, to give higher level detectors like filename suffix hints more flexibility.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TIKA-483) Empty file detected as text/plain
Posted by "Piotr B. (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TIKA-483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12899467#action_12899467 ]
Piotr B. commented on TIKA-483:
-------------------------------
Unix 'file -i' command returns application/x-empty for an empty document.
> Empty file detected as text/plain
> ---------------------------------
>
> Key: TIKA-483
> URL: https://issues.apache.org/jira/browse/TIKA-483
> Project: Tika
> Issue Type: Bug
> Affects Versions: 0.7
> Reporter: Jukka Zitting
>
> Our current type detection code returns text/plain for an empty document. A more better return type would be application/octet-stream, to give higher level detectors like filename suffix hints more flexibility.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (TIKA-483) Empty file detected as text/plain
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TIKA-483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jukka Zitting resolved TIKA-483.
--------------------------------
Assignee: Jukka Zitting
Fix Version/s: 0.8
Resolution: Fixed
Fixed in revision 986594. I use application/octet-stream for empty files instead of the non-standard application/x-empty. This loses some information, but on the other hand allows type inheritance rules to work correctly in cases like when a type hint like "filename.txt" suggests a more specific media type.
> Empty file detected as text/plain
> ---------------------------------
>
> Key: TIKA-483
> URL: https://issues.apache.org/jira/browse/TIKA-483
> Project: Tika
> Issue Type: Bug
> Affects Versions: 0.7
> Reporter: Jukka Zitting
> Assignee: Jukka Zitting
> Fix For: 0.8
>
>
> Our current type detection code returns text/plain for an empty document. A more better return type would be application/octet-stream, to give higher level detectors like filename suffix hints more flexibility.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.