Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] internationalization liteUI

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] internationalization liteUI


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Wallaert-Taquet Brigitte <>
  • Cc: "" <>, "" <>, THIA Jean-Marie <>
  • Subject: RE: [grouper-users] internationalization liteUI
  • Date: Thu, 8 Sep 2011 04:16:14 +0000
  • Accept-language: en-US

I went back to 1.6.3, and added in the changes we have been discussing, and it works fine…  what DB do you have?  Or is the subject search ldap?

 

https://spaces.internet2.edu/display/Grouper/Grouper+UI+internationalization

 

I committed the changes to 1.6.3 (and 2.0.0), or the patch is below…

 

Thanks,

Chris

 

############################# PATCH BELOW #########################

 

### Eclipse Workspace Patch 1.0

#P grouper-ui_v1_6

Index: java/src/edu/internet2/middleware/grouper/ui/util/HttpContentType.java

===================================================================

--- java/src/edu/internet2/middleware/grouper/ui/util/HttpContentType.java               (revision 7090)

+++ java/src/edu/internet2/middleware/grouper/ui/util/HttpContentType.java             (working copy)

@@ -14,13 +14,13 @@

   TEXT_PLAIN("text/plain"),

  

   /** xml content type */

-  TEXT_XML("text/xml"),

+  TEXT_XML("text/xml;charset=utf-8"),

  

   /** text html content type */

   TEXT_HTML("text/html"),

  

   /** application json content type */

-  APPLICATION_JSON("application/json"),

+  APPLICATION_JSON("application/json;charset=utf-8"),

  

   /** text comma separated values */

   TEXT_CSV("text/csv");

Index: java/src/edu/internet2/middleware/grouper/ui/GrouperUiFilter.java

===================================================================

--- java/src/edu/internet2/middleware/grouper/ui/GrouperUiFilter.java           (revision 7090)

+++ java/src/edu/internet2/middleware/grouper/ui/GrouperUiFilter.java         (working copy)

@@ -645,6 +645,8 @@

    

     try {

      

+      servletRequest.setCharacterEncoding("UTF-8");

+        

       httpServletRequest = new GrouperRequestWrapper((HttpServletRequest) servletRequest);

       

       httpServletRequest = initRequest(httpServletRequest, response);

Index: conf/resources/grouper/media.properties

===================================================================

--- conf/resources/grouper/media.properties   (revision 7090)

+++ conf/resources/grouper/media.properties (working copy)

@@ -702,3 +702,10 @@

# put a URL here where the result (attributeDefNameId, displayName, name, description) will be submitted back

# blank if same domain and just call opener directly

attributeDefNamePicker.defaultSettings.submitResultToUrl =

+

+###################################

+## Internationalization

+###################################

+

+# this should be true unless troubleshooting...

+convertInputToUtf8 = true

Index: java/src/edu/internet2/middleware/grouper/j2ee/GrouperRequestWrapper.java

===================================================================

--- java/src/edu/internet2/middleware/grouper/j2ee/GrouperRequestWrapper.java   (revision 6841)

+++ java/src/edu/internet2/middleware/grouper/j2ee/GrouperRequestWrapper.java (working copy)

@@ -376,11 +376,20 @@

   public String getParameter(String name) {

  

     if (!this.multipart) {

-     

-      return this.wrapped.getParameter(name);

+      String param = this.wrapped.getParameter(name);

+      if (param != null && StringUtils.equals("GET", this.getMethod()) && TagUtils.mediaResourceBoolean("convertInputToUtf8", true)) {

+        try {

+          byte[] bytes = param.getBytes("ISO-8859-1");

+          param = new String(bytes, "UTF-8");

+        } catch (Exception e) {

+          throw new RuntimeException(e);

+        }

+      }

+      return param;

     }

+

     Object objectSubmitted = this.parameterMap.get(name);

+

     //if not found, then return null

     if (objectSubmitted == null) {

       return null;

 

########################### PATCH END ###########################

 

 

From: Wallaert-Taquet Brigitte [mailto:]
Sent: Wednesday, September 07, 2011 6:27 AM
To: Chris Hyzer
Cc: ; ; THIA Jean-Marie
Subject: Re: [grouper-users] internationalization liteUI

 

Hello,

I'm not sure to use the new version because I have to put absolutely Grouper in production this month and I'm afraid to be delayed if I choice to install Grouper 2.0 because I have to verify all procedures like scripts ldappcng and some personalization...

Perhaps it is more careful for the delay to continue with Grouper 1.6.3, even if Grouper 2.0 seems to be very interesting...

Now, I continue with Grouper 1.6.3.

Before to put in production, I try to install Grouper 2.0  if I have enough time...

So, I will tell you that theses weeks...

Thanks
Brigitte


Le 06/09/2011 14:15, Chris Hyzer a écrit :

Grouper 2.0.0 is coming out soon (today?)  Any chance you can use that version, or are you set on 1.6.3?  If 1.6.3 I will try to use that version and look into it.

 

Thanks,

Chris

 



-- 
Brigitte Wallaert-Taquet
Ingénieure d'études
Chargée d'étude
Espace collaboratif de Documents
Université Lille1
Sciences et Technologies



Archive powered by MHonArc 2.6.16.

Top of Page