Forum Discussion

natiku's avatar
natiku
New Contributor
16 years ago

Is there any way how to disable in soapUI http circular loop redirection check?

I am trying to use soapUI on public service which use a Novell SSO,
it requires couple http 30x redirection to be processed as part of login.

If I select Follow redirect in soapUI I am getting an exception about redirect circular loop:

In soapUI log tab I see:

Tue Mar 16 16:33:23 CET 2010:ERROR:Exception in request: org.apache.commons.httpclient.CircularRedirectException: Circular redirect to 'https://login.czebox.cz:443/nidp/idff/sso'
Tue Mar 16 16:33:23 CET 2010:ERROR:An error occured [Circular redirect to 'https://login.czebox.cz:443/nidp/idff/sso'], see error log for details

In soapui.log file I see:

2010-03-16 16:33:23,187 ERROR [SoapUI] An error occured [Circular redirect to 'https://login.czebox.cz:443/nidp/idff/sso'], see error log for details
2010-03-16 16:33:23,187 ERROR [errorlog] org.apache.commons.httpclient.CircularRedirectException: Circular redirect to 'https://login.czebox.cz:443/nidp/idff/sso'
org.apache.commons.httpclient.CircularRedirectException: Circular redirect to 'https://login.czebox.cz:443/nidp/idff/sso'
at org.apache.commons.httpclient.HttpMethodDirector.processRedirectResponse(HttpMethodDirector.java:638)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:179)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:170)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:122)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

However  "https://login.czebox.cz:443/nidp/idff/sso?xxx" have different parameters

Is possible to put somewhere in soapUI Apache HttpClient config line like this:

http.protocol.allow-circular-redirects=true

Nice day
Rudolf

3 Replies

  • Hi!

    try adding the following to the onLoad script of your project (in the project window)

    com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.httpClient.params.setParameter( "http.protocol.allow-circular-redirects", "true" )

    Does that help?

    regards!

    /Ole
    eviware.com
  • natiku's avatar
    natiku
    New Contributor
    Yes its help, Login with couple 302 and 303 redirects now passed OK, but it must be:

    com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.httpClient.params.setParameter( "http.protocol.allow-circular-redirects", true )

    Because "true" is Boolean

    PS: I need to close whole soapUI so this line was pre - loaded next time I start project.
  • Hi!

    great! thanks for the feedback.

    You could put the script in your TestCase setup script, which doesn't require the reloading of the project.

    Also, please not that this setting is global for all projects/requests sent by soapUI, not just for the current project/testcase/whatever.

    regards!

    /Ole
    eviware.com