Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-7842

Errors not displayed on Login screen when Legacy modules are not used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 4.1-rc-1
    • 4.1-milestone-1
    • Old Core
    • None
    • regression
    • Unknown
    • N/A
    • N/A

    Description

      This method allows to access errors put in XWikiContext by some parts of our code.
      One example is the authentication, it puts errors in the context under the "message" key, then login.vm uses $xwiki.parseMessage() to retrieve them. Since this methods have been moved to legacy aspects, errors are not displayed in the login screen on SNAPSHOT versions.

          @Deprecated
          public String XWiki.parseMessage(XWikiContext context)
          {
              String message = (String) context.get("message");
              if (message == null) {
                  return null;
              }
      
              return parseMessage(message, context);
          }
      

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              jvdrean Jean-Vincent Drean
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: