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/listidsaction.cpp

    r8310 r15198  
    77bool listidsaction::validateAction(recptproto *protocol, oaiargs &params)
    88{
     9  int params_size = params.getSize();
    910  int numArgs  = 1; // For "verb" arg
    1011
     
    1516  // In OAI v1.1 metadataPrefix is not allowed.
    1617  if (this->configuration->getOAIVersion() <= 110){
    17     if(numArgs != params.getSize()){
     18    if(numArgs != params_size){
    1819      this->errorType = "badArgument";
    1920      return false;
     
    2728    }
    2829    else { // If it isn't empty, increase the valid args count and compare this to the total num of args
    29       if (++numArgs != params.getSize()){
     30      if (++numArgs != params_size){
    3031    this->errorType = "badArgument";
    3132    return false;
Note: See TracChangeset for help on using the changeset viewer.