Uploaded image for project: 'Identity Provider'
  1. Identity Provider
  2. IDP-1086

idp.userprefs.info should have a fallback text

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 3.3.0
    • Fix Version/s: None
    • Component/s: User Interface
    • Labels:
      None
    • Operating System:
      Multiple

      Description

      If you update to 3.3.0 from previous version, message text "idp.userprefs.info" is not defined in any specified file by service.xml.
      So the following error occurs when accessing /idp/profile/user/prefs.

      2016-11-11 05:09:40,278 - ERROR [org.apache.velocity:96] - Exception in macro #springMessage called at user-prefs.vm[line 30, column 11]
      2016-11-11 05:09:40,282 - ERROR [org.springframework.webflow.execution.ActionExecutionException:76] - 
      org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing org.springframework.webflow.action.ViewFactoryActionAdapter@1194d29e in state 'RenderView' of flow 'user/prefs' -- action execution attributes were 'map[[empty]]'
              at org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:60)
      Caused by: java.lang.IllegalStateException: Exception occurred rendering view org.springframework.web.servlet.view.velocity.VelocityView: name 'user-prefs'; URL [user-prefs.vm]
              at org.springframework.webflow.mvc.view.AbstractMvcView.render(AbstractMvcView.java:200)
      Caused by: org.springframework.web.util.NestedServletException: Method invocation failed during rendering of Velocity view with name 'user-prefs': Invocation of method 'getMessage' in  class org.springframework.web.servlet.support.RequestContext threw exception org.springframework.context.NoSuchMessageException: No message found under code 'idp.userprefs.info' for locale 'en_US'. at org/springframework/web/servlet/view/velocity/spring.vm[line 27, column 57]; reference [springMacroRequestContext], method 'getMessage'; nested exception is org.springframework.context.NoSuchMessageException: No message found under code 'idp.userprefs.info' for locale 'en_US'.
              at org.springframework.web.servlet.view.velocity.VelocityView.mergeTemplate(VelocityView.java:526)
      Caused by: org.springframework.context.NoSuchMessageException: No message found under code 'idp.userprefs.info' for locale 'en_US'.
              at org.springframework.context.support.AbstractMessageSource.getMessage(AbstractMessageSource.java:159)
      

      Message "idp.userprefs.info" should have a fallback text in user-prefs.vm.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cantor.2@osu.edu Scott Cantor
              Reporter:
              takeshi@gakunin.nii.ac.jp Takeshi Nishimura
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 15 minutes
                  15m