Under some circumstances, hasNext() in OAI-PMH ResponseIterator returns true even if there is no next node.

Steps to reproduce

An OAI-PMH ListRecords response may be split up in several resumptive responses.

The ResponseIterator has built-in support for such resumptive responses. But the implementation of 'hasNext()' is erroneous: Only the existens of a resumption token is checked but not if a further request would return any more nodes. This leads to an invalid state where 'hasNext()' is returning true but the next call to 'next()' returns 'null'.

Activity

Show:
James Perrin
January 15, 2016, 1:20 PM

There has been a commit made but appears to have been retracted. What's the status Basil? I can work on this ticket.

Basil Brunner
January 15, 2016, 2:45 PM

James, I've attached the patch from our local repository. I don't have time to do more tests at the moment. But feel free to get back to me if you have any questions about it.

Assignee

James Perrin

Reporter

Basil Brunner

Severity

Incorrectly Functioning Without Workaround

Tags (folksonomy)

None

Components

Affects versions

Priority

Major
Configure