Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4828

JobManagerImpl job persisting doesn't check the created resource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • Event 3.6.0
    • None
    • Extensions
    • None

    Description

      JobManagerImpl#addJob persists the job to be started in writeJob however the result of ResourceHelper.getOrCreateResource is neither checked (!=null) nor used so it can be that the returned Resource is null or corrupted and therefore the job could not be persisted correctly, see https://github.com/apache/sling/blob/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/jobs/JobManagerImpl.java#L846.
      E.g. I've experienced some cases where a binary property of a JCR node ends up being null but that is only noticed when the job is executed, not when it's persisted.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              teofili Tommaso Teofili
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: