# HG changeset patch # User Sascha L. Teichmann # Date 1624552743 -7200 # Node ID 755ed195fdc3675d3c5e3e40455a8585883d644b # Parent 7b6a62d4117e8e009ed0da11b1d40613810a5657 Fix for 5486:dbae10503ee6 diff -r 7b6a62d4117e -r 755ed195fdc3 client/src/components/importconfiguration/ScheduledImports.vue --- a/client/src/components/importconfiguration/ScheduledImports.vue Thu Jun 24 16:13:35 2021 +0200 +++ b/client/src/components/importconfiguration/ScheduledImports.vue Thu Jun 24 18:39:03 2021 +0200 @@ -914,7 +914,7 @@ if (this.trys) data["trys"] = Number(this.trys); if (this.import_ === this.$options.IMPORTTYPES.REPORT) { - data["name"] = "default"; + data["name"] = "data-quality-report"; } data["send-email"] = this.eMailNotification; this.triggerActive = false; diff -r 7b6a62d4117e -r 755ed195fdc3 pkg/controllers/routes.go --- a/pkg/controllers/routes.go Thu Jun 24 16:13:35 2021 +0200 +++ b/pkg/controllers/routes.go Thu Jun 24 18:39:03 2021 +0200 @@ -341,7 +341,7 @@ NoConn: true, })).Methods(http.MethodGet) - api.Handle("/data/report/{name:[a-zA-Z0-9_]+}", waterwayAdmin( + api.Handle("/data/report/{name:[a-zA-Z0-9_-]+}", waterwayAdmin( mw.DBConn(http.HandlerFunc(report)))).Methods(http.MethodGet) // Handler to serve data to the client. diff -r 7b6a62d4117e -r 755ed195fdc3 pkg/imports/report.go --- a/pkg/imports/report.go Thu Jun 24 16:13:35 2021 +0200 +++ b/pkg/imports/report.go Thu Jun 24 18:39:03 2021 +0200 @@ -124,7 +124,7 @@ } // TODO: Prevent this earlier. - if match, _ := regexp.MatchString(`^[a-zA-Z0-9_]+$`, r.Name); !match { + if match, _ := regexp.MatchString(`^[a-zA-Z0-9_-]+$`, r.Name); !match { return nil, nil, errors.New("invalid report name") }