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

Maciej Lizewski edited comment on CONNECTORS-518 at 9/12/12 11:08 PM:
----------------------------------------------------------------------

During further tests I did notice such thing:
Connector uses 'canonical' attribute from namespaces list to identify namespace 
when fetching pages list. I do not know it worked for someone, but for custom 
namespaces it does not work (at least for me). According to mediawiki API docs 
there should be used namespace 'id' 
(https://www.mediawiki.org/wiki/API:Allpages). So I prepared patch for 
connector to use 'id' instead of 'canonical'.

Using 'canonical' for list pages query causes:
<api>
<error code="apunknown_apnamespace" info="Unrecognized value for parameter 
'apnamespace': CanonicalNamespace"/>
</api>
                
      was (Author: redguy666):
    During further tests I did notice such thing:
Connector uses 'canonical' attribute from namespaces list to identify namespace 
when fetching pages list. I do not know it worked for someone, but for custom 
namespaces it does not work (at least for me). According to mediawiki API docs 
there should be used namespace 'id' 
(https://www.mediawiki.org/wiki/API:Allpages). So I prepared patch for 
connector to use 'id' instead of 'canonical'.
                  
> Wiki Connector support for API authorization and security tokens
> ----------------------------------------------------------------
>
>                 Key: CONNECTORS-518
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-518
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Wiki connector
>    Affects Versions: ManifoldCF 0.6
>            Reporter: Maciej Lizewski
>            Assignee: Karl Wright
>             Fix For: ManifoldCF next
>
>         Attachments: WikiConnector.java, 
> WikiConnector.java.namespace.id.patch, wiki.zip
>
>
> Wiki connector does not support API with restricted access (there is "login" 
> method in API: https://www.mediawiki.org/wiki/API:Login)
> There is no "security" tab for forced authorization tokens or any other 
> security implemented. There should be at least forced tokens tab or tokens 
> assigned to wiki namespaces (second would be better)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to