Ignore:
Timestamp:
2008-04-17T13:52:05+12:00 (16 years ago)
Author:
mdewsnip
Message:

Now each action checks for invalid arguments in the params structure and deletes any that aren't valid, so they don't get into the "<request>" tag in the resulting XML and cause OAI validation errors. By DL Consulting Ltd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/src/oaiservr/listrecsaction.cpp

    r9608 r15198  
    66bool listrecsaction::validateAction(recptproto *protocol, oaiargs &params)
    77{
     8  int params_size = params.getSize();
     9
    810  text_t meta    = params["metadataPrefix"];
    911  int    numArgs = 1;                // 1st arg (Verb=ListRecords) must be present for us to be here
     
    2628  // The number of valid args should be exactly equal to the number of args actually there.
    2729  // If not, throw a 'badArgument' error.
    28   if (numArgs != params.getSize()) {
     30  if (numArgs != params_size) {
    2931    this->errorType = "badArgument";
    3032    return false;
Note: See TracChangeset for help on using the changeset viewer.