Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-8700

ExternalIdentityConflictHandler prone to NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.20.0
    • Component/s: auth-external
    • Labels:
      None

      Description

      ExternalIdentityConflictHandler will throw NPE in case value stored in the REP_LAST_SYNCED property cannot be parsed by ISO8601.parse (and returns null) as shows the following code:

      Calendar o = parse(ours.getValue(Type.DATE));
      Calendar t = parse(theirs.getValue(Type.DATE));
      Calendar v = o.before(t) ? t : o;
      parent.setProperty(ours.getName(), v)
      

        Attachments

          Activity

            People

            • Assignee:
              angela Angela Schreiber
              Reporter:
              angela Angela Schreiber
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: