Felix91 / flight-reservation-system

2012 Term 1 UBC EECE 419 Pod 6 Project Workspace
2 stars 2 forks source link

Flight booking - Restrict to Customers only #74

Closed Felix91 closed 11 years ago

Felix91 commented 11 years ago

Display error message: “You must be logged in as a customer to access this page”

This is what I get after attempting to book as a Flight Manager:

HTTP ERROR 500

Problem accessing /select. Reason:

ufly.entities.FlightManager cannot be cast to ufly.entities.Customer
vanjoe commented 11 years ago

It would be helpful if you add line numbers and files to the bug report. I'll figure it out, just for next time

Felix91 commented 11 years ago

I just thought that the cause of this issue was fairly obvious. I included the HTTP Error to show that the web app stops working (and hence the high priority).

But sure, I will next time.

vanjoe commented 11 years ago

sent to be verified

Felix91 commented 11 years ago

I got a new error this time:

HTTP ERROR 500

Problem accessing /select. Reason:

Unresolved compilation problems: 
ClassCastException.UserInactivityTimeout cannot be resolved to a type
Syntax error on token "|", . expected

Caused by:

java.lang.Error: Unresolved compilation problems: ClassCastException.UserInactivityTimeout cannot be resolved to a type Syntax error on token "|", . expected

at ufly.frs.Select.buildPage(Select.java:110)
at ufly.frs.Select.doPost(Select.java:79)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at com.google.appengine.api.socket.dev.DevSocketFilter.doFilter(DevSocketFilter.java:74)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.tools.development.ResponseRewriterFilter.doFilter(ResponseRewriterFilter.java:110)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:34)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:61)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:125)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:94)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:380)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Felix91 commented 11 years ago

I'm not able to book as a Customer too. I get the same error as above.

vanjoe commented 11 years ago

weird, I don't get that, I. changed the syntax, try now.

On Sat, Nov 24, 2012 at 12:59 PM, Felix91 notifications@github.com wrote:

I'm not able to book as a Customer too. I get the same error as above.

— Reply to this email directly or view it on GitHubhttps://github.com/Felix91/flight-reservation-system/issues/74#issuecomment-10683653.

Joel Vandergriendt weneedalaw.ca

Felix91 commented 11 years ago

OK, Customers are able to book now. As for Flight Manager, I just get shown a blank screen at /select. Do we not get an error message “You must be logged in as a customer to access this page”?

vanjoe commented 11 years ago

redirects to indes.jsp, and displays an error

Felix91 commented 11 years ago

Verified both Flight Manager and Flight Staff on 5e6f4e122003c2be57990276052ba926cbe259c2 @joeytall Error message is now "You must be logged in as customer to make a booking." Pls update test plan.