curtisullerich / attendance

An attendance application built for the Iowa State University Cyclone Football 'Varsity' Marching Band.
MIT License
6 stars 2 forks source link

Deleting users causes inconsistent datastore #234

Closed curtisullerich closed 11 years ago

danstiner commented 11 years ago

Talking about this error in the logs?

/auth java.lang.IllegalStateException: Some instances were not found for keys [User("curtisu")] found {} at com.google.code.twig.standard.TranslatorObjectDatastore.doRefreshActivate(TranslatorObjectDatastore.java:748) at com.google.code.twig.standard.TranslatorObjectDatastore.activate(TranslatorObjectDatastore.java:705) at edu.iastate.music.marching.attendance.model.interact.AuthManager.getCurrentUser(AuthManager.java:120) at edu.iastate.music.marching.attendance.beans.PageTemplateBean.apply(PageTemplateBean.java:66) at edu.iastate.music.marching.attendance.util.PageBuilder.passOffToJsp(PageBuilder.java:91) at edu.iastate.music.marching.attendance.servlets.AuthServlet.handleWelcome(AuthServlet.java:317) at edu.iastate.music.marching.attendance.servlets.AuthServlet.doGet(AuthServlet.java:87)

curtisullerich commented 11 years ago

Yes

danstiner commented 11 years ago

Basically the google datastore viewer is doing different validation than we are, should have just left emails as strings lol. They expect an empty email to be null, not the empty string. https://groups.google.com/forum/#!topic/google-appengine-java/aMmBkeHTZ5s