Changeset 15380


Ignore:
Timestamp:
2008-05-09T15:12:02+12:00 (16 years ago)
Author:
mdewsnip
Message:

Three fixes to the resumption token code to prevent crashes when specifying a set that isn't at collection-level. By DL Consulting Ltd.

Location:
gsdl/trunk/src/oaiservr
Files:
2 edited

Legend:

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

    r15198 r15380  
    404404      }
    405405    }
     406
     407    // We need to subtract one from the startPos value to turn it into an index value
     408    startPos--;
    406409  }
    407410 
     
    440443
    441444    if (this->outputDocs == this->configuration->resumeAfter()) {
    442       //      this->replyToken = new ResumptionToken(collection, params["set"], "");
    443       this->replyToken = resumptionToken;
     445      this->replyToken = new ResumptionToken(collection, params["set"], "");
    444446      this->replyToken->setPosition(classifier, c+2);     
    445     }
    446   }
    447 }
    448 
    449 
    450 
    451 
     447      break;
     448    }
     449  }
     450}
     451
     452
     453
     454
  • gsdl/trunk/src/oaiservr/resumptiontoken.cpp

    r11760 r15380  
    5656
    5757  if (second != here) {
     58    // get past the '.'
     59    ++second;
    5860    this->browseNode = substr(second, here);
    5961  }
Note: See TracChangeset for help on using the changeset viewer.