Re: [OGo-Devel] html input elements
Brought to you by:
buzzzzdeeee,
whitemice
|
From: Rafel A. <raf...@up...> - 2013-04-23 15:56:55
|
Sebastian, I have set the defaults WOMessageUseUTF8, NGUseUTF8AsURLEncoding and WOParsersUseUTF8 and now the input form elements works as expected. Thanks, Rafel Amer Al 21/04/13 19:53, En/na Sebastian Reitenbach ha escrit: > Hi Rafel, > On Friday, April 19, 2013 14:41 CEST, Rafel Amer <raf...@up...> wrote: > >> Al 19/04/13 13:20, En/na Adam Tauno Williams ha escrit: >>> On Sat, 2013-04-13 at 23:16 +0200, Rafel Amer wrote: >>>> Hello, >>>> we are using OpenGroupware 1.0 since 2005, and now we are testing >>>> OpenGroupware 5.5 >>>> for a possible upgrade. >>>> But, the html input elements with accented vowels like á, à, é, è, í, >>>> ó, ò, ú, etc. doesn't work >>>> as expected. For example, if a user has a password like "Port >>>> Alcúdia", the tcpdump program >>>> shows us that the information sent to port 20000 is >>>> POST /OpenGroupware.woa/x/login?da=&o=1365751796 HTTP/1.1 >>>> x-webobjects-server-protocol: HTTP/1.1 >>>> x-webobjects-remote-addr: 147.83.3.198 >>>> x-webobjects-remote-host: 147.83.3.198 >>>> x-webobjects-server-name: rams.claimcenter.com >>>> x-webobjects-server-url: https://rams.claimcenter.com >>>> x-webobjects-https-enabled: 1 >>>> x-webobjects-clients-cert: >>>> Host: rams.claimcenter.com >>>> User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:20.0) Gecko/20100101 Firefox/20.0 >>>> Accept: text/html,application/xhtml+xml,application/xml >>>> Accept-Language: en-US,en;q=0.5 >>>> Accept-Encoding: gzip, deflate >>>> Referer: https://rams.claimcenter.com/claim-softAA.woa/x/login?da=&o=1365751721 >>>> Cookie: __utma=160417214.809535573.1331123314.1331123314.1331123314.1 >>>> Connection: keep-alive >>>> Content-Type: application/x-www-form-urlencoded >>>> Content-Length: 108 >>>> browserconfig=%7BisJavaScriptEnabled%3DYES%3B%7D&login=rafel.amer&password=Port+Alc%FAdia&loginbutton=Entrar >>>> and if I put the following code in the file WebUI/Main/WODirectAction >>>> +LoginAction.m >>>> - (id<WOActionResults>)loginAction { >>>> WORequest *req; >>>> req = [self request]; >>>> NSLog(@"HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH %@",[req formValues]); >>>> return [self loginActionWithLogin:[req formValueForKey:@"login"] >>>> password:[req formValueForKey:@"password"] >>>> request:req]; >>>> } >>>> the ogo-webui.log shows >>>> HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH {browserconfig = ("{isJavaScriptEnabled=YES;}"); da = (""); >>>> login = ("rafel.amer"); loginbutton = (Entrar); o = (1365751835); password = (""); } >>> Hmmm.. I'm not sure it would 'normally' show the password value in the >>> log, as that would be bad. >>> >> >> The password is shown because I added >> >> WORequest *req; >> req = [self request]; >> NSLog(@"HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH %@",[req formValues]); >> >> in the file WebUI/Main/WODirectAction+LoginAction.m for testing purposes. >> >> >>>> The same happens in all form inputs in OpenGroupware when we introduce >>>> accented vowels. >>> Ok. So if you input a value with an accented character in some other >>> form you get the same behavior? Is the field [as seen in the POST >>> capture] also dropped like the password value is, or is it just that >>> there is an error? >> >> Yes, if I input a value with an accented character in any form >> (projects, contacts, tasks, etc.) >> tha valu is dropped. >> >> >>>> ie, the password value has been removed in some place. I don't know if >>>> the problem is due to OpenGroupware or SOPE or anything else. >>>> Our system is Debian wheezy with gcc-4.7, gnustep-make-2.6.3, >>>> gnustep-base-1.24.3 and SOPE-2.0.4b. >>>> Do you know how I can find and solve this problem? >>> I'll poke at it, I need to test this myself anyway. > Do you have the following defaults set: > > $ defaults read | grep -i utf > NSGlobalDomain WOMessageUseUTF8 YES > NSGlobalDomain NGUseUTF8AsURLEncoding YES > NSGlobalDomain WOParsersUseUTF8 YES > > > if not, set them as your OGo system user with: > defaults write NSGlobalDomain WOMessageUseUTF8 YES > > and restart ogo, and try again. > > For me, German Umlauts work with that. > > cheers, > Sebastian > >>> >>> ------------------------------------------------------------------------------ >>> Precog is a next-generation analytics platform capable of advanced >>> analytics on semi-structured data. The platform includes APIs for building >>> apps and a phenomenal toolset for data science. Developers can use >>> our toolset for easy data analysis & visualization. Get a free account! >>> http://www2.precog.com/precogplatform/slashdotnewsletter >>> _______________________________________________ >>> Opengroupware-devel mailing list >>> Ope...@li... >>> https://lists.sourceforge.net/lists/listinfo/opengroupware-devel >> >> >> Thanks, >> >> Rafel Amer >> >> ------------------------------------------------------------------------------ >> Precog is a next-generation analytics platform capable of advanced >> analytics on semi-structured data. The platform includes APIs for building >> apps and a phenomenal toolset for data science. Developers can use >> our toolset for easy data analysis & visualization. Get a free account! >> http://www2.precog.com/precogplatform/slashdotnewsletter >> _______________________________________________ >> Opengroupware-devel mailing list >> Ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opengroupware-devel > > > > > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Opengroupware-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opengroupware-devel |