[appengine-java] Re: Login redirect failing all of a sudden /_ah/conflogin

2011-03-04 Thread Glenn
What was the good workaround?  Our login is broken, too.

We have two App Engine apps: one is the front end and one the back
end,
with a REST API.  When the user accesses the front end a call to the
back end is made where

redirect = userService.createLoginURL(gae front end);

is called.  In this case both apps have appspot.com urls and
it worked well.  We are dead in the water now.

Please help!

Thanks,
Glenn

On Mar 2, 12:31 pm, Jon McAlister jon...@google.com wrote:
 Looks like you pushed a good workaround already, but yes that was a
 result of a new login system yesterday, and looks like it is not
 handling this case like the prior system did.

 Specifically, calling createLoginUrl where the continue url is not the
 same as the url the app is hosted on. And, furthermore, the continue
 url is not an app engine url at all.

 For now, what you did was a good workaround. That is, use an app
 engine url as the continue url, and then have the app engine app
 redirect to the non-app-engine url.

 Need to think on this case some more.



 On Wed, Mar 2, 2011 at 7:53 AM, Joerg Weingarten jbwinvest...@gmail.com 
 wrote:
  Since this morning my call to userservice.createLoginUrl produces a
  url that doesn't work anymore. When selecting my Sign in link, which
  has a url like:

 https://www.google.com/accounts/ServiceLogin?service=ahpassive=true;...

  I get the error:

  The requested URL /_ah/conflogin was not found on this server.

  Somebody please help.

  Thx
  ---Joerg---

  --
  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-java@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-appengine-java+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://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-java@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.



[appengine-java] Re: Workaround to get a cursor from a sorted and filtered query?

2011-01-16 Thread Glenn
Thanks to speedplane for the suggestion.

To answer my own question, the algorithm I suggested did indeed work,
returning a cursor.

Cheers,
Glenn

On Dec 21 2010, 10:59 pm, Glenn glenn.mur...@gmail.com wrote:
 I'm trying to find a workaround for some query cursor limitations.
 Say that I have entities with date and an value which is a
 multiple of ten from 0 to 100.

 I need to get paginated entities sorted by date and with the
 integer field above a given threshold, along the lines of the
 pseudo code:

 SELECT * FROM entity WHERE integer = 50 ORDER BY date DESC

 What's the best way to do this?  My thoughts are below.

 As the docs say, I can't use an inequality on the integer field
 since then I'd have to sort by the integer first.  Instead of using
 integer values, I though Icould use strings: '0', '10', '20', etc.,
 and
 then use a query like this to get entities with a value of 70 or more:

 SELECT * FROM entity WHERE integer IN [70,80,90] ORDER BY date DESC

 But as the docs say, cursors can't be obtained from queries for
 entities that use contains() (i.e., IN) or even disjunctions
 (value == '70' || value == '80'...).

 My question is would a multiple value property (a list) work for
 this?  My idea is to set the all the values up to the true entity
 value, e.g., if the entity value was '40', then the MVP would be
 ['0', '10', '20', '30', '40'].  Then if the threshold was 20,
 then entities such as this would (I believe) be returned by a query
 like

 SELECT * FROM entity WHERE value == '20' ORDER BY date DESC

 Can you obtain a cursor from such a query or is there a better way?

 Thanks,
 Glenn

-- 
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-java@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.



[appengine-java] Workaround to get a cursor from a sorted and filtered query?

2010-12-22 Thread Glenn
I'm trying to find a workaround for some query cursor limitations.
Say that I have entities with date and an value which is a
multiple of ten from 0 to 100.

I need to get paginated entities sorted by date and with the
integer field above a given threshold, along the lines of the
pseudo code:

SELECT * FROM entity WHERE integer = 50 ORDER BY date DESC

What's the best way to do this?  My thoughts are below.

As the docs say, I can't use an inequality on the integer field
since then I'd have to sort by the integer first.  Instead of using
integer values, I though Icould use strings: '0', '10', '20', etc.,
and
then use a query like this to get entities with a value of 70 or more:

SELECT * FROM entity WHERE integer IN [70,80,90] ORDER BY date DESC

But as the docs say, cursors can't be obtained from queries for
entities that use contains() (i.e., IN) or even disjunctions
(value == '70' || value == '80'...).

My question is would a multiple value property (a list) work for
this?  My idea is to set the all the values up to the true entity
value, e.g., if the entity value was '40', then the MVP would be
['0', '10', '20', '30', '40'].  Then if the threshold was 20,
then entities such as this would (I believe) be returned by a query
like

SELECT * FROM entity WHERE value == '20' ORDER BY date DESC

Can you obtain a cursor from such a query or is there a better way?

Thanks,
Glenn

-- 
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.