[google-appengine] realy upset
please help me experts!! i am creating a website through app engine plugins in java. my task is to save the uploaded image on google app engine. that i cannot do, please guide me like a child how i can do this easily and without errors. please! -- 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-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] how to face DDoS Attack (and wishlist)
Not a new subject but I found no clear answer nad it would be nice to get answer from experts: I have problems with DDoS attack and quotas. I considered to develop a google app accessed by many client applications, but I decided to give up because I think there is not enough protection against denial of service attack. I mean, I suppose Google is able to detect and protects google apps from massive dDOS attack but a sort of soft DDoS can't be detected and would consume all HTTP quotas of my app. Creating google accounts for application I could better control access, but my apps was intended to serve from 5000 up to 5 clients or more without using google accounts. The only barrier to DOS attack I found seems to me to be weak: 100 entry of ip addresses blacklist that must be written manually are not enough. Am I wrong? there is something else I can do? Anyone can advice? Here it is something I liked to use if it would exist. Applications like the one I was about to write can easily detect an attack, it would be nice to have a google api to ask the infrastructure to lock an ip address for some hours. Another and safer implemenlentation approach could be to allow the google app to create micro google accounts. I mean that at present there is apis to programmatically create accounts, but each account\user costs 40 euros and this is too much for my application. Moreover I don't need of a real user with mail service and huge disk space, I just need a way to let google infrastructure log in a user for my app. Then I need functions to revoke user accounts programmatically as fast as I detect an attack. In this way when my app get some kind of violation it could immediately block the related user and the app won't be bugged any longer by it. In this scenario a dDos attack would be harder because it would need to use real accounts. Without real accounts the attack would be a problem only for the google infrastructure, that I DO HOPE is already prepeared to deal with (Am'I too optimistic?). In case of attack with real accounts I could lock them, and I exactly know in advance the maximun quotas I might spend under attack (that is the task of revoking all the issued users). It would be nice if such kind of user accounts would be treated as billable quotas comparable for pricing to http traffic or datastore space. I've understood that Amazon EC2 service doesn't offer anithing against dDos attack, but I think Google already has tools to offer barriers, maybe it would be of some help supplying functionalities like the listed above. Thank you for your attention Francesco Sana -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/lpQoxHAcx4gJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Logout login behavior
I am under the impression that the gae session is dependent of the session of other Google Services (e.g. Gmail). However, when I do the following - Log in my app on gae with a Google Account - Log in my Gmail with the same Google Account - Logout my app - My Gmail also got logged out May I know is this the expected behavior? Because it would be very inconvenient if my users only want to log out my app but not their other Google Service like Gmail. Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/Grmuhuhl8AQJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] my first xmpp chat client problem
Hi, to build and test the tutorial of this book: http://eclipserpc.org I built a simple echo-chat-bot on my Google App account, to connect to it from the chat client tutorial of the book. My bot is now working by echoing whatever written to, from my GoogleTalk: coolestzab...@appspot.com. I fail with connecting the chat client of the tutorial to it. I think my problem is that I don't know how express the connection in program. Bellow I provide the problem in detail, and there all the tutorial code I used both for the server bot and the client (from the book). Please give some ideas to help to solve the issue (connection time out). The tutorial main class: public class Application implements IApplication, MessageListener { public Object start(IApplicationContext context) throws Exception { XMPPConnection con = new XMPPConnection(eclipsercp.org); try { con.connect(); con.login(reader, secret, Long.toString(System.currentTimeMillis())); Chat chat = con.getChatManager().createChat(el...@eclipsercp.org, this); chat.sendMessage(Hi There!); Thread.sleep(5000); } catch (XMPPException e) { e.printStackTrace(); } finally { con.disconnect(); } return IApplication.EXIT_OK; } //... Please tell me, if the right way is to change eclipsercp.org there for talk.google.com and the el...@eclipsercp.org with coolestzab...@appspot.com? if so points: 1. I built the Google App using the Eclipse plugin of GApp and deployed successfully, so my internet connection and Eclipse setup is correct. 2. My Google Talk connects to the bot, so connecting is also possible without problem. 3. I have no login/password authentication on the bot, but the tutorial has, well I suppose I can leave them as-is, as chat-bot just ignore them. === Complete source code I used to try Google App with XMPP: the server code (bot): package com.gaejexperiments.xmpptutorial; import java.io.IOException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.google.appengine.api.xmpp.*; import java.util.logging.Level; import java.util.logging.Logger; @SuppressWarnings(serial) //STEP 1 public class XMPPAgentServlet extends HttpServlet { public static final Logger _log = Logger.getLogger(XMPPAgentServlet.class.getName()); public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException { try { String strStatus = ; XMPPService xmpp = XMPPServiceFactory.getXMPPService(); //STEP 2 Message msg = xmpp.parseMessage(req); JID fromJid = msg.getFromJid(); String body = msg.getBody(); _log.info(Received a message from + fromJid + and body = + body); //STEP 3 String msgBody = You sent me : + body + I am still learning Human created languages! Soon I'll have a better chat with you ;-); Message replyMessage = new MessageBuilder() .withRecipientJids(fromJid) .withBody(msgBody) .build(); //STEP 4 boolean messageSent = false; if (xmpp.getPresence(fromJid).isAvailable()) { SendResponse status = xmpp.sendMessage(replyMessage); messageSent = (status.getStatusMap().get(fromJid) == SendResponse.Status.SUCCESS); } //STEP 5 if (messageSent) { strStatus = Message has been sent successfully; } else { strStatus = Message could not be sent; } _log.info(strStatus); } catch (Exception e) { _log.log(Level.SEVERE,e.getMessage()); } } } //tutorial source: http://gaejexperiments.wordpress.com/2009/09/25/gaej-xmpp-and-rolling-your-own-agent/ The chat client tutorial of the book is: / *** * Copyright (c) 2005 Jean-Michel Lemieux, Jeff McAffer and others. * All rights