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

Support Multi-values fields in Directories (for MongoDB)

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Core MongoDB
    • Tags:
    • Story Points:
      3

      Description

      Multi-values fields are not supported in directories (unless they are references to another directory).

      For instance, when trying to update a Multi-valued Directory field of a schema, we get the following error:

      ERROR [WebEngineExceptionMapper] org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class [Ljava.lang.String;.

      triggered from org.nuxeo.directory.mongodb.MongoDBSession.updateEntryWithoutReferences(MongoDBSession.java:211)
      https://github.com/nuxeo/nuxeo/blob/master/nuxeo-services/nuxeo-platform-directory/nuxeo-platform-directory-mongodb/src/main/java/org/nuxeo/directory/mongodb/MongoDBSession.java#L211

      The MongoDB storage model could allow it, but our code currently doesn't take this use case into account.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              egiuly Estelle Giuly
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: