Uploaded image for project: 'RAML Module Builder'
  1. RAML Module Builder
  2. RMB-640

sortby title and limit=0 gives zero hits

    XMLWordPrintable

    Details

    • Template:
      Standard Bug Write-Up Format
    • Sprint:
      CP: sprint 90
    • Story Points:
      1
    • Development Team:
      Core: Platform

      Description

      Using limit=0 is a way to get hit count and no records.. apparently not with getWithOptimizedSQL..

      Seen with mod-inventory-storage but clearly is an RMB issue.

      !/bin/sh
      TENANT=testlib1
      curl -HX-Okapi-url:http://localhost:8081 -HX-Okapi-Tenant:$TENANT \
      	-HContent-Type:application/json "-HAccept:*/*" \
            	'http://localhost:8081/instance-storage/instances?query=keyword%3Dsemantic+sortby+title&limit=0'
      curl -HX-Okapi-url:http://localhost:8081 -HX-Okapi-Tenant:$TENANT \
      	-HContent-Type:application/json "-HAccept:*/*" \
            	'http://localhost:8081/instance-storage/instances?query=keyword%3Dsemantic&limit=0'
      
      {
        "instances" : [ ],
        "totalRecords" : 0
      }{
        "instances": [
      ],
        "totalRecords": 20073,
       "resultInfo": {"totalRecords":20073,"facets":[],"diagnostics":[]}
      
      

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                julianladisch Julian Ladisch
                Reporter:
                adam Adam Dickmeiss
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases