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
"""Test that model names with invalid characters are properly rejected"""
212
212
213
-
# Model names with various invalid characters that should be rejected
214
-
# Based on INVALID_CHARS = ";|&$<>(){}\\\"'`*?~#!"
213
+
# Model names with various invalid characters that should be rejected. These requests are using curl to avoid the client encoding these values. Encoded model names are safe and can be accepted by the server.
214
+
# Based on INVALID_CHARS = ";|&$`<>()[]{}\\\"'*?~#!"
215
215
invalid_model_names= [
216
216
r"model;test",
217
217
r"model|test",
218
218
r"model&test",
219
219
r"model$test",
220
+
r"model`test`",
220
221
r"model<test>",
221
222
r"model(test)",
223
+
# r"model[test]", # request fails to send unencoded
222
224
r"model{test}",
223
225
r"model\test",
224
226
r'model"test"',
225
227
r"model'test'",
226
-
r"model`test`",
227
228
r"model*test",
228
-
# r"model?test", # curl fails to send this request
229
+
# r"model?test", # request fails to send unencoded
229
230
r"model~test",
230
-
# r"model#test", # curl fails to send this request
231
+
# r"model#test", # request fails to send unencoded
0 commit comments