[RTFACT-12776] NuGet virtual repo produces a NPE with $batch requests Created: 02/Nov/16  Updated: 16/May/19  Resolved: 06/Dec/18

Status: Resolved
Project: Artifactory Binary Repository
Component/s: NuGet
Affects Version/s: 4.14.0
Fix Version/s: 6.6.0

Type: Bug Priority: High
Reporter: Uriah Levy Assignee: Lior Gur (Inactive)
Resolution: Fixed Votes: 2
Labels: None

Attachments: Text File stacktrace.txt    
Issue Links:
Relationship
relates to RTFACT-17118 NuGet /$batch & packages/$count endpo... Resolved
Assigned QA: Inbar Tal
Sprint: Leap 35

 Description   

Virtual Nuget repositories delegates nuget API requests to its aggregated repos. With $batch request specifically, the virtual delegation doesn't create a proper request handler for $batch requests and that causes a NPE - see attached stacktrace



 Comments   
Comment by Lior Gur (Inactive) [ 06/Dec/18 ]

I was trying to reproduce the issue using several nuget client (2.8.6, 3 and 4)

but i reproduce the issue.

The only way to reproduce it is with curl.

before the fix all batch request returned 400 Bad Request.

The syntax for the request in the body that we support is like this: 

FindPackagesById()includePrerelease=false&$top=80&id='AppMetrics.Client'&includeAllVersions=false

for now the following syntax is not supported

Packages(Id='NugettestLib2.dll',Version='1.0.0')

Generated at Tue Dec 10 17:29:51 UTC 2019 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.