Changeset 11733


Ignore:
Timestamp:
2006-04-28T11:55:35+12:00 (18 years ago)
Author:
grbuchan
Message:

Added further checks for use of collection names that are not configured
for OAI support.

File:
1 edited

Legend:

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

    r11732 r11733  
    6363    }
    6464
    65     // check the child set if it is given
     65    // exclude collections that are not listed in the configured OAI list
     66    text_tarray &collections = this->configuration->getCollectionsList();
     67    int          c;
     68    for (c = 0; c < collections.size(); c ++) {
     69      if (collections[c] == gsdlCollect)
     70    break;
     71    }
     72    if (c == collections.size()) {
     73      this->errorType = "badArgument";
     74      return false;
     75    }
     76   
    6677    if (gsdlSet != "") {
     78      // check the child set if it is given
    6779      if (!this->check_classifier(protocol, gsdlCollect, gsdlSet)) {
    6880    this->errorType = "badArgument";
Note: See TracChangeset for help on using the changeset viewer.