You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: pkg/transportrequest/cts/upload.go
+2-2
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ const (
62
62
abapUserKey="ABAP_USER"
63
63
abapPasswordKey="ABAP_PASSWORD"
64
64
defaultConfigFileName="ui5-deploy.yaml"
65
-
pattern="^[a-zA-Z0-9_]+$"
65
+
pattern="^(/[A-Za-z0-9_]{3,8}/)?[A-Za-z0-9_]+$"
66
66
)
67
67
68
68
// WithConnection ...
@@ -194,7 +194,7 @@ func getFioriDeployStatement(
194
194
iflen(app.Name) >0 {
195
195
re:=regexp.MustCompile(pattern)
196
196
if!re.MatchString(app.Name) {
197
-
return"", fmt.Errorf("application name '%s' contains spaces or special characters and is not according to the regex '%s'.", app.Name, pattern)
197
+
return"", fmt.Errorf("application name '%s' contains spaces or special characters or invalid namespace prefix and is not according to the regex '%s'.", app.Name, pattern)
198
198
}
199
199
log.Entry().Debugf("application name '%s' used from piper config", app.Name)
expectedErrorMessge:="application name 'app Name' contains spaces or special characters and is not according to the regex '^[a-zA-Z0-9_]+$'."
119
+
expectedErrorMessge:="application name '/AB/app1' contains spaces or special characters or invalid namespace prefix and is not according to the regex '^(/[A-Za-z0-9_]{3,8}/)?[A-Za-z0-9_]+$'."
0 commit comments