ravendb/ravendb — Issue #401: Versioning bundle: GetRevisionsFor only returns the first revision
Author: richardpoole
Created: 2011-11-17 17:51:17+00:00
State: open

We're only getting the first revision of a document when calling GetRevisionsFor with a start of 0 and a pageSize of 20.

If we check the document by retrieving http://localhost:8080/docs?startsWith=tests/1/revisions/&start=0&pageSize=20 we can see that there are actually 4 revisions.

* session.Advanced.GetRevisionsFor returns 1 document
* session.Advanced.DatabaseCommands.StartsWith returns 1 document
* http://localhost:8080/docs?startsWith=tests/1/revisions/&start=0&pageSize=20 returns 4 documents

So the problem is somewhere in ServerClient.cs - possibly in ExecuteWithReplication or DirectStartsWith?