[ 
https://issues.apache.org/jira/browse/UIMA-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard Eckart updated UIMA-1080:
---------------------------------

    Attachment: UIMA-1080.patch

The attached patch fixes this problem by wrapping the value in an URI object 
instead of an URL object. If also fixes a typo and the class which is used to 
get the the descriptor from the classpath in getDescription(). 

> [Patch] Wrong usage of URL in XmiWriterCasConsumer
> --------------------------------------------------
>
>                 Key: UIMA-1080
>                 URL: https://issues.apache.org/jira/browse/UIMA-1080
>             Project: UIMA
>          Issue Type: Improvement
>          Components: InternalTools
>    Affects Versions: 2.2.2
>            Reporter: Richard Eckart
>            Priority: Minor
>         Attachments: UIMA-1080.patch
>
>
> The XmiWriterCasConsumer wraps the value of 
> SourceDocumentInformation.getUri() in an URL to extract the path. This only 
> works if the value returned by getUri() is actually an URL starting with 
> http, ftp or some other known protocol. It does not work if a framework user 
> puts some self-defined URIs in there, such as annolab://default/myfile. 
> The attached patch fixes this problem by wrapping the value in an URI object 
> instead of an URL object. If also fixes a typo and the class which is used to 
> get the the descriptor from the classpath in getDescription().

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to