Skip to content

Client does not substitute for spaces in application name when querying #67

@atzawada

Description

@atzawada

The SDK does not perform any substitution for spaces when querying for an application whose name contains them.

When running the following query using the SDK

ApplicationFilterForm filterForm = new ApplicationFilterForm();
String appName = "foo bar";
filterForm.setFilterText(appName);

Applications filteredApps = contrastSDK.getFilteredApplications(organizationId, filterForm);

The request fails with a 400 response. The generated request looks like:

GET https://app.contrastsecurity.com/Contrast/api/ng/<Organization ID>/applications/filter?filterText=foo bar&includeArchived=false&includeOnlyLicensed=false&includeMerged=true

Which is not a vaid URI due to the spaces in the name.

cc: @mmastrocinque

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