[RTFACT-12694] Nuget - correct implementation of the $top query param Created: 19/Oct/16 Updated: 14/Nov/17 Resolved: 23/Nov/16
|Project:||Artifactory Binary Repository|
|Affects Version/s:||4.13.2, 4.14.1|
|Reporter:||Uriah Levy||Assignee:||Shay Yaakov (Inactive)|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
Artifactory currently sends back the $skip link on queries that have the $top param - this is not inline with with how the gallery handles $top queries and confuses the client.
For example, if the client sends a first request with $top=30, and we give it back a next page link with $skip=80, we lose 50 results beacuse the client follows the pagination link instead of using its own logic for pagination (which is skipping 30 results at a time in correspondence to the $top value).
To reproduce, use the attached script on https://www.jfrog.com/jira/browse/RTFACT-12379 to upload some versions and use this command:
nuget.exe list -allversions -Source http://localhost:8080/artifactory/api/nuget/nuget-local -verbosity detailed
See that the first request asks for $top=30 and contains a link to the next page with $skip=80, effectively skipping 50 results