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

ExternalIdentityConflictHandler prone to NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.20.0
    • auth-external
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: