Extension talk:OAIRepository

Wikimedia OAIRepository configuration
From CommonSettings.php:

(Just guessing: probably to be included into LocalSettings.php rather than CommonSettings.php???) --Vigilius 20:41, 16 July 2008 (UTC)

An installation instruction is very much needed. The readme speaks only of adding one table, but several sql scripts are present. I could not get this to work. Please help. --Vigilius 22:23, 17 July 2008 (UTC)

Proposing the following:

Enabling OAI Authentication with IIS:

To get OAI auth. working with IIS, you need to do the following:
 * 1) Add the $oaiAuth = true; line to your LocalSettings.php file (as documented above)
 * 2) Create the Audit/User database (use oaiuser_table.sql, included in the download) and set up access to the OAI audit/security database -- see main page
 * 3) Add one (or more) OAI users to the oaiuser table (see main page)
 * 4) Most important step: Open IIS Manager, select your wiki site (or directory) and right-click, select Properties. Under the Directory Security tab, click the Edit button and uncheck everything but anonymous access -- you will probably need to un-check the 'Integrated Windows Authentication' box.

Tested with IIS7, MW 1.13.3, OAIRepository r39772.

Status 500 when running IncrementalUpdater
At the time of this writing, the OAIRepo_body.php code does not use. There is now a bugzilla bug for this. If you need to fix it and the bug isn't resolved yet, just go into the code and find all instances where one of the new table names is called and make sure to prepend the $wgDBprefix value to it (you will have to put "GLOBAL $wgDBprefix" at the top of the same function).

Redirecting too many times
This is actually an open-ended question for anyone who could figure it out. When attempting to run the IncrementalUpdater, I get the following error: [...] 8626 [main] INFO org.wikimedia.lsearch.oai.IncrementalUpdater  - Authenticating ... 8732 [main] INFO  org.wikimedia.lsearch.oai.IncrementalUpdater  - Authenticating ... 8809 [main] INFO  org.wikimedia.lsearch.oai.IncrementalUpdater  - Authenticating ... 8942 [main] INFO  org.wikimedia.lsearch.oai.IncrementalUpdater  - Authenticating ... 9020 [main] INFO  org.wikimedia.lsearch.oai.IncrementalUpdater  - Authenticating ... 9088 [main] INFO  org.wikimedia.lsearch.oai.IncrementalUpdater  - Authenticating ... 9152 [main] INFO  org.wikimedia.lsearch.oai.IncrementalUpdater  - Authenticating ... 9287 [main] INFO  org.wikimedia.lsearch.oai.IncrementalUpdater  - Authenticating ... 9429 [main] INFO  org.wikimedia.lsearch.oai.IncrementalUpdater  - Authenticating ... 9600 [main] INFO  org.wikimedia.lsearch.oai.IncrementalUpdater  - Authenticating ... 9601 [main] WARN  org.wikimedia.lsearch.oai.OAIHarvester  - I/O exception listing records: Server redirected too many  times (20) java.lang.NullPointerException at org.wikimedia.lsearch.oai.IncrementalUpdater.main(IncrementalUpdater.java:181) 9601 [main] WARN org.wikimedia.lsearch.oai.IncrementalUpdater  - Retry later: error while processing update for lyricwiki : null 9601 [main] INFO org.wikimedia.lsearch.oai.IncrementalUpdater  - Sleeping for 60000 ms [...] Going directly to the url which the updater accesses (of the form ) and successfully shows a page though, not infinite redirects. Any ideas? -SColombo 00:03, 18 January 2009 (UTC)