manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Avdeev (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CONNECTORS-1324) Not all SharePoint Metadata Fields are returned - 2
Date Tue, 21 Jun 2016 13:36:58 GMT

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

Konstantin Avdeev updated CONNECTORS-1324:
------------------------------------------
    Description: 
Hello Karl,

This is a follow up ticket for [1284|https://issues.apache.org/jira/browse/CONNECTORS-1284].
There is still a problem with getting meta-data from sharepoint lists.

E.g. I'm missing the "title" and "description" fields in the result documents.

Let's take the "title" field from a list document:
{code:xml|title=DEBUG: SharePoint: getFieldList xml response:}
...
    <ns1:Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Type="Text" Name="Title"
    DisplayName="Task Name" Required="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3"
    StaticName="Title" FromBaseType="TRUE" Sealed="TRUE" ColName="nvarchar1" />
...
{code}

The field {{Name}} is the internal (technical) field name, and {{DisplayName}} is the frontend
(user-friendly) name. 
The connector maps {{Name}} to {{DisplayName}} when it is preparing the request:
{code:java|title=SharePointRepository.java}
            for (String field : fieldNames.keySet())
            {
              String value = fieldNames.get(field);
              fields[j++] = (value==null)?field:value;
{code}

Changing the last two lines to:
{code:java}
              fields[j++] = field;
{code}
solves the problem.
I doubt, the {{DisplayName}} should be used at all, as it can contain non-ascii chars, e.g.:
{code:xml}
...
<ns1:Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Type="Text" Name="Title" DisplayName="&#xDC;berschrift"
...
{code}

Currently, only fields with the same Name/DisplayName values can be indexed.
Could you please look into this?
Thank you!


  was:
Hello Karl,

This is a follow up ticket for [1284|https://issues.apache.org/jira/browse/CONNECTORS-1284].
There is still a problem with getting meta-data from sharepoint lists.

E.g. I'm missing the "title" and "description" fields in the result documents.

Let's take the "title" field from a list document:
{code:xml|title=DEBUG: SharePoint: getFieldList xml response:}
...
    <ns1:Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Type="Text" Name="Title"
    DisplayName="Task Name" Required="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3"
    StaticName="Title" FromBaseType="TRUE" Sealed="TRUE" ColName="nvarchar1" />
...
{code}

The field {{Name}} is the internal (technical) field name, and {{DisplayName}} is the frontend
(user-friendly) name. 
The connector maps {{Name}} to {{DisplayName}} when it is preparing the request:
{code:java|title=SharePointRepository.java}
            for (String field : fieldNames.keySet())
            {
              String value = fieldNames.get(field);
              fields[j++] = (value==null)?field:value;
{code}

Changing the last two string to:
{code:java}
              fields[j++] = field;
{code}
solves the problem.
I doubt, the {{DisplayName}} should be used at all, as it can contain non-ascii chars, e.g.:
{code:xml}
...
<ns1:Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Type="Text" Name="Title" DisplayName="&#xDC;berschrift"
...
{code}

Currently, only fields with the same Name/DisplayName values can be indexed.
Could you please look into this?
Thank you!



> Not all SharePoint Metadata Fields are returned - 2
> ---------------------------------------------------
>
>                 Key: CONNECTORS-1324
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1324
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: SharePoint connector
>    Affects Versions: ManifoldCF 2.4
>         Environment: Java 1.8, Windows x64, Sharepoint 2013
>            Reporter: Konstantin Avdeev
>
> Hello Karl,
> This is a follow up ticket for [1284|https://issues.apache.org/jira/browse/CONNECTORS-1284].
> There is still a problem with getting meta-data from sharepoint lists.
> E.g. I'm missing the "title" and "description" fields in the result documents.
> Let's take the "title" field from a list document:
> {code:xml|title=DEBUG: SharePoint: getFieldList xml response:}
> ...
>     <ns1:Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Type="Text" Name="Title"
>     DisplayName="Task Name" Required="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3"
>     StaticName="Title" FromBaseType="TRUE" Sealed="TRUE" ColName="nvarchar1" />
> ...
> {code}
> The field {{Name}} is the internal (technical) field name, and {{DisplayName}} is the
frontend (user-friendly) name. 
> The connector maps {{Name}} to {{DisplayName}} when it is preparing the request:
> {code:java|title=SharePointRepository.java}
>             for (String field : fieldNames.keySet())
>             {
>               String value = fieldNames.get(field);
>               fields[j++] = (value==null)?field:value;
> {code}
> Changing the last two lines to:
> {code:java}
>               fields[j++] = field;
> {code}
> solves the problem.
> I doubt, the {{DisplayName}} should be used at all, as it can contain non-ascii chars,
e.g.:
> {code:xml}
> ...
> <ns1:Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Type="Text" Name="Title" DisplayName="&#xDC;berschrift"
...
> {code}
> Currently, only fields with the same Name/DisplayName values can be indexed.
> Could you please look into this?
> Thank you!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message