Re: Seems like there is a conflict in the tutorial docs

2008-10-01 Thread Alex Rice

It is discussed some in this thread: let's see if this link works
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/184204844b622067/34a347c50f17d31f?hl=enlnk=gstq=json+%2Bmindlube#34a347c50f17d31f
Basically the first paragraph you quoted, is  incorrect at the present
time.

Has anyone tried wrapping this Javascript in GWT?
http://www.json.org/json_sans_eval.tgz

Alex

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Seems like there is a conflict in the tutorial docs

2008-09-30 Thread Peter Recore

I have been working my way through some of the getting started docs,
and found what I think is a conflict on the page:

http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/GettingStartedJSON

First we have this paragraph:
However, because eval() can execute any JavaScript code (not just JSON
data) this approach has some serious security implications. A much
safer option is to use a dedicated JSON parser instead, which will
only parse JSON text and never executable JavaScript code.
Fortunately, GWT happens to have just such a parser, which we'll use
to add JSON support to our StockWatcher sample application.

Basically, it says that GWT will supply us with a safe JSON parser so
we don't have to worry about accidentally eval()ing bad code.

But, a few paragraphs later we learn that we will need to call the
parse() method of JSONParser, which comes with this javadoc:
Evaluates a trusted JSON string and returns its JSONValue
representation. CAUTION! For efficiency, this method is implemented
using the JavaScript eval() function, which can execute arbitrary
script. DO NOT pass an untrusted string into this method.

So I think something is out of sync.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---