Skip to content

assetlibrary: Properly handle query string parameters of "undefined" for count and offset #184

@aaronatbissell

Description

@aaronatbissell

Aws Connected Device Framework Affected Module(s):

assetlibrary
I'm submitting a ...

  • bug report
  • feature request

Description:

The assetlibrary-client will send a query string parameter of "undefined" (the string) if you don't pass count or offset to the following functions (See here):
listGroupMemberships
listGroupMembersGroups
listGroupMembersDevices

  1. These should probably be updated in the client to not add the query string parameters if those values are undefined.
  2. In order to support backwards compatability, we need to default count and offset to default values if undefined is passed in.

Current behavior:

The above functions throw errors, making the asset library call return 400

Expected behavior:

Values of undefined represent "default" values and the asset library calls return 200

Steps to reproduce:

Using the assetlibrary-client, call one of the above functions (using the lambda service) without specifying offset or count. See it return 400

Additional Information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions