Clears requests and responses on new ip auth
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Wed, 1 May 2013 17:22:44 +0000 (13:22 -0400)
committerNiels Erik G. Nielsen <nielserik@indexdata.com>
Wed, 1 May 2013 17:22:44 +0000 (13:22 -0400)
src/main/java/com/indexdata/mkjsf/pazpar2/Pz2ProxyBean.java

index f5c0ad0..87daf80 100644 (file)
@@ -74,6 +74,9 @@ public class Pz2ProxyBean extends Pz2Bean implements ServiceProxyInterface {
       if (user.isAuthenticated()) {\r
         user.clear();\r
       }\r
+      pzreq.getRecord().removeParametersInState();\r
+      pzreq.getSearch().removeParametersInState();\r
+      pzresp.reset();\r
       ((ServiceProxyClient)searchClient).ipAuthenticate(user);\r
     }\r
   }\r