Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(210)

Issue 6203047: SharePoint large ACL Processing (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by Tanmay Vartak
Modified:
14 years ago
Reviewers:
JohnL, mifern, nageswaras
CC:
connector-cr_google.com
Base URL:
http://google-enterprise-connector-sharepoint.googlecode.com/svn/trunk/
Visibility:
Public.

Description

SharePoint large ACL Processing 1. SharePoint Group resolution in batches once per web state 2. Processing of large ACLs individually

Patch Set 1 #

Patch Set 2 : Patch without pseudo groups for large ACLs #

Total comments: 6

Patch Set 3 : Patch 2 - With javadoc and advanced config properties #

Total comments: 134

Patch Set 4 : Patch with Code Review Comments Implemented #

Total comments: 3

Patch Set 5 : same patch with -x -w #

Patch Set 6 : Support for 6.X GSA #

Patch Set 7 : support for 6.x GSA with correct version of GssAclWs.java #

Total comments: 14
Unified diffs Side-by-side diffs Delta from patch set Stats (+672 lines, -129 lines) Patch
M config/config/connectorDefaults.xml View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M config/config/connectorInstance.xml View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
M source/java/com/google/enterprise/connector/sharepoint/client/ListsUtil.java View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M source/java/com/google/enterprise/connector/sharepoint/client/SharepointClient.java View 1 2 3 4 5 1 chunk +38 lines, -7 lines 0 comments Download
M source/java/com/google/enterprise/connector/sharepoint/client/SharepointClientContext.java View 1 2 3 4 5 2 chunks +35 lines, -0 lines 0 comments Download
M source/java/com/google/enterprise/connector/sharepoint/spiimpl/SharepointConnector.java View 1 2 3 4 5 4 chunks +38 lines, -2 lines 0 comments Download
M source/java/com/google/enterprise/connector/sharepoint/state/WebState.java View 1 2 3 4 5 3 chunks +43 lines, -0 lines 0 comments Download
M source/java/com/google/enterprise/connector/sharepoint/wsclient/client/AclWS.java View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M source/java/com/google/enterprise/connector/sharepoint/wsclient/mock/MockAclWS.java View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java View 1 2 3 4 5 6 18 chunks +196 lines, -23 lines 11 comments Download
M source_net/Acl/GssAcl.asmx View 1 2 3 4 5 9 chunks +180 lines, -95 lines 3 comments Download
M source_net/Acl/GssAclwsdl.aspx View 1 2 3 4 5 7 chunks +45 lines, -0 lines 0 comments Download
M wsdl/GssAcl.wsdl View 1 2 3 4 5 7 chunks +46 lines, -1 line 0 comments Download

Messages

Total messages: 20
Tanmay Vartak
14 years, 1 month ago (2012-05-07 20:40:15 UTC) #1
Tanmay Vartak
On 2012/05/07 20:40:15, tvartak wrote: additional changes required to have configurable batch limits
14 years, 1 month ago (2012-05-07 20:43:02 UTC) #2
Tanmay Vartak
14 years ago (2012-05-16 23:53:53 UTC) #3
Tanmay Vartak
On 2012/05/16 23:53:53, tvartak wrote: 1. SharePoint Group resolution in batches once per web state ...
14 years ago (2012-05-16 23:58:55 UTC) #4
nageswaras
Can you please share with me the high level design changes document (with possible solution ...
14 years ago (2012-05-17 07:52:49 UTC) #5
nageswaras
http://codereview.appspot.com/6203047/diff/3001/source/java/com/google/enterprise/connector/sharepoint/client/SharepointClient.java File source/java/com/google/enterprise/connector/sharepoint/client/SharepointClient.java (right): http://codereview.appspot.com/6203047/diff/3001/source/java/com/google/enterprise/connector/sharepoint/client/SharepointClient.java#newcode316 source/java/com/google/enterprise/connector/sharepoint/client/SharepointClient.java:316: private boolean resolveSharePointGroups(WebState webState) { missing java doc ? ...
14 years ago (2012-05-17 08:15:28 UTC) #6
Tanmay Vartak
I will add comments for new methods http://codereview.appspot.com/6203047/diff/3001/source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java File source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java (right): http://codereview.appspot.com/6203047/diff/3001/source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java#newcode1083 source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java:1083: result = ...
14 years ago (2012-05-17 17:38:23 UTC) #7
Tanmay Vartak
14 years ago (2012-05-21 20:52:53 UTC) #8
Tanmay Vartak
On 2012/05/21 20:52:53, tvartak wrote: Added 2 advanced configuration properties for SharePoint Connector. 1. largeACLThreshold ...
14 years ago (2012-05-21 20:58:57 UTC) #9
Tanmay Vartak
http://codereview.appspot.com/6203047/diff/10001/config/config/connectorDefaults.xml File config/config/connectorDefaults.xml (right): http://codereview.appspot.com/6203047/diff/10001/config/config/connectorDefaults.xml#newcode96 config/config/connectorDefaults.xml:96: for SharePoint Group Resolution inorder to avoid large SOAP ...
14 years ago (2012-05-21 21:00:32 UTC) #10
JohnL
Lots and lots of minor and trivial comments. Buried in here is a request to ...
14 years ago (2012-05-24 01:41:39 UTC) #11
JohnL
More broadly, it would be great to have some kind of tests for this code. ...
14 years ago (2012-05-24 02:01:23 UTC) #12
JohnL
Trivial comment about "prinicpal" typos and backward compatibility. John L http://codereview.appspot.com/6203047/diff/10001/source_net/Acl/GssAcl.asmx File source_net/Acl/GssAcl.asmx (right): http://codereview.appspot.com/6203047/diff/10001/source_net/Acl/GssAcl.asmx#newcode652 ...
14 years ago (2012-05-24 02:24:17 UTC) #13
Tanmay Vartak
14 years ago (2012-05-25 22:02:45 UTC) #14
Tanmay Vartak
14 years ago (2012-05-25 22:03:33 UTC) #15
Tanmay Vartak
As discussed uploaded 2 patch with and without -w-x Added my comments where applicable http://codereview.appspot.com/6203047/diff/10001/config/config/connectorDefaults.xml ...
14 years ago (2012-05-25 22:05:05 UTC) #16
JohnL
LGTM, with minor comments. John L http://codereview.appspot.com/6203047/diff/22001/source/java/com/google/enterprise/connector/sharepoint/client/ListsUtil.java File source/java/com/google/enterprise/connector/sharepoint/client/ListsUtil.java (right): http://codereview.appspot.com/6203047/diff/22001/source/java/com/google/enterprise/connector/sharepoint/client/ListsUtil.java#newcode339 source/java/com/google/enterprise/connector/sharepoint/client/ListsUtil.java:339: continue; This is ...
14 years ago (2012-05-26 02:47:48 UTC) #17
Tanmay Vartak
Patch uploaded with large ACL support for GSA 6.X On 2012/05/26 02:47:48, John L wrote: ...
14 years ago (2012-06-04 16:58:09 UTC) #18
JohnL
LGTM, with minor comments. John L http://codereview.appspot.com/6203047/diff/33001/source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java File source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java (right): http://codereview.appspot.com/6203047/diff/33001/source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java#newcode243 source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java:243: Map<String,List<SPDocument>> parentUrlToDocMapToReProcess = ...
14 years ago (2012-06-04 21:02:23 UTC) #19
Tanmay Vartak
14 years ago (2012-06-05 00:30:05 UTC) #20
Code Commit
http://code.google.com/p/google-enterprise-connector-sharepoint/source/detail...

On 2012/06/04 21:02:23, John L wrote:
> LGTM, with minor comments.
> 
> John L
> 
>
http://codereview.appspot.com/6203047/diff/33001/source/java/com/google/enter...
> File
>
source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java
> (right):
> 
>
http://codereview.appspot.com/6203047/diff/33001/source/java/com/google/enter...
>
source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java:243:
> Map<String,List<SPDocument>> parentUrlToDocMapToReProcess =
> Add a space after comma. Maybe a shorter name, like "reprocessDocs"? Certainly
> "re" is not a word by itself.
> 
>
http://codereview.appspot.com/6203047/diff/33001/source/java/com/google/enter...
>
source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java:246:
> ACL: for (GssAcl acl : allAcls) {
> Please restore the outdent on the label. I can't find anything explicit, and
> would have guess two spaces, but for some reason the Google emacs style uses 3
> spaces, which is what was done here.
> 
>
http://codereview.appspot.com/6203047/diff/33001/source/java/com/google/enter...
>
source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java:271:
> if (parentUrl != null && !parentUrl.isEmpty()) {
> !Strings.isNullOrEmpty(parentUrl)
> 
> That's better generally, and String.isEmpty is not allowed anyway (requires
Java
> 6).
> 
>
http://codereview.appspot.com/6203047/diff/33001/source/java/com/google/enter...
>
source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java:273:
> + " ] is idenified as LargeAcl but with inherit permissions,"
> "idenified as LargeAcl" => "identified as a large ACL"
> Add a space after the comma in the string: permissions," => permissions, "
> 
>
http://codereview.appspot.com/6203047/diff/33001/source/java/com/google/enter...
>
source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java:274:
> + "with Parent Url as " + parentUrl);
> "Url" => "URL"
> 
>
http://codereview.appspot.com/6203047/diff/33001/source/java/com/google/enter...
>
source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java:275:
> List<SPDocument> childList =
> Using a multimap (e.g., com.google.common.collect.HashMultimap) would be more
> natural, so you could just say ...put(parentUrl, document) here.
> 
>
http://codereview.appspot.com/6203047/diff/33001/source/java/com/google/enter...
>
source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java:409:
> List<SPDocument> childList = parentUrlToDocMapToReProcess.get(parentUrl);
> Note that Multimap behaves similarly here, except that get returns a
Collection,
> and never returns null.
> 
>
http://codereview.appspot.com/6203047/diff/33001/source/java/com/google/enter...
>
source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java:410:
> if (childList != null) {
> As coded, you never have childList == null here, either, so this can be
deleted
> either way.
> 
>
http://codereview.appspot.com/6203047/diff/33001/source/java/com/google/enter...
>
source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java:412:
> copyAcls(parent,child);
> Add space after comma.
> 
>
http://codereview.appspot.com/6203047/diff/33001/source/java/com/google/enter...
>
source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java:446:
> * Utility method to copy ACLs
> Add a period. More interesting, please note that this makes a shallow copy.
> 
>
http://codereview.appspot.com/6203047/diff/33001/source/java/com/google/enter...
>
source/java/com/google/enterprise/connector/sharepoint/wsclient/soap/GSAclWS.java:457:
> 
> Delete the two extra blank lines.
> 
> http://codereview.appspot.com/6203047/diff/33001/source_net/Acl/GssAcl.asmx
> File source_net/Acl/GssAcl.asmx (right):
> 
>
http://codereview.appspot.com/6203047/diff/33001/source_net/Acl/GssAcl.asmx#n...
> source_net/Acl/GssAcl.asmx:895: 
> Delete extra blank line.
> 
>
http://codereview.appspot.com/6203047/diff/33001/source_net/Acl/GssAcl.asmx#n...
> source_net/Acl/GssAcl.asmx:1554: using (SPWeb oWeb = (SPWeb)spObject)
> Add spaces after casts here and below.
> 
>
http://codereview.appspot.com/6203047/diff/33001/source_net/Acl/GssAcl.asmx#n...
> source_net/Acl/GssAcl.asmx:1571: 
> Delete two extra blank lines.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b