Return-Path: X-Original-To: apmail-manifoldcf-dev-archive@www.apache.org Delivered-To: apmail-manifoldcf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15036186AB for ; Wed, 5 Aug 2015 11:34:27 +0000 (UTC) Received: (qmail 30333 invoked by uid 500); 5 Aug 2015 11:27:47 -0000 Delivered-To: apmail-manifoldcf-dev-archive@manifoldcf.apache.org Received: (qmail 30285 invoked by uid 500); 5 Aug 2015 11:27:47 -0000 Mailing-List: contact dev-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@manifoldcf.apache.org Delivered-To: mailing list dev@manifoldcf.apache.org Received: (qmail 30273 invoked by uid 99); 5 Aug 2015 11:27:47 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2015 11:27:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A5929C009C for ; Wed, 5 Aug 2015 11:27:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.793 X-Spam-Level: * X-Spam-Status: No, score=1.793 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-1.108, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id IekqS2UMDfCK for ; Wed, 5 Aug 2015 11:27:37 +0000 (UTC) Received: from mail-io0-f171.google.com (mail-io0-f171.google.com [209.85.223.171]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id A83EA42B19 for ; Wed, 5 Aug 2015 11:27:36 +0000 (UTC) Received: by ioea135 with SMTP id a135so45773058ioe.1 for ; Wed, 05 Aug 2015 04:27:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Vun4hrOLx6s7DrMLrqwo0S7m8W8trv9X4JcLFLF5SoI=; b=CdXjtfhPTWyWlQ9P4UrfRSTGmd5Z4oMKVSC++yHjmQzKEI9XLDYk7pzi06qPRKTW7h U3r96ImXPp0aIuz3dwPP4iJspzB65TDclnlDs/pWVuprvyp4Vw9u1UBDX8zifc2YeyPG +V3ltLcn47J8AKM785Q/ABgFdgMkhuUtLVQodXZL1C9TQ3Chr6UmAw5I8HUQTRXIZZgH SqM4ydQJqTcABlIJqxH/C0aqYW6jNOWz4d4cwEwDH/905gBY45eSXbb7Yr9FUDgd1oi+ As3/a6nHkFm+V6fo7rFbElgbgwh/HVSpo7YD4d9XbcSylv6kEadlu40bS7uo3Bf9Dd+F U1zg== MIME-Version: 1.0 X-Received: by 10.107.11.155 with SMTP id 27mr9301025iol.121.1438774050180; Wed, 05 Aug 2015 04:27:30 -0700 (PDT) Received: by 10.107.137.160 with HTTP; Wed, 5 Aug 2015 04:27:30 -0700 (PDT) In-Reply-To: References: <1437813913410.9aeb5a11@Nodemailer> Date: Wed, 5 Aug 2015 13:27:30 +0200 Message-ID: Subject: Re: [GSoC] Confluence Authority Connector From: =?UTF-8?Q?Antonio_David_P=C3=A9rez_Morales?= To: dev@manifoldcf.apache.org Content-Type: multipart/alternative; boundary=001a113f8cfc2c53d4051c8eb0aa --001a113f8cfc2c53d4051c8eb0aa Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Karl Perfect. Once I finish some things and Rafa finishes his tests, I will start with that and I will do some tests adding the whole connector into ManifoldCF structure. For that, I think it will be useful to merge both Maven modules in order to have only one project (jar) providing both connectors, but let's wait until Rafa's response. Regards 2015-08-05 13:06 GMT+02:00 Karl Wright : > Hi Antonio, > > Only ManifoldCF committers can import the project into Apache svn. > However, before that happens, you will need to insure the following: > (1) Directory structure is compatible with connectors under the > "connectors" area of ManifoldCF > (2) There is both a pom.xml and a build.xml that work > (3) Any additional imports that you need for building using Ant have > license research done so that we know they can be included in the Apache > distribution > > Thanks! > Karl > > > On Wed, Aug 5, 2015 at 5:52 AM, Antonio David P=C3=A9rez Morales < > adperezmorales@gmail.com> wrote: > > > Hi Karl > > > > After talked with Rafa yesterday, while I'm working on some improvement= s > > and fixes, Rafa is testing the connector against some Confluence > instances > > (on premise and cloud) to check the connector's behavior. > > After that, we can think to merge both connectors into only one project > > (right now it is a Maven project with two maven modules, one for > repository > > connector and one for authority connector) if needed and then move > towards > > importing it into Apache SVN. > > > > I don't know if I can do that step or else only Manifold committers can > do > > that. If the second, I can help anyone to move the project into Apache > SVN. > > > > Regards > > > > > > > > 2015-08-04 20:25 GMT+02:00 Karl Wright : > > > > > If you feel that this connector is largely complete, we can move > towards > > > importing it into Apache svn. Please let us know when you are ready. > > > > > > Karl > > > > > > > > > On Tue, Aug 4, 2015 at 1:22 PM, Antonio David P=C3=A9rez Morales < > > > adperezmorales@gmail.com> wrote: > > > > > > > Hi guys > > > > > > > > Following the work already done in the Confluence connector, I have > > > > developed some tests for the Authority connector and also I have > fixed > > > and > > > > improved the tests related to the repository connector because I > > changed > > > > the check to know if a document needs to be reindexed or not, so I > have > > > > modified the tests accordingly to avoid problems and in order to > tests > > > the > > > > behavior properly. > > > > > > > > Regarding the documentation and after talked with Rafa, I have > started > > > with > > > > the README.md file and I have also put configuration screenshots on > it > > > > using embedded images (unluckily if you go to GitHub, the embedded > > images > > > > are not rendered I don't know why, but using the Markdown content > in a > > > > Markdown syntax viewer, the images are properly shown). We have > agreed > > > that > > > > when the connectors are ready to be contributed, then we can port t= he > > > > documentation to the format expected by Manifold framework. > > > > > > > > As always, if you have any comments or suggestions for improvements > or > > > new > > > > requirements, please let me know. > > > > > > > > Regards > > > > > > > > > > > > > > > > > > > > 2015-07-25 10:45 GMT+02:00 Rafa Haro : > > > > > > > > > Hi Antonio, > > > > > > > > > > > > > > > Sorry I have been out for a couple of days, so I couldn't answer > > until > > > > > today. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > =E2=80=94 > > > > > Enviado desde Mailbox > > > > > > > > > > > > > > > > > > > > El jueves, 23 de jul de 2015 a las 21:28, Antonio David P=C3=A9re= z > > Morales < > > > > > adperezmorales@gmail.com> escribi=C3=B3: > > > > > Hi devs > > > > > > > > > > > > > > > I continue working on the Authority connector for Confluence [1]. > > > > > > > > > > Basically I'm finishing the tests and doing some improvements. I > > would > > > > like > > > > > > > > > > to do some UI tests (like Active Directory connector does), so I > will > > > try > > > > > > > > > > to include them along with unit tests with mocks. > > > > > > > > > > In parallel, I'm going to start with the documentation to be read= y > > for > > > > the > > > > > > > > > > contribution to Manifold. > > > > > > > > > > =E2=80=8B > > > > > > > > > > =E2=80=8BFine. I will take a look to the GitHub project to check = the > > authority > > > > > connector progress. Actually this one should be easier and faster > to > > > test > > > > > for me. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Moreover, right now, I keep separated both repository and authori= ty > > > > > > > > > > connectors (different modules in the maven project) but once > > finished, > > > I > > > > > > > > > > think it is better to join them into only one, merging the client= s > > used > > > > to > > > > > > > > > > interact with Confluence, and reusing some model classes. I will = do > > it > > > as > > > > > > > > > > soon as I finish the tests and some improvements and in parallel > with > > > the > > > > > > > > > > documentation. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > =E2=80=8B > > > > > > > > > > =E2=80=8BYeah, there are probably some code that could be merged.= If the > > > > > configuration is barely the same for both clients, they should be > > > merged > > > > in > > > > > a single client module. For now, you can keep it at one of the > > > connectors > > > > > packages and cross the reference in the other one. As soon as you > > > finish > > > > > the authority connector I will take a look to see if we can merge > > > > something > > > > > else. > > > > > > > > > > > > > > > > > > > > > > > > > As always, if you have any suggestions, please let me know and I > will > > > try > > > > > > > > > > to include it in the current code. > > > > > > > > > > > > > > > Regards > > > > > > > > > > > > > > > [1] > > > > > > > > > > > > > > > > > > > > > > > > > https://github.com/adperezmorales/confluence-manifold-connector/tree/deve= lop > > > > > > > > > > > > > > > 2015-07-11 12:52 GMT+02:00 Karl Wright : > > > > > > > > > > > > > > > > The feature was developed for a user that was trying to index > > > documents > > > > > > > > > > > by creating multiple XML files, each containing a specific set = of > > > > > > > > > > > documents. But we don't have any supported connectors yet that > rely > > > on > > > > > > > > > > > this feature. > > > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > Karl > > > > > > > > > > > > > > > > > > > > > > Sent from my Windows Phone > > > > > > > > > > > From: Antonio David P=C3=A9rez Morales > > > > > > > > > > > Sent: 7/11/2015 3:55 AM > > > > > > > > > > > To: dev@manifoldcf.apache.org > > > > > > > > > > > Subject: Re: [GSoC] Confluence Authority Connector > > > > > > > > > > > Hi Karl > > > > > > > > > > > > > > > > > > > > > > Thanks for your response. > > > > > > > > > > > > > > > > > > > > > > No, I'm not using document components, so I will change the cal= l > to > > > > > > > > > > > checkDocumentNeedsReindexing. > > > > > > > > > > > > > > > > > > > > > > Only for curiosity, do you have any example showing how to use > > > document > > > > > > > > > > > components with the RepositoryDocument model used in Manifold? > > > > > > > > > > > > > > > > > > > > > > Regards > > > > > > > > > > > > > > > > > > > > > > 2015-07-11 1:19 GMT+02:00 Karl Wright : > > > > > > > > > > > > > > > > > > > > > > > bq. Karl one question about repository connector document > > > retainment. > > > > > I'm > > > > > > > > > > > > using > > > > > > > > > > > > the activities.retainAllComponentDocument(docId) method of > > > > > > > > > > > IProcessActivity > > > > > > > > > > > > to retain the document and avoid to be reindexed. > > > > > > > > > > > > > > > > > > > > > > > > Hi Antonio, > > > > > > > > > > > > > > > > > > > > > > > > checkDocumentNeedsReindexing() is the standard way of > determining > > > > > > > > > > > whether a > > > > > > > > > > > > document needs to be reindexed or not. You can follow the > > template > > > > > > > > > > > present > > > > > > > > > > > > in multiple other connectors that use this method. > > > > > > > > > > > > > > > > > > > > > > > > retainAllComponentDocuments() is basically a shorthand way of > > > > > determining > > > > > > > > > > > > the disposition of document components. I don't believe you > even > > > use > > > > > > > > > > > > document components in the confluence connector, although I > could > > > be > > > > > > > > > > > wrong > > > > > > > > > > > > about that? In general, if your connector doesn't do anythin= g > > with > > > > > > > > > > > > components at all, you will not need to call this method. > > > > > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Karl > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, Jul 10, 2015 at 10:43 AM, Antonio David P=C3=A9rez Mo= rales < > > > > > > > > > > > > adperezmorales@gmail.com> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > Hi devs > > > > > > > > > > > > > > > > > > > > > > > > > > Continuing with the work, I have developed a first version = of > > the > > > > > > > > > > > > > Confluence Authority connector aligned with the ACLs used b= y > > the > > > > > > > > > > > > Confluence > > > > > > > > > > > > > Repository Connector. > > > > > > > > > > > > > I have fixed and improved some parts in the repository > > connector > > > > and > > > > > > > > > > > > > committed the code and also I have updated the Jira issue [= 1] > > to > > > > keep > > > > > > > > > > > > track > > > > > > > > > > > > > of the new additions. > > > > > > > > > > > > > Both branches have been merged into master and I have > created a > > > new > > > > > > > > > > > > develop > > > > > > > > > > > > > branch [2] from it, so further improvements and fixes can b= e > > done > > > > > from > > > > > > > > > > > > this > > > > > > > > > > > > > branch and then merged into master. > > > > > > > > > > > > > Right now, the connectors are in different maven modules an= d > > > maybe > > > > in > > > > > > > > > > > the > > > > > > > > > > > > > future I can merge into one single maven project without > > modules, > > > > so > > > > > > > > > > > that > > > > > > > > > > > > > with one jar file we will have both connectors ready to be > used > > > in > > > > > > > > > > > > > Manifold. > > > > > > > > > > > > > As of now, I will work in the Authority connector > improvements > > > and > > > > > > > > > > > tests > > > > > > > > > > > > > and also I will do all the things Rafa (or you guys) can > report > > > > > > > > > > > regarding > > > > > > > > > > > > > the functionality of the connectors. > > > > > > > > > > > > > > > > > > > > > > > > > > Karl one question about repository connector document > > retainment. > > > > I'm > > > > > > > > > > > > using > > > > > > > > > > > > > the activities.retainAllComponentDocument(docId) method of > > > > > > > > > > > > IProcessActivity > > > > > > > > > > > > > to retain the document and avoid to be reindexed. > > > > > > > > > > > > > Rafa, while checking and reviewing the code, noticed that > other > > > > > > > > > > > > connectors > > > > > > > > > > > > > are using the > checkDocumentNeedsReindexing(documentIdentifier, > > > > > > > > > > > > > newVersionString) method also from IProcessActivity. I > checked > > > the > > > > > code > > > > > > > > > > > > > from both methods and internally they act differently. Is i= t > > fine > > > > to > > > > > > > > > > > use > > > > > > > > > > > > > the retainAllComponentDocument or it is better to switch to > > > > > > > > > > > > > checkDocumentNeedsReindexing one? > > > > > > > > > > > > > > > > > > > > > > > > > > As always, if you have suggestions about improvements or mo= re > > > > things > > > > > > > > > > > > which > > > > > > > > > > > > > can be done for these connectors, please let me know. > > > > > > > > > > > > > > > > > > > > > > > > > > Regards > > > > > > > > > > > > > > > > > > > > > > > > > > [1] https://issues.apache.org/jira/browse/CONNECTORS-1161 > > > > > > > > > > > > > [2] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > https://github.com/adperezmorales/confluence-manifold-connector/tree/deve= lop > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 2015-07-09 17:17 GMT+02:00 Rafa Haro : > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi Antonio, > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks for the new update. Let me make some comments > inline: > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Wed, Jul 8, 2015 at 6:31 PM, Antonio David P=C3=A9rez > Morales < > > > > > > > > > > > > > > adperezmorales@gmail.com> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi devs > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > After the midterm, I continue with the proposed work an= d > I > > > > > already > > > > > > > > > > > > > > started > > > > > > > > > > > > > > > to work on the second part of the project, which is the > > > > > development > > > > > > > > > > > > of > > > > > > > > > > > > > an > > > > > > > > > > > > > > > Authority Connector for Confluence. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I have created a new branch [1] for that in my GitHub > > account > > > > > and I > > > > > > > > > > > > > > already > > > > > > > > > > > > > > > committed the basic structure of the connector along wi= th > > the > > > > > code > > > > > > > > > > > > > > related > > > > > > > > > > > > > > > to Confluence instance configuration. After that I will > > > develop > > > > > the > > > > > > > > > > > > > > proper > > > > > > > > > > > > > > > strategy to get the ACLs for the user as stated in the > > > > proposal. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > For this case, I have been evaluating the two scenarios > > > > contained > > > > > > > > > > > in > > > > > > > > > > > > > the > > > > > > > > > > > > > > > proposal and I will start developing the space-based > > > > permissions > > > > > > > > > > > > which > > > > > > > > > > > > > > > requires no customizations of Confluence instance (coar= se > > > > grain). > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I made some tests with Confluence APIs trying to go mor= e > > > > > fine-grain > > > > > > > > > > > > > using > > > > > > > > > > > > > > > the user groups but there is not endpoint method to get > the > > > > > groups > > > > > > > > > > > > that > > > > > > > > > > > > > > can > > > > > > > > > > > > > > > view a specific page. So in the end, I think the > > space-based > > > > > > > > > > > > permission > > > > > > > > > > > > > > is > > > > > > > > > > > > > > > a good solution, because implementing a Confluence plug= in > > for > > > > > that > > > > > > > > > > > to > > > > > > > > > > > > > > cover > > > > > > > > > > > > > > > some very specific use cases I think most people won't = be > > > > willing > > > > > > > > > > > to > > > > > > > > > > > > > > patch > > > > > > > > > > > > > > > Confluence only for those specific use cases (for examp= le > > > > where a > > > > > > > > > > > > > person > > > > > > > > > > > > > > is > > > > > > > > > > > > > > > not allowed to view a space but it is allowed to view a > > > single > > > > > page > > > > > > > > > > > > in > > > > > > > > > > > > > > that > > > > > > > > > > > > > > > space). > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Let's focus right now on permissions at space level. As y= ou > > > said, > > > > > to > > > > > > > > > > > > > patch > > > > > > > > > > > > > > confluence API is not a good solution, specially for tho= se > > > using > > > > > it > > > > > > > > > > > in > > > > > > > > > > > > > the > > > > > > > > > > > > > > Cloud. If in the future they extend the API with more fin= e > > > > grained > > > > > > > > > > > > > > permissions approach, we can always update later the > > connector. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I have also updated the README file putting a guide to > > > > configure > > > > > > > > > > > both > > > > > > > > > > > > > > > connectors using screenshots about configuration tabs f= or > > the > > > > > > > > > > > > > connectors. > > > > > > > > > > > > > > > I'm using embedded images (using Data URIs syntax for > > images) > > > > but > > > > > > > > > > > it > > > > > > > > > > > > > > seems > > > > > > > > > > > > > > > they are not supported by GitHub in the README (althoug= h > > they > > > > are > > > > > > > > > > > in > > > > > > > > > > > > > the > > > > > > > > > > > > > > > code, and other Markdown viewers can show them). > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Ok, thanks! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The connectors are in separated branches until I merge > them > > > > into > > > > > > > > > > > > > master. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Moreover, I have been talking and reviewing with Rafa > > through > > > > > Skype > > > > > > > > > > > > the > > > > > > > > > > > > > > > current work, and we have agreed to track all the thing= s > > also > > > > in > > > > > > > > > > > the > > > > > > > > > > > > > Jira > > > > > > > > > > > > > > > issue (apart from these mails), so I will put the > > > configuration > > > > > > > > > > > > > > screenshots > > > > > > > > > > > > > > > there and the links to the GitHub repositories. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Perfect!. Let me know when we can start testing the > Authority > > > > > > > > > > > connector > > > > > > > > > > > > > > too. My intention is to test the whole connector in a rea= l > > > > > > > > > > > environment > > > > > > > > > > > > > > extensively sometime before the pencil downs looking for > > > possible > > > > > > > > > > > bugs, > > > > > > > > > > > > > > additions and so on. > > > > > > > > > > > > > > > > > > > > > > > > > > > > Well done so far! > > > > > > > > > > > > > > Cheers, > > > > > > > > > > > > > > Rafa > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Comments and suggestions are more than welcome as alway= s. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Regards > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > [1] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > https://github.com/adperezmorales/confluence-manifold-connector/tree/feat= ure/authority-connector > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --001a113f8cfc2c53d4051c8eb0aa--