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

Fix: Add validation for whitespaces included in a query Url #1305

Merged
merged 4 commits into from
Dec 9, 2021

Conversation

ElinorW
Copy link
Collaborator

@ElinorW ElinorW commented Dec 9, 2021

Overview

Adds a validation message when whitespace is added anywhere before a query parameter in the query Url
Fixes #788

Demo

Case where a space is included in the wrong place
image

Case where there's a space after a query parameter
image

Testing Instructions

  • Load Graph Explorer
  • In the query input field, add a space at random places within the query
  • Observe error message
  • Now try run a query that has parameters that have spaces, such as https://graph.microsoft.com/v1.0/me/contacts?$filter=emailAddresses/any(a:a/address eq 'garth@contoso.com'
  • Observe error message isn't displayed

@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2021

Azure Static Web Apps: Your stage site is ready! Visit it here: https://jolly-sand-0ac78c710-1305.centralus.azurestaticapps.net

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2021

Azure Static Web Apps: Your stage site is ready! Visit it here: https://jolly-sand-0ac78c710-1305.centralus.azurestaticapps.net

@sonarcloud
Copy link

sonarcloud bot commented Dec 9, 2021

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

33.3% 33.3% Coverage
0.0% 0.0% Duplication

@ElinorW ElinorW merged commit aa37578 into dev Dec 9, 2021
@ElinorW ElinorW deleted the fix/url-space branch December 9, 2021 11:46
Onokaev added a commit that referenced this pull request Dec 9, 2021
* chore: handover translations 202111211330 (#1248)

* chore: handover translations 202111191330 (#1242)

* chore: handover translations 202111201030 (#1246)

* chore: handover translations 202111202230 (#1247)

* chore: change the frequency of dependabot updates (#1259)

* Task: add build step to linter workflow (#1267)

* Task/sonar cloud analysis (#1270)

* Fix: November Dependabot updates (#1274)

* Chore(deps): Bump jest-watch-typeahead from 0.2.1 to 0.5.0 (#1199)

* Chore(deps): Bump @axe-core/webdriverjs from 4.2.2 to 4.3.1 (#1192)

* Chore(deps-dev): Bump react-test-renderer from 16.8.3 to 16.13.0 (#1195)

* Chore(deps): Bump eslint-plugin-flowtype from 2.50.1 to 2.50.3 (#1198)

* Chore(deps): Bump re-resizable from 6.9.0 to 6.9.1 (#1197)

* Chore(deps): Bump terser-webpack-plugin from 3.1.0 to 4.2.3 (#1196)

* Chore(deps): Bump file-loader from 2.0.0 to 6.2.0 (#1194)

* Chore(deps-dev): Bump @types/react from 16.8.3 to 17.0.35 (#1219)

* Chore(deps): Bump react from 16.8.2 to 16.14.0 (#1193)

* Chore(deps-dev): Bump enzyme-adapter-react-16 from 1.9.1 to 1.15.6 (#1223)

* Chore(deps-dev): Bump enzyme-adapter-react-16 from 1.9.1 to 1.15.6

* Chore(deps-dev): Bump @types/enzyme from 3.9.0 to 3.10.10 (#1225)

* Chore(deps-dev): Bump ws from 8.0.0 to 8.2.3 (#1226)

* Chore(deps): Bump webpack from 4.28.3 to 4.46.0 (#1227)

* Chore(deps): Bump @azure/msal-browser from 2.12.0 to 2.19.0  (#1253)

* Chore(deps): Bump @microsoft/applicationinsights-web from 2.3.1 to 2.7.1 (#1230)

* Chore(deps-dev): Bump serialize-javascript from 3.1.0 to 6.0.0 (#1231)

* Chore(deps-dev): Bump @typescript-eslint/eslint-plugin-tslint from 4.15.0 to 4.33.0 (#1232)

* Chore(deps-dev): Bump axios from 0.21.4 to 0.24.0 (#1240)

* Chore(deps): Bump postcss-preset-env from 6.5.0 to 6.7.0 (#1228)

* Chore(deps-dev): Bump @typescript-eslint/parser from 4.15.0 to 4.33.0 (#1243)

* Chore(deps-dev): Bump standard-version from 8.0.2 to 9.3.2 (#1245)

* Chore(deps-dev): Bump react-test-renderer from 16.13.0 to 16.14.0 (#1265)

* Chore(deps-dev): Bump @types/react-redux from 7.1.0 to 7.1.20 (#1264)

* Chore(deps-dev): Bump @types/selenium-webdriver from 4.0.6 to 4.0.16 (#1263)

* Chore(deps-dev): Bump @types/react-dom from 16.8.2 to 17.0.11 (#1262)

* Chore(deps): Bump html-webpack-plugin from 4.0.0-alpha.2 to 4.5.2 (#1261)

* Chore(deps): Bump postcss-preset-env from 6.5.0 to 6.7.0 (#1260)

* Chore(deps): Bump @fluentui/react from 8.28.0 to 8.43.0 (#1258)

* Chore(deps-dev): Bump node-notifier from 8.0.1 to 10.0.0 (#1255)

* Chore(deps): Bump jest from 23.6.0 to 27.3.1 (#1244)

* Fix: Dropdown Accessibility issue (#1275)

* Feature: resource explorer (#1128)

* Task: add status message for anonymous queries (#1278)

* fix failing coverage information collection (#1279)

* Task: Export selected resources to postman collection (#1277)

* fix: restore request section behavior (#1292)

* Enhancement: Add copy button confirmation (#1291)

* Fix selecting  query option in autocomplete dropdown causing crash (#1301)

* Fix: return blue dots on supported tabs (#1303)

* Task: Remove resources tab (#1304)

* Fix: Add validation for whitespaces included in a query Url (#1305)
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

Successfully merging this pull request may close these issues.

The Url should be trimmed before being executed
3 participants