[SERVER-1800] REST API query issue Created: 16/Sep/10  Updated: 15/Feb/12  Resolved: 29/Oct/10

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 1.6.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Lukas Lehner Assignee: Mathias Stearn
Resolution: Won't Fix Votes: 5
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

FreeBSD 8.0


Operating System: ALL
Participants:

 Description   

while querying the rest api with
http://localhost:28017/db/col/?filter__id=f2ce2c369e6660ba3b1397f0
gives back correctly the document saying
query: {
_id: "f2ce2c369e6660ba3b1397f0"
}

but http://localhost:28017/db/col/?filter__id=5cdf505726442b3f4114851a
gives zero because it understands the filter as
query: {
_id: 5
}

simply said, if _id starts with an number, the rest is ignored and
therefore invalid.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 15/Feb/12 ]

We're not going to be enhancing this version of the query api since it won't really work long term.

SERVER-2030 is how we'll be moving forward

Comment by simon d [ 13/Feb/12 ]

Hi guys i'm new here so forgive me if i'm missing something; why is this issue closed when this bug still exists for the latest version?

Comment by Eliot Horowitz (Inactive) [ 29/Oct/10 ]

This method of specifying the query was ill conceived.
Better idea in SERVER-2030

Comment by Valery Khamenya [ 29/Oct/10 ]

oops, this issue makes REST API almost unusable.

Because the id-based queries is a common use case.

@Mathias, could you please consider this ticket before the others?

Generated at Thu Feb 08 02:58:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.