You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@manifoldcf.apache.org by "Shinichiro Abe (JIRA)" <ji...@apache.org> on 2013/09/02 09:04:52 UTC

[jira] [Updated] (CONNECTORS-767) Can we get file name in Web Connector?

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

Shinichiro Abe updated CONNECTORS-767:
--------------------------------------

    Attachment: CONNECTORS-767.patch

Here is a patch. This supports Wget-conventions, I think.

I've checked this code below:

{noformat}
url:http://server
filename:(nothing)
url:http://server/
filename:index.html
url:http://server?id=1
filename:(nothing)
url:http://server/?id=1
filename:index.html?id=1
url:http://server/dir/test?id=1
filename:test?id=1
url:http://server/dir/test/?id=1
filename:index.html?id=1
url:http://server/dir/test?id=1&page=1
filename:test?id=1&page=1
url:http://server/dir/test/?id=1&page=1
filename:index.html?id=1&page=1
url:http://server/dir/test/aaa.txt
filename:aaa.txt
url:http://server/dir/test/bbb
filename:bbb
url:http://server/dir/test/bbb/
filename:index.html
url:http://server/dir/test.html?id=4
filename:test.html?id=4
{noformat}

Is this patch fine? Please review this.
Thanks in advance!
                
> 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
>         Attachments: CONNECTORS-767.patch
>
>
> 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