Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-10982

Synchronization: local doc with null life cycle state should be updated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.3.1
    • Fix Version/s: 5.3.1
    • Component/s: Synchronization

      Description

      The following code in DefaultDocumentDifferencesPolicy can raise an NPE on local documents that have a null life cycle state. This can be the case if a "partial" synchronization happens. This should never happen but some cases were detected, most certainly due to Nuxeo 5.3.1 Jetty distribution being not transactional.

      else if (modificationDate.getTimeInMillis() / 1000 != (long)tuple.getLastModification() / 1000
        || !doc.getCurrentLifeCycleState().equals(lifecycleState)) {
          tuple.setClientId(doc.getId());
          modifiedTuples.add(tuple);
      }
      

        Attachments

          Activity

            People

            • Assignee:
              ataillefer Antoine Taillefer
              Reporter:
              ataillefer Antoine Taillefer
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 4 hours
                2d 4h