[ 
https://issues.apache.org/jira/browse/CONNECTORS-1161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14696722#comment-14696722
 ] 

Karl Wright commented on CONNECTORS-1161:
-----------------------------------------

[~adperezmorales]: I notice there are some scary deprecation warnings when I 
build the connector:

{code}
    [javac] C:\wip\mcf\dev_1x\dist\connector-build.xml:555: warning: 
'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to 
false for repeatable builds
    [javac] Compiling 21 source files to 
C:\wip\mcf\dev_1x\connectors\confluence\build\connector\classes
    [javac] 
C:\wip\mcf\dev_1x\connectors\confluence\connector\src\main\java\org\apache\manifoldcf\crawler\connectors\confluence\client\ConfluenceClient.java:122:
 warning: [deprecation] ALLOW_ALL_HOSTNAME_VERIFIER in 
SSLConnectionSocketFactory has been deprecated
    [javac]           SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
    [javac]                                     ^
    [javac] C:\wip\mcf\dev_1x\connectors\confluence\connector\src\main\java\org\
apache\manifoldcf\crawler\connectors\confluence\client\ConfluenceClient.java:121
: warning: [deprecation] 
SSLConnectionSocketFactory(SSLSocketFactory,X509HostnameVerifier) in 
SSLConnectionSocketFactory has been deprecated
    [javac]         SSLConnectionSocketFactory myFactory = new 
SSLConnectionSocketFactory(new 
InterruptibleSocketFactory(httpsSocketFactory,connectionTimeout),
    [javac]                                                ^
    [javac] C:\wip\mcf\dev_1x\connectors\confluence\connector\src\main\java\org\
apache\manifoldcf\crawler\connectors\confluence\client\ConfluenceClient.java:145
: warning: [deprecation] setStaleConnectionCheckEnabled(boolean) in Builder has 
been deprecated
    [javac]           .setStaleConnectionCheckEnabled(true)
    [javac]           ^
    [javac] 3 warnings
{code}

It looks like you are not using the HttpClient "builder" paradigm correctly.  
Those deprecation warnings are serious because in HttpClient that may mean 
these methods are completely ignored.

There are more modern connector implementations around that use HttpClient 
correctly, e.g. the Jira connector and the SharePoint connector.  Have a look!

> Atlassian Confluence Wiki Repository and Authority Connector
> ------------------------------------------------------------
>
>                 Key: CONNECTORS-1161
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1161
>             Project: ManifoldCF
>          Issue Type: Wish
>          Components: Wiki connector
>    Affects Versions: ManifoldCF 1.8.1, ManifoldCF 2.0.1
>            Reporter: Rafa Haro
>            Assignee: Rafa Haro
>              Labels: gsoc, gsoc2015
>             Fix For: ManifoldCF 1.10, ManifoldCF 2.2
>
>         Attachments: AuthorityServerConfiguration.png, 
> RepositoryServerConfiguration.png, RepositorySpecificationPagesTab.png, 
> RepositorySpecificationSpacesTab.png, confluence_build.patch, 
> confluence_connector.patch
>
>
> Confluence is a team collaboration software developed and maintained by 
> Atlassian. Also frequently referred as an Enterprise wiki, Confluence has 
> positioned as one of the most used technologies for sharing knowledge, host 
> documentation and manage content within enterprise.
> Confluence can't be crawled using the standard wikis API.Otherwise, 
> Confluence expose it owns API that can consulted here:
> https://docs.atlassian.com/confluence/REST/latest/
> About permissions, although Confluence can be configured for using external 
> systems like LDAP, it also provides an API for checking users privileges on 
> content:
> https://developer.atlassian.com/confdev/development-resources/confluence-architecture/confluence-internals/confluence-permissions-architecture
> More Info: 
> https://www.google.es/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=confluence+permissions+REST+api



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

Reply via email to