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

Karl Wright commented on CONNECTORS-710:
----------------------------------------

The URI for a connector is not arbitrary.  You are supposed to be able to get 
the original file back by loading the URI that is indexed by the connector.  
The new form of URI does not look functional in this way.

One way to get around this issue would be to pretend that you had a web server 
which was capable of serving the files.  You don't actually have to have such a 
web server, but you might be able to use that as a model.  For example, when 
you set up the file connection, you might have a "Web server" tab, that would 
allow you to configure part of the URL instead, such as "http://localhost:123";. 
 Then, if that is set, all files indexed would be prefixed with 
"http://localhost:123/"; instead of "file:".

                
> FileConector enhancement.
> -------------------------
>
>                 Key: CONNECTORS-710
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-710
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: File system connector
>    Affects Versions: ManifoldCF 1.3
>            Reporter: Minoru Osuka
>             Fix For: ManifoldCF 1.3
>
>         Attachments: Screen Shot 2013-06-11 at 5.46.55 PM.png
>
>
> I would like to enhance that FileConnector be able to convert from file path 
> to URI.
> FileOutputConnector will output the file path like Wget.
> $OUTPUT_PATH/http/localhost:8345/mcf-crawler-ui/showjobstatus.jsp
> I would like to enhance that FileConector be able to put documentIdentifere 
> like WebConnector.
> Current FileConnector can output id following,
> {code:xml}
> <str 
> name="id">file:/Users/minoru/tmp/out/http/localhost:8345/mcf-crawler-ui/showjobstatus.jsp</str>
> {code}
> Enhanced FileConnector can output id following,
> {code:xml}
> <str 
> name="id">file:/Users/minoru/tmp/out/http/localhost:8345/mcf-crawler-ui/showjobstatus.jsp</str>
> {code}
> or
> {code:xml}<str 
> name="id">http://localhost:8345/mcf-crawler-ui/showjobstatus.jsp</str></str>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to