[google-appengine] Re: appcfg.cmd update NEVER asks for authentication. Is it a security flaw?

2014-02-08 Thread Vishwanath Arondekar
I might be late to answer this but better late than never.

On Windows 7, working with Java if you use appcfg.cmd with oauth2 feature 
your session/cookie info is stored at 
C:\Users\\.appcfg_oauth2_tokens_java 

Delete that file and you will be prompted again for authentication in 
browser.



On Thursday, 3 March 2011 21:18:39 UTC+5:30, Ernesto Alejo wrote:
>
> Wow, sorry I've only used Python SDK, so no idea about Java 
> configuration files, but sure that first time saved a file somewhere 
> in your user folder with the authentication details. 
>
> If it follows the same convention as in Python, the file will be in C: 
> \Documents and Settings\User\.appcfg_cookies. 
> Try that, or try searching "appcfg" in all your pc. Or wait someone 
> who work with java :) 
>
> On 3 mar, 06:09, Prakhar Kumar Goel  wrote: 
> > Hi, 
> > 
> > Thanks for the reply. 
> > 
> > I am on windows 7. appcfg has never prompted me for my credentials. 
> This may 
> > be because I uploaded my app for the first time from eclipse, where it 
> did 
> > ask my details. 
> > 
> > After that, I am using cmd for the past one week, with just no 
> > authentication. Also, I dont know how to signout and delete cookies 
> from 
> > cmd. 
> > 
> > There are no cookies file as ./appcfg_cookies 
> > I could just find one file "LoginCookieUtils.CookieData.html" inside 
> > .\docs\testing\javadoc\com\google\appengine\api\users\dev which has no 
> > relevant details. 
> > 
> > Where to find it. 
> > 
> > -Prakhar 
> > 
> > On Thu, Mar 3, 2011 at 5:18 AM, Ernesto Karim Oltra 
> > wrote: 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > It saves a temp file with a cookie, which saves the session in the 
> > > server, so you don't have to re-type the data over and over. In my 
> > > linux, one the cookie last for one day, so each day it asks for 
> > > username and password only one time. If you're using linux, for 
> > > example, the file is in ~/.appcfg_cookies. 
> > 
> > > On 2 mar, 21:08, Prakhar Kumar Goel  wrote: 
> > > > Hi everyone, 
> > 
> > > > I am using GAE to host my apps. I upload it using the command: 
> > > > appcfg.cmd update  
> > 
> > > > This works great, but this NEVER asks for any authentication of any 
> kind, 
> > > > like my gmail username, password. How does google authenticate that 
> the 
> > > > update request is genuine and is coming from the legitimate owner? 
> > 
> > > > I just mention my app id in the appengine-web.xml file, but this 
> > > application 
> > 
> > > > id can be gained by anyone and anyone can upload apps on behalf... 
> > 
> > > > What am I missing here? 
> > 
> > > > I would be grateful to anyone who can shed some light on this issue. 
> > 
> > > > Thanks in advance! 
> > 
> > > > Regards, 
> > > > Prakhar 
> > 
> > > -- 
> > > You received this message because you are subscribed to the Google 
> Groups 
> > > "Google App Engine" group. 
> > > To post to this group, send email to 
> > > google-a...@googlegroups.com. 
>
> > > To unsubscribe from this group, send email to 
> > > google-appengi...@googlegroups.com . 
> > > For more options, visit this group at 
> > >http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] Re: GAE local webapp - datastore persistence too slow

2014-02-08 Thread John V Denley
forgot the link to how to change the local HRD consistency rate:
https://developers.google.com/appengine/docs/java/tools/devserver?csw=1#Using_the_Datastore

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] Re: GAE local webapp - datastore persistence too slow

2014-02-08 Thread John V Denley
I just ran into this same problem, on my local system "makePersistent" is 
taking about 10 seconds before i can read the data I just wrote to the 
server. I have deal with this in the live environment with the following 
setting in the jdoconfig file:

However, this seems to have no effect on my local instance, hence up to now 
i have only been able to test my application in the live environment, which 
is irritating!

I have found from the links above that in my run configurations, I can set 
the unapplied job percentage to ZERO to force consistency on the dev 
server, but as it pointed out her by Simon, you still need to code for the 
live "eventual consistency" scenario.

HOWEVER, what i really don't understand is why when the user writes 
something to the database, the system is not clever enough to work out that 
if the user just wrote the data, then if they query that same data right 
away, then obviously they would expect to see it there. My application is a 
little like Google Calendar, in that once you save an appointment, if you 
refresh the screen you expect it still to be there, but currently with my 
application (without the "STRONG" setting - mentioned above) the user can 
refresh the screen several times, before the appointment they just created 
actually appears on their screen

The only way I can solve this seems to be with memcache, which up to now I 
have just not had the time to figure out how to use, but it seems like its 
now a requirement, as my customers are now noticing this "gap" between 
saving data and then being able to see it (or edit it!!) again!


On Thursday, 25 August 2011 06:14:58 UTC+1, Simon Knott wrote:
>
> Is your app on GAE on the Master/Slave datastore or the HR datastore?
>
> The problem with the development server, in its default configuration, is 
> that it emulates eventual consistency but it's quite extreme.  Up to this 
> point, I've never hit the delays that are pre-configured into the dev 
> server when in Production.  However, just because it hasn't happened yet 
> doesn't mean that you shouldn't code your application so that it can cope 
> with those delays.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [google-appengine] Have anyone tried to port a java project with heavy framworks, such as struts and spring, to a pure jsp/servlet project?

2014-02-08 Thread Rafael
Welcome to the club. People have been waiting for this for years.
On Feb 6, 2014 8:16 PM, "Tapir"  wrote:

> For the size of my project, I think it is impractical to port it to other
> languages. :(
> I tried python and go, their warmup time is very short. For python, it is
> less than one second, for go, it is less than 0.5 second I think.
> But Java still has a big advantage: large quantity of libraries.
> So if GAE team can make the warmup time of a pure jsp/servelt project be
> less than 1.5 seconds, I will be still happy to stick to Java.
>
> On Friday, February 7, 2014 2:28:04 AM UTC+8, Rafael Sanches wrote:
>>
>> Depends on the size of your project.
>>
>> I started with plain java/jsp.
>>
>> As the project grew the overhead of maintenance was so big that we opted
>> to moving everything to spring-mvc.
>>
>> That move increased the instance boot time from 7 to 35 seconds. In order
>> to overcome cold startups we had to add 6 extra "resident" instances. It
>> means a monthly $300 commitment just to run an MVC framework.
>>
>> Yes. It's frustrating and expensive.
>>
>> I wouldn't advising starting a java project in appengine. It seems
>> they're investing much more on other languages.
>>
>> Thanks
>> Rafa
>> On Feb 5, 2014 9:36 PM, "Tapir"  wrote:
>>
>>> Is it worth dong it?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-appengi...@googlegroups.com.
>>> To post to this group, send email to google-a...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/google-appengine.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] Re: Frontend Instance Hours running high.

2014-02-08 Thread timh
Yeah I had an elevated instance count today.

T

On Saturday, February 8, 2014 12:39:10 PM UTC+8, Nijin Narayanan wrote:
>
> I have notice that google appengine frontend instance hours running from 
> this week onwards anyone have facing same issue ?
>
> -Nijin Narayanan 
>
>
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.