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

Wrong xwiki.authentication.createuser parameter name generation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Trivial
    • None
    • 1.5
    • None
    • None
    • Low

    Description

      Please see method getParam(String name, XWikiContext context) in com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl

      protected String getParam(String name, XWikiContext context)
      {
      String param = "";
      try

      { param = context.getWiki().getXWikiPreference(name, context); }

      catch (Exception e) {
      }
      if (param == null || "".equals(param)) {
      try

      { param = context.getWiki().Param( "xwiki.authentication." + StringUtils.replace(name, "auth_", ".")); !!! Please see.... wrong generation parameter name. Generate "xwiki.authentication..createuser" (Two dot) }

      catch (Exception e) {
      }
      }
      if (param == null)

      { param = ""; }

      return param;
      }

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              krolser Aleh Krutsikau
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: