Excludes auth info from state key.
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Tue, 14 May 2013 18:50:21 +0000 (14:50 -0400)
committerNiels Erik G. Nielsen <nielserik@indexdata.com>
Tue, 14 May 2013 18:50:21 +0000 (14:50 -0400)
src/main/java/com/indexdata/mkjsf/pazpar2/state/Pazpar2State.java
src/main/java/com/indexdata/mkjsf/pazpar2/state/StateManager.java

index 13e3989..ca39330 100644 (file)
@@ -71,10 +71,12 @@ public class Pazpar2State {
     if (key == null) {\r
       StringBuilder querystatebuilder = new StringBuilder("");\r
       for (Pazpar2Command command : commands.values()) {\r
-        if (command.hasParameters()) {\r
-          querystatebuilder.append("||"+command.getCommandName()+"::");\r
-          querystatebuilder.append(command.getValueWithExpressions());\r
-        }      \r
+        if (! (command instanceof AuthCommand )) {\r
+          if (command.hasParameters()) {\r
+            querystatebuilder.append("||"+command.getCommandName()+"::");\r
+            querystatebuilder.append(command.getValueWithExpressions());\r
+          }\r
+        }\r
       }            \r
       key = "#"+querystatebuilder.toString();\r
       return key;\r
index 5f5aaf4..d185559 100644 (file)
@@ -12,6 +12,7 @@ import javax.enterprise.context.SessionScoped;
 import org.apache.log4j.Logger;\r
 \r
 import com.indexdata.mkjsf.pazpar2.commands.Pazpar2Command;\r
+import com.indexdata.mkjsf.pazpar2.commands.sp.AuthCommand;\r
 import com.indexdata.mkjsf.utils.Utils;\r
 \r
 @SessionScoped\r