249 views

Description

In a REST Table API request, all records are returned when you pass a value less than 0 in the sysparm_offset parameter.

Steps to Reproduce

  1. Navigate to <instance_name>.service-now.com/api/now/table/cmdb_ci?sysparm_limit=1&sysparm_offset=0.
    Note that this returns one record based on the sysparm_limit.
  2. Navigate to <instance_name>.service-now.com/api/now/table/cmdb_ci?sysparm_limit=1&sysparm_offset=-1.
    Note that this returns all the records, as the whole condition is ignored.

Workaround

Pass only positive values to the sysparm_offset parameter.


Related Problem: PRB677911

Seen In

Geneva Patch 6

Fixed In

Jakarta

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2017-05-12 11:13:09
Published:2017-02-03