grafana/public/app/core/utils
Kristian Bremberg b30f501bff
backendsrv: Implement optional URL path fetch sanitize (#106540)
* feat: Implement optional URL path sanitization in BackendSrv methods

* add comment

* revert

* remove namespace import from backendsrv

* change method to validatePath, remove query params and fragments

* Moved validatePath call into fetch and make it throw an error instead

* update pluginSettings tests

* prettier

* Update public/app/features/plugins/pluginSettings.ts

Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>

* change name to validatePath

* fix other tests

* rename property in backend_srv tests

* rename to validatePath in backend_srv, add extra tests

* Move path validation into parseUrlFromOptions

* fix

* Add additional check

* Add test

---------

Co-authored-by: joshhunt <josh.hunt@grafana.com>
Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
2025-06-20 11:27:53 +01:00
..
ConfigProvider.tsx
CorsSharedWorker.ts Frontend o11y: Load SharedWorkers for crash detection (#96673) 2024-12-02 15:12:36 +01:00
CorsWorker.ts Frontend o11y: Load SharedWorkers for crash detection (#96673) 2024-12-02 15:12:36 +01:00
accessControl.ts
applyStateChanges.ts
arrayMove.ts
auth.ts
browser.test.ts
browser.ts
colors.ts
connectWithReduxStore.tsx
dag.test.ts Alerting: Hide reducer hint for alert creation editor (#98410) 2024-12-31 11:58:01 +01:00
dag.ts Alerting: Hide reducer hint for alert creation editor (#98410) 2024-12-31 11:58:01 +01:00
deferred.ts
docsLinks.ts
errors.test.ts Dashboards: Change the way dashboard not found error is handled (#98950) 2025-01-27 15:54:10 +01:00
errors.ts Alerting: Update error message for failed FetchError (#106846) 2025-06-18 15:51:25 +02:00
explore.test.ts Explore: Use fixed dates to prevent DST issues in tests (#103497) 2025-04-06 17:04:28 +02:00
explore.ts
factors.ts
fetch.test.ts backendsrv: Implement optional URL path fetch sanitize (#106540) 2025-06-20 11:27:53 +01:00
fetch.ts backendsrv: Implement optional URL path fetch sanitize (#106540) 2025-06-20 11:27:53 +01:00
flatten.ts
isShallowEqual.ts
kbn.test.ts
kbn.ts
metrics.ts
model_utils.ts
navBarItem-translations.ts i18n: removes useTranslate hook (#106556) 2025-06-12 11:03:52 +02:00
object.test.ts Dashboard: Improve diffing by handling the Infinity value (#105037) 2025-05-12 08:06:02 -06:00
object.ts Dashboard: Improve diffing by handling the Infinity value (#105037) 2025-05-12 08:06:02 -06:00
query.test.ts Chore: Restrict imports of test files to avoid test pollution (#106057) 2025-05-28 10:37:15 +02:00
query.ts
richHistory.test.ts
richHistory.ts i18n: removes useTranslate hook (#106556) 2025-06-12 11:03:52 +02:00
richHistoryTypes.ts
set.ts
shortLinks.test.ts Logs Panel: Add infinite scrolling support for Dashboards and Apps (#97095) 2024-12-02 14:57:25 +01:00
shortLinks.ts i18n: removes useTranslate hook (#106556) 2025-06-12 11:03:52 +02:00
ticks.ts
timePicker.test.ts
timePicker.ts
timeRegions.test.ts Time regions: Add option for cron syntax to support complex schedules (#99548) 2025-02-20 14:50:32 -06:00
timeRegions.ts Time regions: Add option for cron syntax to support complex schedules (#99548) 2025-02-20 14:50:32 -06:00
urlToken.ts
version.ts