Bug 16

Summary: limit parameter error in REST API /tools/find method
Product: Orthanc Reporter: Sébastien Jodogne <s.jodogne>
Component: Orthanc CoreAssignee: Sébastien Jodogne <s.jodogne>
Status: RESOLVED FIXED    
Severity: normal    
Priority: ---    
Version: unspecified   
Hardware: All   
OS: All   

Description Sébastien Jodogne 2020-06-29 15:11:29 CEST
[BitBucket user: Marc Delpont]
[BitBucket date: 2016-06-02.14:21:09]

When calling **/tools/find** REST method, the **Limit** argument in query object is not properly used.

Bug found in file **OrthancServer\OrthancRestApi\OrthancRestResources.cpp** at line 1100 :

```
#!C++

int tmp = request["CaseSensitive"].asInt();
```

should be :

```
#!C++

int tmp = request["Limit"].asInt();
```
Comment 1 Sébastien Jodogne 2020-06-29 15:19:01 CEST
[BitBucket user: Sébastien Jodogne]
[BitBucket date: 2016-06-08.08:39:08]

fix issue #16

→ https://hg.orthanc-server.com/orthanc/changeset/f11e5d200c04