Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1213

Don't compare references but values

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0-beta3
    • Fix Version/s: 3.0-beta3
    • Labels:
      None
    • Environment:
      All

      Description

      JCRUser compares references instead of values for a String property:

      public boolean verifyPassword(String pass) {
      final boolean result;
      if (pass == null)

      { result = false; }

      else

      { result = hashedSaltedPassword == hashPassword(userName, pass); }

      return result;
      }

        Attachments

          Activity

            People

            • Assignee:
              felixk Felix Knecht
              Reporter:
              felixk Felix Knecht
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: