Jeff-Lewis / vosao

Automatically exported from code.google.com/p/vosao
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Entering Page Content title with quotes causes crash and data loss #539

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enter a page content
2. Create a second language version of it (Spanish)
3. Enter the page title with some text in double quotes in it

What is the expected output? 
Either accepted page title or error reported.

What do you see instead?
Vosao crash and data loss of the page content entered to date.

Looks like the string entered at the UI prompt is entered directly into the 
JSON string sent to the server for the JSON-RPC:

     {en:"Addit favorite for Internet Explorer",es:"Addit en tu barra de "Favoritos" de Internet Explorer"}

causing a JSON syntax error?

Please use labels and text to provide additional information
Below I enclose a crash log (from App Engine logs) of the crash.....(I have 
removed server hostname and our class names)

88.87.214.94 - - [02/Jan/2012:06:10:26 -0800] "POST /JSON-RPC/ HTTP/1.1" 200 
386 "http:///cms/page/content.vm?id=1705021" "Mozilla/5.0 (Windows NT 6.0; 
WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7" 
1:1325513424.786000 --------- doFilter
Entering languageFilter
 1:1325513424.786000 -------- doFilter
Setting locale
es_ES
 1:1325513424.786000 ----------- setLocale
Setting localeCookie with locale
es_ES
 1:1325513424.850000 org.vosao.business.impl.plugin.PluginClassLoaderFactoryImpl getClassLoader
creating class loader backup
 2:1325513425.864000 [touchactive/1-26-01.355681317987619082].<stderr>
257407 [Request 97E9889E] INFO org.jabsorb.reflect.ClassAnalyzer - analyzing 
org.vosao.service.back.impl.PageServiceImpl

 2:1325513425.872000 [touchactive/1-26-01.355681317987619082].<stderr>
257415 [Request 97E9889E] INFO org.jabsorb.localarg.LocalArgController - 
registered local arg resolver 
org.jabsorb.localarg.impl.HttpServletRequestArgResolver for local class 
javax.servlet.http.HttpServletRequest with context 
javax.servlet.http.HttpServletRequest

 2:1325513425.873000 [touchactive/1-26-01.355681317987619082].<stderr>
257416 [Request 97E9889E] INFO org.jabsorb.localarg.LocalArgController - 
registered local arg resolver 
org.jabsorb.localarg.impl.HttpServletResponseArgResolver for local class 
javax.servlet.http.HttpServletResponse with context 
javax.servlet.http.HttpServletResponse

 2:1325513425.873000 [touchactive/1-26-01.355681317987619082].<stderr>
257416 [Request 97E9889E] INFO org.jabsorb.localarg.LocalArgController - 
registered local arg resolver org.jabsorb.localarg.impl.HttpSessionArgResolver 
for local class javax.servlet.http.HttpSession with context 
javax.servlet.http.HttpServletRequest

 2:1325513425.874000 [touchactive/1-26-01.355681317987619082].<stderr>
257417 [Request 97E9889E] INFO org.jabsorb.localarg.LocalArgController - 
registered local arg resolver 
org.jabsorb.localarg.impl.JSONRPCBridgeServletArgResolver for local class 
org.jabsorb.JSONRPCBridge with context javax.servlet.http.HttpServletRequest

 3:1325513425.922000 org.vosao.entity.PageEntity parseTitle
Page title parsing problem
{en:"Addit favorite for Internet Explorer",es:"Addit en tu barra de "Favoritos" 
de Internet Explorer"}
 3:1325513425.935000 org.vosao.entity.PageEntity parseTitle
Page title parsing problem
{en:"Addit favorite for Internet Explorer",es:"Addit en tu barra de "Favoritos" 
de Internet Explorer"}
 2:1325513425.988000 [touchactive/1-26-01.355681317987619082].<stderr>
257531 [Request 97E9889E] INFO org.jabsorb.serializer.impl.BeanSerializer - 
analyzing org.vosao.service.ServiceResponse

Original issue reported on code.google.com by andrew.m...@bcntouch.com on 3 Jan 2012 at 8:49

GoogleCodeExporter commented 9 years ago

Original comment by kinyelo@gmail.com on 13 Jan 2012 at 10:35