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

Fix MongoDB retrieval of date arrays

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.4
    • Fix Version/s: 7.10-HF01, 8.1
    • Component/s: Core MongoDB

      Description

      If a date array is read from the MongoDB database, type conversion is done incorrectly and crashes:

      java.lang.ArrayStoreException: java.util.GregorianCalendar
      		at org.nuxeo.ecm.core.storage.mongodb.MongoDBRepository.bsonToState(MongoDBRepository.java:255)
      		at org.nuxeo.ecm.core.storage.mongodb.MongoDBRepository.findAll(MongoDBRepository.java:682)
      		at org.nuxeo.ecm.core.storage.mongodb.MongoDBRepository.queryKeyValue(MongoDBRepository.java:606)
      		at org.nuxeo.ecm.core.storage.dbs.DBSTransactionState.getChildrenStates(DBSTransactionState.java:265)
      

      This happens since NXP-15439 (https://github.com/nuxeo/nuxeo/commit/3510f72919249f1e430162d3339266241c2db47d)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: