You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/10/09 12:10:20 UTC

[GitHub] huxi opened a new issue #1648: Result contains "offset": null instead of "offset": 0

huxi opened a new issue #1648: Result contains "offset": null instead of "offset": 0
URL: https://github.com/apache/couchdb/issues/1648
 
 
   <!--- Provide a general summary of the issue in the Title above -->
   A query with a `keys` argument, `_all_docs?include_docs=true&keys=["key"]`, suddenly returns `"offset": null` instead of `"offset": 0`.
   
   Performing the same query without the `keys` argument, i.e. just `_all_docs?include_docs=true` returns a correct offset of `0`.
   
   ## Expected Behavior
   <!--- If you're describing a bug, tell us what should happen -->
   ```json
   {
     "total_rows": 64,
     "offset": 0,
     "rows": [
       {
         // the result rows
       }
     ]
   }
   ```
   
   <!--- If you're suggesting a change/improvement, tell us how it should work -->
   
   ## Current Behavior
   <!--- If describing a bug, tell us what happens instead of the expected behavior -->
   ```json
   {
     "total_rows": 64,
     "offset": null,
     "rows": [
       {
         // the result rows
       }
     ]
   }
   ```
   <!--- If suggesting a change/improvement, explain the difference from current behavior -->
   
   ## Context
   <!--- How has this issue affected you? What are you trying to accomplish? -->
   The issue started showing up after upgrading a CouchDB cluster from 2.1.0 to 2.2.0.
   
   It causes a `JsonParseException` in [QueryResultParser](https://github.com/helun/Ektorp/blob/master/org.ektorp/src/main/java/org/ektorp/impl/QueryResultParser.java#L75) of [Ektorp](https://github.com/helun/Ektorp).
   <!--- Providing context helps us come up with a solution that is most useful in the real world -->
   
   ## Your Environment
   <!--- Include as many relevant details about the environment you experienced the bug in -->
   * Version used: 2.2.0
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services