You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Tommaso Teofili (JIRA)" <de...@uima.apache.org> on 2010/11/07 10:30:06 UTC
[jira] Resolved: (UIMA-1878) TikaAnnotator doesn't handle spaces in
path string
[ https://issues.apache.org/jira/browse/UIMA-1878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tommaso Teofili resolved UIMA-1878.
-----------------------------------
Resolution: Fixed
I think that was resolved and never marked as.
> TikaAnnotator doesn't handle spaces in path string
> --------------------------------------------------
>
> Key: UIMA-1878
> URL: https://issues.apache.org/jira/browse/UIMA-1878
> Project: UIMA
> Issue Type: Bug
> Components: Sandbox-TikaAnnotator
> Affects Versions: 2.3
> Environment: Windows
> Reporter: Greg Holmberg
> Attachments: TikaAnnotator-patch.txt
>
>
> If you give a value for InputDirectory that contains a space, then TikiAnnotator silently does nothing.
> This is because File objects are converted directly to a URL, and openStream() fails because the space character wasn't converted to %20.
> When this happens, the exception is ignored and the CAS text is set to "".
> It would be better to convert the File object to a URI and the URI to a URL. This will convert the space character correctly.
> Secondly, it would be better the throw an exception rather than silently ignore it.
> A suggested patch is attached.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.