Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
atzawada opened this issue Jun 4, 2021 · 0 comments
Open

Comments

@atzawada
Copy link
Contributor

atzawada commented Jun 4, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant