Open joschi99 opened 4 years ago
Hi @joschi99, I'm not an mediawiki export but can you manage access to give the API user to get the siteinfo information?
Hi @lpinsivy, yes, if we do the user authentication before it works without problems we have done some tests about this topic. Your procedure is doing the siteinfo without authentication which not works on private wikis.
Hi @lpinsivy,
our "quick" workaround is to login on function getWikiVersion(), too. So after that all pages are working fine.
public function getWikiVersion() { $this->login(); $postfields = array( 'action' => 'query', 'meta' => 'siteinfo', 'format' => 'json', ) ...... }
Centreon 19.10, 20.04 Mediawiki: 1.31.x Mediawiki option:
$wgGroupPermissions['*']['read'] = false;
If we have a private wiki where access to pages is restricted to authenticated users the KB on Centreon is not working and we got this error
The problem is related on
/usr/share/centreon/www/class/centreon-knowledge/wikiApi.class.php
on functiongetWikiVersion()
because the API needs authentication.