teammates.common.exception.UnauthorizedAccessException: User is not instructor of the course that student belongs to

GitHub | damithc | 3 months ago
  1. 0

    Some students cannot access profile pic

    GitHub | 3 months ago | damithc
    teammates.common.exception.UnauthorizedAccessException: User is not instructor of the course that student belongs to
  2. 0

    'preview as student' is not accessible to co-owner

    GitHub | 2 years ago | damithc
    teammates.common.exception.UnauthorizedAccessException: Feedback session [Test] is not accessible to instructor [abc@auckland.ac.nz] for this purpose
  3. 0

    logger warning not proper when admin user(not an instructor) sign in to instructor page

    GitHub | 3 years ago | damithc
    teammates.common.exception.UnauthorizedAccessException: User test@example.com does not have admin privilleges
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. teammates.common.exception.UnauthorizedAccessException

      User is not instructor of the course that student belongs to

      at teammates.logic.api.GateKeeper.verifyAccessibleForCurrentUserAsInstructor()
    2. teammates.logic.api
      GateKeeper.verifyAccessibleForCurrentUserAsInstructor
      1. teammates.logic.api.GateKeeper.verifyAccessibleForCurrentUserAsInstructor(GateKeeper.java:353)
      1 frame
    3. teammates.ui.controller
      ControllerServlet.doGet
      1. teammates.ui.controller.StudentProfilePictureAction.handleRequestWithEmailAndCourse(StudentProfilePictureAction.java:51)
      2. teammates.ui.controller.StudentProfilePictureAction.execute(StudentProfilePictureAction.java:31)
      3. teammates.ui.controller.Action.executeAndPostProcess(Action.java:344)
      4. teammates.ui.controller.ControllerServlet.doPost(ControllerServlet.java:64)
      5. teammates.ui.controller.ControllerServlet.doGet(ControllerServlet.java:43)
      5 frames
    4. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2 frames
    5. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
      2 frames
    6. teammates.storage.datastore
      DatastoreFilter.doFilter
      1. teammates.storage.datastore.DatastoreFilter.doFilter(DatastoreFilter.java:29)
      1 frame
    7. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    8. Google AppEngine
      ParseBlobUploadFilter.doFilter
      1. com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:125)
      1 frame
    9. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    10. com.google.apphosting
      SaveSessionFilter.doFilter
      1. com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:37)
      1 frame
    11. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    12. Google AppEngine
      JdbcMySqlConnectionCleanupFilter.doFilter
      1. com.google.apphosting.utils.servlet.JdbcMySqlConnectionCleanupFilter.doFilter(JdbcMySqlConnectionCleanupFilter.java:60)
      1 frame
    13. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    14. Google AppEngine
      TransactionCleanupFilter.doFilter
      1. com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:50)
      1 frame
    15. Jetty Server
      WebAppContext.handle
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
      6 frames
    16. com.google.apphosting
      AppVersionHandlerMap.handle
      1. com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:260)
      1 frame
    17. Jetty Server
      HttpConnection$RequestHandler.headerComplete
      1. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      2. org.mortbay.jetty.Server.handle(Server.java:326)
      3. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      4. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
      4 frames
    18. com.google.apphosting
      RpcRequestParser.parseAvailable
      1. com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:78)
      1 frame
    19. Jetty Server
      HttpConnection.handle
      1. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      1 frame
    20. com.google.apphosting
      JettyServletEngineAdapter.serviceRequest
      1. com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:148)
      1 frame
    21. appengine-managed-runtime
      JavaRuntime$RequestRunnable.run
      1. com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:504)
      1 frame
    22. Google tracing
      TraceContext$TraceContextRunnable.run
      1. com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:446)
      2. com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:453)
      3. com.google.tracing.CurrentContext.runInContext(CurrentContext.java:276)
      4. com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:312)
      5. com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:304)
      6. com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:450)
      6 frames
    23. appengine-managed-runtime
      ThreadGroupPool$PoolEntry.run
      1. com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:235)
      1 frame
    24. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame