Bug #4346

OAI plugin - settings not loading correctly

Added by Tim Hutchinson almost 10 years ago. Updated almost 9 years ago.

Status:VerifiedStart date:
Priority:MediumDue date:
Assignee:Mike Cantelon% Done:

0%

Category:OAI-PMH
Target version:Release 1.4.0
Google Code Legacy ID:atom-2398 Tested version:
Sponsored:No Requires documentation:

Description

To reproduce this error:
1) enable OAI (plugin and admin|settings)
2) send a valid OAI ListRecords command, e.g. http://host/qubit_dev.php/;qtOaiPlugin?verb=ListRecords&metadataPrefix=oai_dc

Resulting error:

Warning: in_array() expects parameter 2 to be array, null given in /.../lib/QubitOai.class.php on line 79

Viewing the source, should see properly formatted (but invalid) error message (badArgument), with the php warning.

(Same thing happens with verb=GetRecord)

N.B. May first need to apply the fix identified in "/p/qubit-toolkit/issues/detail?id=2397":issue 2397

Expected result:

Properly formatted OAI response - list of records

[g] Legacy categories: OAI-PMH


Related issues

Related to Access to Memory (AtoM) - Bug #5023: Fix OAI-PMH views Verified 05/01/2013

History

#1 Updated by Tim Hutchinson almost 10 years ago

  • Status changed from New to New

Issue seems to be lines 100/101 of plugins/qtOaiPlugin/modules/qtOaiPlugin/actions/indexAction.class.php:
$allowedKeys = sfConfig::get('mod_oai_'.$this->request->verb.'Allowed');
$mandatoryKeys = sfConfig::get('mod_oai_'.$this->request->verb.'Mandatory');

These settings (plugins/qtOaiPlugin/modules/qtOaiPlugin/config/module.yml) are apparently not being read - e.g. mod_oai_IdentifyAllowed, mod_oai_IdentifyMandatory - so $allowedKeys and $mandatoryKeys are null.

I tried changing oai to qtOaiPlugin but that didn't change anything. I don't understand enough about the symfony framework to know what the correct path is; there seems to be an issue with the module being part of a plugin.

[g] Labels added: Component-OAI

#2 Updated by Tim Hutchinson almost 10 years ago

Forgot to add - probably need to be running in debug mode; otherwise warning message is suppressed, and invalid OAI error response is generated.

#3 Updated by Dan Gillean about 9 years ago

  • Category set to OAI-PMH
  • Assignee changed from Tim Hutchinson to José Raddaoui Marín
  • Target version set to Release 1.4.0
  • Sponsored set to No

#4 Updated by Dan Gillean about 9 years ago

  • Description updated (diff)
  • Assignee changed from José Raddaoui Marín to David Juhasz

#5 Updated by Mike Cantelon about 9 years ago

  • Assignee changed from David Juhasz to Mike Cantelon

#6 Updated by Mike Cantelon about 9 years ago

  • Status changed from New to QA/Review
  • Assignee changed from Mike Cantelon to Jessica Bushey

Should be fixed now.

I've change the URLs for the OAI stuff slightly, changing "qtOaiPlugin" to "oai" in the URLs.

example: 127.0.0.1/qubit/index.php/;oai?verb=ListRecords&metadataPrefix=oai_dc

#7 Updated by Jesús García Crespo about 9 years ago

  • Assignee changed from Jessica Bushey to Mike Cantelon

#9 Updated by Mike Cantelon almost 9 years ago

  • Status changed from QA/Review to Verified

Also available in: Atom PDF