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

Case sensitivity issue with gwa-api #97

Open
Elson9 opened this issue Jul 12, 2023 · 0 comments · May be fixed by #98
Open

Case sensitivity issue with gwa-api #97

Elson9 opened this issue Jul 12, 2023 · 0 comments · May be fixed by #98
Assignees
Labels
bug Something isn't working good first issue Good for newcomers jira

Comments

@Elson9
Copy link
Contributor

Elson9 commented Jul 12, 2023

This issue was brought to our attention in our rocket.chat channel:
https://chat.developer.gov.bc.ca/channel/aps-ops?msg=vTnsP434K6uJSWhX9

Issue: After successfully running gwa status, when I run gwa pg --dry-run on this config file generated from an OpenAPI spec, I get the error "x Error [400] Unexpected undefined".

Our client had the GWA_NAMESPACE value capitalized in their .env file. The request succeeded when changed to all lower-case (ie: payment instead of Payment).

The authz check should have detected this, however the map_res_name_to_id function succeeded even though there was a case-sensitive difference.

Possible resolution might be including the exactName=true param to the query

@Elson9 Elson9 self-assigned this Jul 12, 2023
@Elson9 Elson9 added bug Something isn't working good first issue Good for newcomers labels Jul 12, 2023
@Elson9 Elson9 linked a pull request Jul 12, 2023 that will close this issue
7 tasks
@Elson9 Elson9 added the jira label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers jira
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant