Revision: 16771
          http://sourceforge.net/p/gate/code/16771
Author:   valyt
Date:     2013-08-08 12:06:43 +0000 (Thu, 08 Aug 2013)
Log Message:
-----------
Bugfix: & characters were not properly encoded in the GWT history string.

Modified Paths:
--------------
    mimir/trunk/mimir-web/src/gwt/gate/mimir/web/UI.gwt.xml
    mimir/trunk/mimir-web/src/gwt/gate/mimir/web/client/UI.java

Modified: mimir/trunk/mimir-web/src/gwt/gate/mimir/web/UI.gwt.xml
===================================================================
--- mimir/trunk/mimir-web/src/gwt/gate/mimir/web/UI.gwt.xml     2013-08-07 
15:11:24 UTC (rev 16770)
+++ mimir/trunk/mimir-web/src/gwt/gate/mimir/web/UI.gwt.xml     2013-08-08 
12:06:43 UTC (rev 16771)
@@ -12,7 +12,6 @@
 -->
     <!-- Inherit the core Web Toolkit stuff.                  -->
     <inherits name="com.google.gwt.user.User"/>
-    
     <inherits name="com.google.gwt.user.theme.chrome.Chrome"/>
     <!-- Specify the module entry point class.                   -->
     <entry-point class="gate.mimir.web.client.UI"/>

Modified: mimir/trunk/mimir-web/src/gwt/gate/mimir/web/client/UI.java
===================================================================
--- mimir/trunk/mimir-web/src/gwt/gate/mimir/web/client/UI.java 2013-08-07 
15:11:24 UTC (rev 16770)
+++ mimir/trunk/mimir-web/src/gwt/gate/mimir/web/client/UI.java 2013-08-08 
12:06:43 UTC (rev 16771)
@@ -16,6 +16,7 @@
 
 import java.util.ArrayList;
 import java.util.List;
+import java.util.logging.Logger;
 
 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.core.client.GWT;
@@ -56,6 +57,8 @@
  */
 public class UI implements EntryPoint {
  
+  private static final Logger logger = Logger.getLogger(UI.class.getName());
+  
   /**
    * A Timer implementation that fetches the latest results information from 
the 
    * server and updates the results display accordingly.
@@ -583,6 +586,7 @@
       @Override
       public void onValueChange(ValueChangeEvent<String> event) {
         String historyToken = event.getValue();
+        logger.info("History token " + historyToken);
         if(historyToken != null && historyToken.length() > 0) {
           String newQueryId = null;
           String newQueryString = null;
@@ -674,8 +678,8 @@
   
   protected String createHistoryToken(String queryId, String queryString, 
                                       int firstDocument) {
-    return "queryId=" + queryId + 
-        "&queryString=" + queryString + 
+    return "queryId=" + URL.encodeQueryString(queryId) + 
+        "&queryString=" + URL.encodeQueryString(queryString) + 
         "&firstDoc=" + firstDocument;
   }
   

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to