JSPWiki
  1. JSPWiki
  2. JSPWIKI-225

Random password for user admin not shown in JSPWiki Installer page

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.2
    • Fix Version/s: 2.6.3
    • Component/s: None
    • Labels:
      None
    • Environment:

      Container: Tomcat 5.5.26

      Description

      Hi,

      The admin user id, random password and admin group name are not shown up in JSPWiki Installer page (Install.jsp) if installing JSPWiki using the installer for the first time. The replacement variables from CoreResources.properties are shown up literally.

      As a result, the user will not be able to log in wiki when he/she finishes the installation process. See attached screenshot for details.

      Here's the text from CoreResources.properteis:
      =========================================
      install.jsp.install.msg.rnd.pwd=Because no administrator account exists yet, JSPWiki created one for you, with a \
      random password. You can change this password later, of course. The account's id is \

      {0}

      and the password is

      {1}

      . Please write this information down and keep it in a \
      safe place. JSPWiki also created a wiki group called

      {2}

      that contains this user.

      1. screenshot-1.jpg
        136 kB
        David Gao
      2. JSPWiki-225.patch
        1 kB
        Harry Metske

        Activity

        Hide
        Janne Jalkanen added a comment -

        Very, very strange. I see no reason why would not be working.

        This is serious enough to possibly warrant a 2.6.3.

        Show
        Janne Jalkanen added a comment - Very, very strange. I see no reason why would not be working. This is serious enough to possibly warrant a 2.6.3.
        Hide
        Karl Hansen added a comment -

        I've also experienced this phenomenon, but thought I'd comment here instead of opening a different ticket. I'd really like this to work; I cannot place myself in the admin group. Got a workaround?

        Show
        Karl Hansen added a comment - I've also experienced this phenomenon, but thought I'd comment here instead of opening a different ticket. I'd really like this to work; I cannot place myself in the admin group. Got a workaround?
        Hide
        Karl Hansen added a comment -

        I copied an admin password from from a different account and restarted the container. Now I can login as admin.

        Show
        Karl Hansen added a comment - I copied an admin password from from a different account and restarted the container. Now I can login as admin.
        Hide
        florian1978 added a comment -

        Karl, if you're using groudatabase.xml, you can simply add your user to the admin group in there.

        Show
        florian1978 added a comment - Karl, if you're using groudatabase.xml, you can simply add your user to the admin group in there.
        Hide
        Harry Metske added a comment -

        The code looks good to me (Install.jsp).
        I tried the Dutch and German version (switching languages in the browser), and they work properly. (maybe you can use this as a workaround if you still need it.)

        It must be something in the CoreResources_en.properties......but I don't see it, maybe somebody else with sharper eyes ?

        Show
        Harry Metske added a comment - The code looks good to me (Install.jsp). I tried the Dutch and German version (switching languages in the browser), and they work properly. (maybe you can use this as a workaround if you still need it.) It must be something in the CoreResources_en.properties......but I don't see it, maybe somebody else with sharper eyes ?
        Hide
        florian1978 added a comment -

        No time for testing, but I guess I know what's the mistake:

        install.jsp.install.msg.rnd.pwd contains an apostrophe at "The account's id", which opens kind of a non-parsed section (which is, in this case, never closed). I've been stumbling over this issue while translating a couple of times yet.

        Show
        florian1978 added a comment - No time for testing, but I guess I know what's the mistake: install.jsp.install.msg.rnd.pwd contains an apostrophe at "The account's id", which opens kind of a non-parsed section (which is, in this case, never closed). I've been stumbling over this issue while translating a couple of times yet.
        Hide
        Harry Metske added a comment -

        Bingo Florian ! Message formatting a string containing a single quote fails.

        Attached the patch.

        Show
        Harry Metske added a comment - Bingo Florian ! Message formatting a string containing a single quote fails. Attached the patch.
        Hide
        Harry Metske added a comment -

        a patch so small, but still I'm able to get an error in it, here's a new one

        Show
        Harry Metske added a comment - a patch so small, but still I'm able to get an error in it, here's a new one
        Hide
        Karl Hansen added a comment -

        No, I was not using groupdatabase.xml, but yes, it does work. Thanks!

        Show
        Karl Hansen added a comment - No, I was not using groupdatabase.xml, but yes, it does work. Thanks!
        Hide
        Janne Jalkanen added a comment -

        Took the patch in 2.7.0-svn-3

        Show
        Janne Jalkanen added a comment - Took the patch in 2.7.0-svn-3
        Hide
        florian1978 added a comment -

        Maybe this should be fixed in the 2.6 code base, too. There has already been a request on the list where a new user ran into this problem.

        Show
        florian1978 added a comment - Maybe this should be fixed in the 2.6 code base, too. There has already been a request on the list where a new user ran into this problem.
        Hide
        Janne Jalkanen added a comment -

        Marked for 2.6.3 content.

        Show
        Janne Jalkanen added a comment - Marked for 2.6.3 content.
        Hide
        Janne Jalkanen added a comment -

        Reopened this for 2.6.3...

        Show
        Janne Jalkanen added a comment - Reopened this for 2.6.3...
        Hide
        Janne Jalkanen added a comment -

        Fixed in 2.6.3-rc-1

        Show
        Janne Jalkanen added a comment - Fixed in 2.6.3-rc-1
        Hide
        Jeff Garbers added a comment -

        Just as a usability matter, can I suggest that the default password be presented in a larger font to make it more obvious? There's a lot of stuff on the installation-complete page, and I completely missed my default password among all the rest of it. I just killed the user database XML file and reinstalled, once I figured out what had happened.

        Show
        Jeff Garbers added a comment - Just as a usability matter, can I suggest that the default password be presented in a larger font to make it more obvious? There's a lot of stuff on the installation-complete page, and I completely missed my default password among all the rest of it. I just killed the user database XML file and reinstalled, once I figured out what had happened.
        Hide
        Janne Jalkanen added a comment -

        +1, probably a different color too. Could you open a new issue for this, please?

        Show
        Janne Jalkanen added a comment - +1, probably a different color too. Could you open a new issue for this, please?

          People

          • Assignee:
            Unassigned
            Reporter:
            David Gao
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development