rabidgremlin
13 years agoNew Contributor
Cross domain redirects not followed correctly
Hi there,
I'm trying to create a web test for my sets of apps using SoapUI 4.5.1. The flow is as follows:
1) User attempts to access the main application (event.mydomain.zzz)
2) The user is not logged in so they are redirected to the security app (identity.mydomain.zzz)
3) User logs in and is redirect back to main app (event.mydomain.zzz)
Currently the test breaks at step 2. Looking at the logs (below) the reason appears to be that SoapUI is not redirecting to identity.mydomain.zzz (see line 14) but is instead trying to call event.mydomain.zzz with the URI in the redirect. You can see this in line 18 of the log snippet!
Help!
I'm trying to create a web test for my sets of apps using SoapUI 4.5.1. The flow is as follows:
1) User attempts to access the main application (event.mydomain.zzz)
2) The user is not logged in so they are redirected to the security app (identity.mydomain.zzz)
3) User logs in and is redirect back to main app (event.mydomain.zzz)
Currently the test breaks at step 2. Looking at the logs (below) the reason appears to be that SoapUI is not redirecting to identity.mydomain.zzz (see line 14) but is instead trying to call event.mydomain.zzz with the URI in the redirect. You can see this in line 18 of the log snippet!
Help!
1 Thu Mar 07 10:48:01 NZDT 2013:DEBUG:>> "GET / HTTP/1.1[\r][\n]"
2 Thu Mar 07 10:48:01 NZDT 2013:DEBUG:>> "Accept-Encoding: gzip,deflate[\r][\n]"
3 Thu Mar 07 10:48:01 NZDT 2013:DEBUG:>> "Host: event.mydomain.zzz[\r][\n]"
4 Thu Mar 07 10:48:01 NZDT 2013:DEBUG:>> "Connection: Keep-Alive[\r][\n]"
5 Thu Mar 07 10:48:01 NZDT 2013:DEBUG:>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
6 Thu Mar 07 10:48:01 NZDT 2013:DEBUG:>> "[\r][\n]"
7 Thu Mar 07 10:48:02 NZDT 2013:DEBUG:<< "HTTP/1.1 302 Found[\r][\n]"
8 Thu Mar 07 10:48:02 NZDT 2013:DEBUG:<< "Server: nginx/1.2.7[\r][\n]"
9 Thu Mar 07 10:48:02 NZDT 2013:DEBUG:<< "Date: Wed, 06 Mar 2013 21:48:00 GMT[\r][\n]"
10 Thu Mar 07 10:48:02 NZDT 2013:DEBUG:<< "Content-Length: 0[\r][\n]"
11 Thu Mar 07 10:48:02 NZDT 2013:DEBUG:<< "Connection: keep-alive[\r][\n]"
12 Thu Mar 07 10:48:02 NZDT 2013:DEBUG:<< "Set-Cookie: JSESSIONID=1tbtcd4b26zsd1g0a4e4p7iyik;Path=/[\r][\n]"
13 Thu Mar 07 10:48:02 NZDT 2013:DEBUG:<< "Expires: Thu, 01 Jan 1970 00:00:00 GMT[\r][\n]"
14 Thu Mar 07 10:48:02 NZDT 2013:DEBUG:<< "Location: https://identity.mydomain.zzz/sso?SAMLRequest=nVNdb9MwFP0rkdxxxxxx[\r][\n]"
15 Thu Mar 07 10:48:02 NZDT 2013:DEBUG:<< "[\r][\n]"
16 Thu Mar 07 10:48:02 NZDT 2013:DEBUG:>> "GET /sso?SAMLRequest=nVNdb9MwFP0rkdxxxxxx HTTP/1.1[\r][\n]"
17 Thu Mar 07 10:48:02 NZDT 2013:DEBUG:>> "Accept-Encoding: gzip,deflate[\r][\n]"
18 Thu Mar 07 10:48:02 NZDT 2013:DEBUG:>> "Host: event.mydomain.zzz[\r][\n]"
19 Thu Mar 07 10:48:02 NZDT 2013:DEBUG:>> "Connection: Keep-Alive[\r][\n]"
20 Thu Mar 07 10:48:02 NZDT 2013:DEBUG:>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
21 Thu Mar 07 10:48:02 NZDT 2013:DEBUG:>> "[\r][\n]"
22 Thu Mar 07 10:48:03 NZDT 2013:DEBUG:<< "HTTP/1.1 400 HTTP method GET is not supported by this URL[\r][\n]"
23 Thu Mar 07 10:48:03 NZDT 2013:DEBUG:<< "Server: nginx/1.2.7[\r][\n]"
24 Thu Mar 07 10:48:03 NZDT 2013:DEBUG:<< "Date: Wed, 06 Mar 2013 21:48:01 GMT[\r][\n]"
25 Thu Mar 07 10:48:03 NZDT 2013:DEBUG:<< "Content-Type: text/html;charset=ISO-8859-1[\r][\n]"
26 Thu Mar 07 10:48:03 NZDT 2013:DEBUG:<< "Transfer-Encoding: chunked[\r][\n]"
27 Thu Mar 07 10:48:03 NZDT 2013:DEBUG:<< "Connection: keep-alive[\r][\n]"
28 Thu Mar 07 10:48:03 NZDT 2013:DEBUG:<< "Set-Cookie: JSESSIONID=1va94k1cph02galwdnrr6e0jf;Path=/[\r][\n]"
29 Thu Mar 07 10:48:03 NZDT 2013:DEBUG:<< "Cache-Control: must-revalidate,no-cache,no-store[\r][\n]"
30 Thu Mar 07 10:48:03 NZDT 2013:DEBUG:<< "[\r][\n]"