Re: [appengine-java] Ghost rows in Datastore - cant get some rows in a queries until I resave them in the Datastore viewer

2010-02-25 Thread Shai Levy
HI,

I sent you the info by email.

Thank you very much
Shai


On Thu, Feb 25, 2010 at 2:59 AM, Ikai L (Google) ika...@google.com wrote:

 Were you able to resolve this? What's your app-id?

 On Wed, Feb 17, 2010 at 2:18 PM, Shai levys...@gmail.com wrote:

 HI,

 I encountered something strange when running queries in my application
 so I went to the Datastore Viewer and reproduced it in there, maybe
 someone can help me out:
 I have a table with a string column named 'owner' and + int column
 names 'seesionId' (+ some irrelevant columns)

 Everything is reproducing in datastore viewer:

 When I make the query

 SELECT * FROM table where owner = '[owner]'
 I can see a row with the owner and a sessionId with value 7

 So I tried:
 SELECT * FROM table where owner = '[owner]' and sessionId = 7

 And the row didn't return !
 So I open the row, didn't (!) change any thing and saved it.
 Now the same query did return the row

 I really don't understand it
 Can any one point me to what went wrong ? I have a lot of rows with
 the same problem and I really need to clean my datastore


 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 http://googleappengine.blogspot.com | http://twitter.com/app_engine

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: How would you suggest to have a dynamic settings in my app ?

2010-02-16 Thread Shai Levy
1. Well, I guess that's the best option. Normally from my past experience a
setting file would include the db connection properties and then I would
just add more settings to it.

I guess that as long as I don't need to save settings regarding what to do
if the datastore has a problem - it would be just fine

Thanks



On Tue, Feb 16, 2010 at 11:48 AM, Ian Marshall ianmarshall...@gmail.comwrote:

 1.  Why not have have a persistent class with one or more instances
 persisted to the datastore. You could amend persisted values with the
 Administration Console datastore viewer as desired. Your app can look
 these settings up as needed.

 2.  Or else construct an administration web page, and allow the
 viewing and changing of your app settings from there?

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: UserService.createLoginURL() to a chrome extension

2010-02-10 Thread Shai Levy
Thanks for the reply!

I actually already considered what he suggested but had two reason's not to
do so:
1. Security - to me it feels like having a html located on a server which
hold's trigger commands to an extension is a risky option and might lead
to code injection vulnerabilities (of course proper coding can prevent that,
but it's still a bit of a back-doorish solution)
2. Writing a content scripts makes the extension more complex and isn't as
fun as finding the elegant solution

I didn't try the Chrome extension group yet because It seem's like like an
issue with GAE that can be easily fix, Do you agree with me ? I would expect
createLoginURL to recognize chrome-extension:// as a protocol at some
point.

Any way, thanks again for the reply
Shai


On Wed, Feb 10, 2010 at 4:39 AM, Ikai L (Google) ika...@google.com wrote:

 I actually ended up asking one of the Chrome guys for the answer to this.
 This is what he tells me:

 Ah, to me it sounds like GAE's createLoginURL function doesn't recognize
 chrome-extension:// as a protocol.  It's appending the extension url like a
 relative path.

 You can tell him to redirect to something like success.html on his GAE
 app, where he can set headers to redirect back to the chrome-extension URL,
 although I think there may be a security precaution in Chrome to prevent
 doing that.  If that's the case, the developer can inject a content script
 into success.html that will notify his extension's background page and
 open the appropriate URL from within the extension itself.

 I'm sorry if this doesn't make sense, I'm not an expert on Chrome extension
 development. Have you tried their groups?

 On Tue, Feb 9, 2010 at 5:48 PM, Shai levys...@gmail.com wrote:

 I would still appreciate some pointers on this issue.

 Is the redirect limited to http://; otherwise the API thinks I'm
 trying to send to file in my application ? any suggestion how to
 overcome this ?
 Is there a way to manually create the URL ?

 Thanks


 On Feb 4, 5:10 pm, Shai levys...@gmail.com wrote:
  Hi,
 
  If I try doing a redirect to a normal http site it works fine, for
  example
  UserService.createLoginURL(http://www.somewhere.com/index.html;) ;
 
  This will let me login to my Google app account and then redirect me
  towww.somewhere.com...
 
  But if I try to redirect to html in mychromeextension:
  UserService.createLoginURL(chrome-extension://[extensionid]/
  myhtml.html) ;
 
  It redirects me to:http://[myapp].
 appspot.com/chrome-extension://[myextensionid]]/http://appspot.com/chrome-extension://%5Bmyextensionid%5D%5D/
  myhtml.html
 
  Can someone suggest a simple solution ?
  Mychromeplug-in uses Google app engine for authentication and I when
  the user is not logged in I would like to invoke a log-in page and
  give control  back to myextension

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 http://googleappengine.blogspot.com | http://twitter.com/app_engine

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.