[jira] [Commented] (CONNECTORS-1566) Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector
[ https://issues.apache.org/jira/browse/CONNECTORS-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16932466#comment-16932466 ] Markus Schuch commented on CONNECTORS-1566: --- {quote}The question is under what conditions do you get back a null rights object? In any case, if it fails it would fail in a more restrictive way rather than a less restrictive. {quote} Our Setup does not allow any public content. May be this is the reason for {{getPublicRight()}} returning {{null}}. But thats just a guess. > Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector > -- > > Key: CONNECTORS-1566 > URL: https://issues.apache.org/jira/browse/CONNECTORS-1566 > Project: ManifoldCF > Issue Type: Task > Components: LiveLink connector >Affects Versions: ManifoldCF 2.12 >Reporter: Karl Wright >Assignee: Karl Wright >Priority: Major > Fix For: ManifoldCF 2.14 > > Attachments: OTCS_IIS.png, OTCS_Tomcat.png, chrome_cgfC00ujx7.png > > > LAPI is being deprecated. We need to develop a replacement for it using the > ContentServer Web Services API. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CONNECTORS-1566) Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector
[ https://issues.apache.org/jira/browse/CONNECTORS-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16932341#comment-16932341 ] Kishore Kumar commented on CONNECTORS-1566: --- We have APIs in Document Management Service that can provide you the Root Workspaces. {code:java} List rootTypes = docManClient.getRootNodeTypes(); Node enterpriseWSNode = docManClient.getRootNode("EnterpriseWS"); Node categoriesWSNode = docManClient.getRootNode("CategoriesWS");{code} > Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector > -- > > Key: CONNECTORS-1566 > URL: https://issues.apache.org/jira/browse/CONNECTORS-1566 > Project: ManifoldCF > Issue Type: Task > Components: LiveLink connector >Affects Versions: ManifoldCF 2.12 >Reporter: Karl Wright >Assignee: Karl Wright >Priority: Major > Fix For: ManifoldCF 2.14 > > Attachments: OTCS_IIS.png, OTCS_Tomcat.png, chrome_cgfC00ujx7.png > > > LAPI is being deprecated. We need to develop a replacement for it using the > ContentServer Web Services API. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CONNECTORS-1566) Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector
[ https://issues.apache.org/jira/browse/CONNECTORS-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16932327#comment-16932327 ] Kishore Kumar commented on CONNECTORS-1566: --- Hi [~kwri...@metacarta.com] / [~schuch] Is there any specific reason we are crawling objects from Content Server Search Engine instead of getting them from Content Server Repository using Document Management service? Thanks, Kishore Kumar > Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector > -- > > Key: CONNECTORS-1566 > URL: https://issues.apache.org/jira/browse/CONNECTORS-1566 > Project: ManifoldCF > Issue Type: Task > Components: LiveLink connector >Affects Versions: ManifoldCF 2.12 >Reporter: Karl Wright >Assignee: Karl Wright >Priority: Major > Fix For: ManifoldCF 2.14 > > Attachments: OTCS_IIS.png, OTCS_Tomcat.png, chrome_cgfC00ujx7.png > > > LAPI is being deprecated. We need to develop a replacement for it using the > ContentServer Web Services API. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CONNECTORS-1566) Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector
[ https://issues.apache.org/jira/browse/CONNECTORS-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16932322#comment-16932322 ] Karl Wright commented on CONNECTORS-1566: - I committed the naive patch. > Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector > -- > > Key: CONNECTORS-1566 > URL: https://issues.apache.org/jira/browse/CONNECTORS-1566 > Project: ManifoldCF > Issue Type: Task > Components: LiveLink connector >Affects Versions: ManifoldCF 2.12 >Reporter: Karl Wright >Assignee: Karl Wright >Priority: Major > Fix For: ManifoldCF 2.14 > > Attachments: OTCS_IIS.png, OTCS_Tomcat.png, chrome_cgfC00ujx7.png > > > LAPI is being deprecated. We need to develop a replacement for it using the > ContentServer Web Services API. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CONNECTORS-1566) Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector
[ https://issues.apache.org/jira/browse/CONNECTORS-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16932319#comment-16932319 ] Karl Wright commented on CONNECTORS-1566: - The naive patch seems as good as any to me. The question is under what conditions do you get back a null rights object? In any case, if it fails it would fail in a more restrictive way rather than a less restrictive. > Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector > -- > > Key: CONNECTORS-1566 > URL: https://issues.apache.org/jira/browse/CONNECTORS-1566 > Project: ManifoldCF > Issue Type: Task > Components: LiveLink connector >Affects Versions: ManifoldCF 2.12 >Reporter: Karl Wright >Assignee: Karl Wright >Priority: Major > Fix For: ManifoldCF 2.14 > > Attachments: OTCS_IIS.png, OTCS_Tomcat.png, chrome_cgfC00ujx7.png > > > LAPI is being deprecated. We need to develop a replacement for it using the > ContentServer Web Services API. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CONNECTORS-1566) Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector
[ https://issues.apache.org/jira/browse/CONNECTORS-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16932250#comment-16932250 ] Markus Schuch commented on CONNECTORS-1566: --- r1867109 adds another missing bracket > Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector > -- > > Key: CONNECTORS-1566 > URL: https://issues.apache.org/jira/browse/CONNECTORS-1566 > Project: ManifoldCF > Issue Type: Task > Components: LiveLink connector >Affects Versions: ManifoldCF 2.12 >Reporter: Karl Wright >Assignee: Karl Wright >Priority: Major > Fix For: ManifoldCF 2.14 > > Attachments: OTCS_IIS.png, OTCS_Tomcat.png, chrome_cgfC00ujx7.png > > > LAPI is being deprecated. We need to develop a replacement for it using the > ContentServer Web Services API. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Comment Edited] (CONNECTORS-1566) Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector
[ https://issues.apache.org/jira/browse/CONNECTORS-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16932231#comment-16932231 ] Markus Schuch edited comment on CONNECTORS-1566 at 9/18/19 9:16 AM: r1867107 adds a missing bracket to address {code} org.apache.cxf.binding.soap.SoapFault: Error in Full Text component. Could not convert ("OTParentID":2000 AND (("OTSubType":0 OR "OTSubType":202 OR "OTSubType":136) AND ... ) to OTSQL. {code} was (Author: schuchm): r1867107 adds a missing bracket to address {code} org.apache.cxf.binding.soap.SoapFault: Error in Full Text component. Could not convert ("OTParentID":2000 AND (("OTSubType":0 OR "OTSubType":202 OR "OTSubType":136) AND ... to OTSQL. {code} > Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector > -- > > Key: CONNECTORS-1566 > URL: https://issues.apache.org/jira/browse/CONNECTORS-1566 > Project: ManifoldCF > Issue Type: Task > Components: LiveLink connector >Affects Versions: ManifoldCF 2.12 >Reporter: Karl Wright >Assignee: Karl Wright >Priority: Major > Fix For: ManifoldCF 2.14 > > Attachments: OTCS_IIS.png, OTCS_Tomcat.png, chrome_cgfC00ujx7.png > > > LAPI is being deprecated. We need to develop a replacement for it using the > ContentServer Web Services API. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Comment Edited] (CONNECTORS-1566) Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector
[ https://issues.apache.org/jira/browse/CONNECTORS-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16932231#comment-16932231 ] Markus Schuch edited comment on CONNECTORS-1566 at 9/18/19 9:15 AM: r1867107 adds a missing bracket to address {code} org.apache.cxf.binding.soap.SoapFault: Error in Full Text component. Could not convert ("OTParentID":2000 AND (("OTSubType":0 OR "OTSubType":202 OR "OTSubType":136) AND ... to OTSQL. {code} was (Author: schuchm): r1867107 adds a missing bracket to address {code} Could not convert ("OTParentID":2000 AND (("OTSubType":0 OR "OTSubType":202 OR "OTSubType":136) AND ... to OTSQL. {code} > Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector > -- > > Key: CONNECTORS-1566 > URL: https://issues.apache.org/jira/browse/CONNECTORS-1566 > Project: ManifoldCF > Issue Type: Task > Components: LiveLink connector >Affects Versions: ManifoldCF 2.12 >Reporter: Karl Wright >Assignee: Karl Wright >Priority: Major > Fix For: ManifoldCF 2.14 > > Attachments: OTCS_IIS.png, OTCS_Tomcat.png, chrome_cgfC00ujx7.png > > > LAPI is being deprecated. We need to develop a replacement for it using the > ContentServer Web Services API. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Comment Edited] (CONNECTORS-1566) Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector
[ https://issues.apache.org/jira/browse/CONNECTORS-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16932231#comment-16932231 ] Markus Schuch edited comment on CONNECTORS-1566 at 9/18/19 9:15 AM: r1867107 adds a missing bracket to address {code} Could not convert ("OTParentID":2000 AND (("OTSubType":0 OR "OTSubType":202 OR "OTSubType":136) AND ... to OTSQL. {code} was (Author: schuchm): r1867107 adds a missing bracket to address {code} > Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector > -- > > Key: CONNECTORS-1566 > URL: https://issues.apache.org/jira/browse/CONNECTORS-1566 > Project: ManifoldCF > Issue Type: Task > Components: LiveLink connector >Affects Versions: ManifoldCF 2.12 >Reporter: Karl Wright >Assignee: Karl Wright >Priority: Major > Fix For: ManifoldCF 2.14 > > Attachments: OTCS_IIS.png, OTCS_Tomcat.png, chrome_cgfC00ujx7.png > > > LAPI is being deprecated. We need to develop a replacement for it using the > ContentServer Web Services API. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CONNECTORS-1566) Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector
[ https://issues.apache.org/jira/browse/CONNECTORS-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16932231#comment-16932231 ] Markus Schuch commented on CONNECTORS-1566: --- r1867107 adds a missing bracket to address {code} > Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector > -- > > Key: CONNECTORS-1566 > URL: https://issues.apache.org/jira/browse/CONNECTORS-1566 > Project: ManifoldCF > Issue Type: Task > Components: LiveLink connector >Affects Versions: ManifoldCF 2.12 >Reporter: Karl Wright >Assignee: Karl Wright >Priority: Major > Fix For: ManifoldCF 2.14 > > Attachments: OTCS_IIS.png, OTCS_Tomcat.png, chrome_cgfC00ujx7.png > > > LAPI is being deprecated. We need to develop a replacement for it using the > ContentServer Web Services API. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Comment Edited] (CONNECTORS-1566) Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector
[ https://issues.apache.org/jira/browse/CONNECTORS-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16932213#comment-16932213 ] Markus Schuch edited comment on CONNECTORS-1566 at 9/18/19 8:56 AM: Thanks [~kwri...@metacarta.com]. This patch is exactly what i did here to get forward. Hope it does not break anything for older livelink versions. Which is the minimal livelink version we want to support with this connector? The next problem i encountered is, that {{evaluateRight(...)}} throws an NPE, because {{nr}} is {{null}}. (in my current case {{rights.getPublicRight()}} returns null for a document). {code} FATAL 2019-09-18T10:53:49,752 (Worker thread '14') - Error tossed: null java.lang.NullPointerException at org.apache.manifoldcf.crawler.connectors.csws.CswsConnector.evaluateRight(CswsConnector.java:4410) ~[?:?] at org.apache.manifoldcf.crawler.connectors.csws.CswsConnector.lookupTokens(CswsConnector.java:4393) ~[?:?] at org.apache.manifoldcf.crawler.connectors.csws.CswsConnector.processDocuments(CswsConnector.java:1209) ~[?:?] at org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:399) [mcf-pull-agent.jar:?] {code} My first naive patch would be to add a null check: {code} protected static boolean evaluateRight(final NodeRight nr) { if (nr == null) return false; final NodePermissions np = nr.getPermissions(); return np.isSeePermission() && np.isSeeContentsPermission(); } {code} was (Author: schuchm): Thanks [~kwri...@metacarta.com]. This patch is exactly what i did here to get forward. Hope it does not break anything for older livelink versions. Which is the minimal livelink version we want to support with this connector? The next problem i encountered is, that {{evaluateRight(...)}} throws an NPE, because {{nr}} is {{null}}. (in my current case {{rights.getPublicRight()}} returns null for a document). {code} protected static boolean evaluateRight(final NodeRight nr) { final NodePermissions np = nr.getPermissions(); return np.isSeePermission() && np.isSeeContentsPermission(); } {code} My first naive patch would be {code} protected static boolean evaluateRight(final NodeRight nr) { if (nr == null) return false; final NodePermissions np = nr.getPermissions(); return np.isSeePermission() && np.isSeeContentsPermission(); } {code} > Develop CSWS connector as a replacement for deprecated LiveLink LAPI connector > -- > > Key: CONNECTORS-1566 > URL: https://issues.apache.org/jira/browse/CONNECTORS-1566 > Project: ManifoldCF > Issue Type: Task > Components: LiveLink connector >Affects Versions: ManifoldCF 2.12 >Reporter: Karl Wright >Assignee: Karl Wright >Priority: Major > Fix For: ManifoldCF 2.14 > > Attachments: OTCS_IIS.png, OTCS_Tomcat.png, chrome_cgfC00ujx7.png > > > LAPI is being deprecated. We need to develop a replacement for it using the > ContentServer Web Services API. -- This message was sent by Atlassian Jira (v8.3.4#803005)