The service proxy auth URL shortcut may contain ;jsessionid= as part of the URL path...
authorWolfram Schneider <wosch@indexdata.dk>
Fri, 6 Jun 2014 11:11:20 +0000 (11:11 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Fri, 6 Jun 2014 11:11:20 +0000 (11:11 +0000)
tools/apache2/mkws-git
tools/apache2/mkws-heikki
tools/apache2/mkws-jakub
tools/apache2/mkws-mike-mac
tools/apache2/mkws-ne

index 798d561..92fa46b 100644 (file)
@@ -13,7 +13,7 @@
     RewriteEngine on
     RewriteLogLevel 1
     RewriteLog /var/log/apache2/mkws-git-rewrite.log 
-    RewriteRule /service-proxy-auth /service-proxy/?command=auth&action=login&username=guest&password=guest [P] # [NE,P]
+    RewriteRule /service-proxy-auth(/)?(;jsessionid=.+)? /service-proxy/$2?command=auth&action=login&username=guest&password=guest [P] # [NE,P]
 
     # The following rule allows the server to accept service-proxy
     # requests that begin with an escaped "%3F" rather than a literal
index 9206f3b..92e135f 100644 (file)
@@ -32,7 +32,7 @@
     SetOutputFilter DEFLATE
   </Location>
 
-  RewriteRule /service-proxy-auth/ /service-proxy/?command=auth&action=login&username=demo&password=demo [P] # [NE,P]
+  RewriteRule /service-proxy-auth(/)?(;jsessionid=.+)? /service-proxy/$2?command=auth&action=login&username=demo&password=demo [P] # [NE,P]
 
   # For MKC Service Proxy
     ProxyPass        /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
index 6672676..28a9c05 100644 (file)
@@ -4,7 +4,7 @@
 
   # auth
   RewriteEngine on
-  RewriteRule /service-proxy-auth/ /service-proxy/?command=auth&action=login&use
+  RewriteRule /service-proxy-auth(/)?(;jsessionid=.+)? /service-proxy/$2?command=auth&action=login&use
   rname=demo&password=demo [P] # [NE,P]
 
   # allow cors
index d781dcb..d756148 100644 (file)
@@ -13,7 +13,7 @@
     RewriteEngine on
     RewriteLogLevel 1
     RewriteLog /opt/local/apache2/logs/spclient-rewrite.log 
-    RewriteRule /service-proxy-auth /service-proxy/?command=auth&action=login&username=guest&password=guest [P] # [NE,P]
+    RewriteRule /service-proxy-auth(/)?(;jsessionid=.+)? /service-proxy/$2?command=auth&action=login&username=guest&password=guest [P] # [NE,P]
 
     # For MKC Service Proxy
     ProxyPass        /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
index 6b613fd..7c9a3e9 100644 (file)
     </Location>
 
     # jasmine test account
-    RewriteRule /service-proxy-testauth  /service-proxy/?command=auth&action=login&username=mkwstest&password=mkwstest [P] # [NE,P]
+    RewriteRule /service-proxy-testauth(/)?(;jsessionid=.+)?  /service-proxy/$2?command=auth&action=login&username=mkwstest&password=mkwstest [P] # [NE,P]
 
     # mkws devel account (e.g. memached testing)
-    RewriteRule /service-proxy-auth  /service-proxy/?command=auth&action=login&username=mkwsdev&password=mkwsdev [P] # [NE,P]
+    RewriteRule /service-proxy-auth(/)?(;jsessionid=.+)?  /service-proxy/$2?command=auth&action=login&username=mkwsdev&password=mkwsdev [P] # [NE,P]
 
     ProxyPass        /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/
     ProxyPassReverse /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/