Fix url pattern for proxied openstack api 30/97230/1 1.4.2
authorBin Yang <Bin.Yang@windriver.com>
Thu, 17 Oct 2019 03:17:19 +0000 (03:17 +0000)
committerBin Yang <Bin.Yang@windriver.com>
Thu, 17 Oct 2019 03:17:19 +0000 (03:17 +0000)
servicetype pattern includes only alphebatics

Issue-ID: MULTICLOUD-866
Signed-off-by: Bin Yang <Bin.Yang@windriver.com>
Change-Id: I581a8b3bcb6cead9c11917ad1ffd1b7eb09a152c

pike/pike/proxy/urls.py
pike/pike/proxy/urls_v1.py
starlingx/starlingx/proxy/urls.py
starlingx/starlingx/proxy/urlsV1.py
windriver/titanium_cloud/proxy/urls.py
windriver/titanium_cloud/proxy/urlsV1.py

index b92b535..a102021 100644 (file)
@@ -32,7 +32,7 @@ URLPATTERNS = [
         services.GetTenants.as_view()),
     url(r'dns-delegate/(?P<requri>[0-9a-zA-Z./_-]*)$',
         dnsaasdelegate.DnsaasDelegate.as_view()),
-    url(r'^(?P<servicetype>[0-9a-zA-Z_-]{,18})/(?P<requri>[0-9a-zA-Z./_-]*)$',
+    url(r'^(?P<servicetype>[0-9a-zA-Z]{,18})/(?P<requri>[0-9a-zA-Z./_-]*)$',
         services.Services.as_view()),
 ]
 
index 4ab7594..8d2fa66 100644 (file)
@@ -32,7 +32,7 @@ URLPATTERNS = [
         services.APIv1GetTenants.as_view()),
     url(r'dns-delegate/(?P<requri>[0-9a-zA-Z./_-]*)$',
         dnsaasdelegate.APIv1DnsaasDelegate.as_view()),
-    url(r'^(?P<servicetype>[0-9a-zA-Z_-]{,18})/(?P<requri>[0-9a-zA-Z./_-]*)$',
+    url(r'^(?P<servicetype>[0-9a-zA-Z]{,18})/(?P<requri>[0-9a-zA-Z./_-]*)$',
         services.APIv1Services.as_view()),
 ]
 
index cde9e2b..453bf52 100644 (file)
@@ -34,7 +34,7 @@ URLPATTERNS = [
         services.GetTenants.as_view()),
     url(r'dns-delegate/(?P<requri>[0-9a-zA-Z./_-]*)$',
         dnsaasdelegate.DnsaasDelegate.as_view()),
-    url(r'^(?P<servicetype>[0-9a-zA-Z_-]{,18})/(?P<requri>[0-9a-zA-Z./_-]*)$',
+    url(r'^(?P<servicetype>[0-9a-zA-Z]{,18})/(?P<requri>[0-9a-zA-Z./_-]*)$',
         services.Services.as_view()),
 ]
 
index 7fca18e..d774b48 100644 (file)
@@ -32,7 +32,7 @@ URLPATTERNS = [
         services.APIv1GetTenants.as_view()),
     url(r'dns-delegate/(?P<requri>[0-9a-zA-Z./_-]*)$',
         dnsaasdelegate.APIv1DnsaasDelegate.as_view()),
-    url(r'^(?P<servicetype>[0-9a-zA-Z_-]{,18})/(?P<requri>[0-9a-zA-Z./_-]*)$',
+    url(r'^(?P<servicetype>[0-9a-zA-Z]{,18})/(?P<requri>[0-9a-zA-Z./_-]*)$',
         services.APIv1Services.as_view()),
 ]
 
index 7b33801..dd5d4f1 100644 (file)
@@ -34,7 +34,7 @@ URLPATTERNS = [
         services.GetTenants.as_view()),
     url(r'dns-delegate/(?P<requri>[0-9a-zA-Z./_-]*)$',
         dnsaasdelegate.DnsaasDelegate.as_view()),
-    url(r'^(?P<servicetype>[0-9a-zA-Z_-]{,18})/(?P<requri>[0-9a-zA-Z./_-]*)$',
+    url(r'^(?P<servicetype>[0-9a-zA-Z]{,18})/(?P<requri>[0-9a-zA-Z./_-]*)$',
         services.Services.as_view()),
 ]
 
index 88a8638..c3599b5 100644 (file)
@@ -32,7 +32,7 @@ URLPATTERNS = [
         services.APIv1GetTenants.as_view()),
     url(r'dns-delegate/(?P<requri>[0-9a-zA-Z./_-]*)$',
         dnsaasdelegate.APIv1DnsaasDelegate.as_view()),
-    url(r'^(?P<servicetype>[0-9a-zA-Z_-]{,18})/(?P<requri>[0-9a-zA-Z./_-]*)$',
+    url(r'^(?P<servicetype>[0-9a-zA-Z]{,18})/(?P<requri>[0-9a-zA-Z./_-]*)$',
         services.APIv1Services.as_view()),
 ]