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

Ahmet Arslan updated CONNECTORS-470:
------------------------------------

    Attachment: pagination.zip

Hi Karl,

Thanks for the directions. If I understood you correctly, you wanted me to test 
pagination in SPSProxyHelper.getDocuments() method.

I found that, in my test environment there is no library that contains more 
than 2000 documents.
So, as you suggested, I decreased requestSize from 2000 to 4. I conducted tests 
on a library that contains 9 docs.
Which would yield 9/4 = 3 pages. Pagination works fine. While loop iterates 3 
times. Exists loop at the end.

I attached 4 xml responses. test4_all.xml is the response before decreasing 
requestSize. 
test4_1.xml, test4_2.xml and test4_3.xml are the partial results after 
decreasing requestSize to 4.

I have a few observations regarding the following code snippet.

{code} 
// Get the chunk description
nextChunkDescription = doc.getValue(rsData, "ListItemCollectionPositionNext");
if (nextChunkDescription == null)
 throw new ManifoldCFException("Expected rsdata to have attribute 
'ListItemCollectionPositionNext'");

{code} 
            
* Please note that ListItemCollectionPositionNext information does not exist in 
test4_all.xml (itemCount < requestSize) and test4_3.xml (last page).
* doc.getValue(rsData, "ListItemCollectionPositionNext"); method returns empty 
string in above cases. It does not return null.
            

Regarding SPSProxyHelper.getFieldValues() method, as you said I reverted my 
changes on SharePointRepository.java. 
The following code is always called with fieldNames[0]="Last_x0020_Modified" 
variable.

{code} 
String attrValue = doc.getValue(o,"ows_"+(String)attrName);
          if (attrValue != null)
            result.put(attrName,attrValue);
{code} 
            
I saw that returned attrValue starts with progId e.g. "111;#2012-03-15 
10:41:08" Should we exclude progId from attrValue?

Is it expected that getFieldValues() method is called only for 
Last_x0020_Modified?
                
> SharePoint 2010 support
> -----------------------
>
>                 Key: CONNECTORS-470
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-470
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: SharePoint connector
>    Affects Versions: ManifoldCF 0.5, ManifoldCF 0.6
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 0.7
>
>         Attachments: CONNECTORS-470.patch, CONNECTORS-470.patch, 
> CONNECTORS-470.patch, Screen Shot 2012-05-31 at 11.21.12 AM.png, 
> pagination.zip, pom.patch, pom.patch
>
>
> See here for list of the SharePoint web services for SharePoint 2010:
> http://msdn.microsoft.com/en-us/library/ee705814.aspx

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to