Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-43615

java.time.zone.ZoneRulesException: Unknown time-zone ID: HST when logging in

    XMLWordPrintable

    Details

    • 20 status:
      Resolved
    • 19 status:
      Resolved
    • 12 status:
      Please Merge
    • Test Plan:
      Hide
      • login with an "old" user account that has it's timezone set to a 'simple ID" like HST
      • or directly update the database table sakai_preferences and set a user's timezone to something like <property enc="BASE64" name="timezone" value="SFNU"/>. then try logging in.
      • exception occurs
      Show
      login with an "old" user account that has it's timezone set to a 'simple ID" like HST or directly update the database table sakai_preferences and set a user's timezone to something like <property enc="BASE64" name="timezone" value="SFNU"/>. then try logging in. exception occurs

      Description

      Exception when logging into an 'old' account that has a 'simple' timezone ID set in it's preferences

      29-Apr-2020 11:04:58.905 WARN [ajp-nio2-128.171.16.99-8009-exec-145] org.sakaiproject.portal.util.ErrorReporter.logAndMail Bug Report bug-id: 47d5cd22-231c-46fb-98a5-9fd9cd13b027 user: abcd-1234-zxcv-5678 usage-session: 3d0b7e8d-d91e-4a68-a9d8-b806a6964df2 time: Apr 29, 2020 11:04:58 user comment: null stack trace
      org.sakaiproject.portal.api.PortalHandlerException: java.time.zone.ZoneRulesException: Unknown time-zone ID: HST
          at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:856)
      caused by: java.time.zone.ZoneRulesException: Unknown time-zone ID: HST
          at java.time.zone.ZoneRulesProvider.getProvider(ZoneRulesProvider.java:272)
          at java.time.zone.ZoneRulesProvider.getRules(ZoneRulesProvider.java:227)
          at java.time.ZoneRegion.ofId(ZoneRegion.java:120)
          at java.time.ZoneId.of(ZoneId.java:411)
          at java.time.ZoneId.of(ZoneId.java:359)
          at org.sakaiproject.portal.charon.handlers.BasePortalHandler.addTimeInfo(BasePortalHandler.java:223)
          at org.sakaiproject.portal.charon.handlers.SiteHandler.doSite(SiteHandler.java:549)
          at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:267)
          at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:155)
          at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:856)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
          at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:475)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
          at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
          at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
          at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:415)
          at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
          at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
          at org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1684)
          at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
          at org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1104)
          at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:599)
          at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:577)
          at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
          at sun.nio.ch.Invoker$2.run(Invoker.java:218)
          at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
          at java.lang.Thread.run(Thread.java:748)
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  ottenhoff Sam Ottenhoff
                  Reporter:
                  austinUH Austin
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration