[
https://issues.apache.org/jira/browse/CONNECTORS-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13750113#comment-13750113
]
Shinichiro Abe commented on CONNECTORS-767:
-------------------------------------------
I'm seeing HDFS repo connector, wget-convention logic applies to "uri"
metadata. This is not applied to setFileName().
HDFS repo connector:
data.setFileName(fileStatus.getPath().getName()); <-- it sets a file name
not a path, so I don't think rd.setFileName() might include a path.
I hope setFileName() is consistent with our all connector as a file name, not
including a path
(perhaps all setFileName()-s is consistent currently).
for example:
http://server/test?id=1 <-- I don't want to set rd.setFileName()
http://server/test/?id=1 <-- I don't want to set rd.setFileName()
http://server/test/?id=1&page=1 <-- I don't want to set rd.setFileName()
http://server/test/aaa.txt <-- I want to set rd.setFileName()
http://server/test/bbb <-- How do I handle this?
Do you have any better approach about that?
Thanks.
> Can we get file name in Web Connector?
> --------------------------------------
>
> Key: CONNECTORS-767
> URL: https://issues.apache.org/jira/browse/CONNECTORS-767
> Project: ManifoldCF
> Issue Type: Bug
> Components: Web connector
> Affects Versions: ManifoldCF 1.3
> Reporter: Shinichiro Abe
> Priority: Trivial
>
> Although file and sharedDrive connectors get file name, web connector does
> not get file name currently. Can web connector get a file name like below? :
> RepositoryDocument rd = new RepositoryDocument();
> rd.setFileName(filename from URL);
> rd.setBinary(InputStream);
--
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