Bug 16 - limit parameter error in REST API /tools/find method
Summary: limit parameter error in REST API /tools/find method
Status: RESOLVED FIXED
Alias: None
Product: Orthanc
Classification: Unclassified
Component: Orthanc Core (show other bugs)
Version: unspecified
Hardware: All All
: --- normal
Assignee: Sébastien Jodogne
URL:
Depends on:
Blocks:
 
Reported: 2020-06-29 15:11 CEST by Sébastien Jodogne
Modified: 2020-06-29 15:19 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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