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

MultiDirectory tries to write in subdirectories all document fields (dirty or not)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.4.2
    • Fix Version/s: 5.5
    • Component/s: Directory

      Description

      I need to configure multiDirectory for users. This directory contains 2 sources.
      One SQL directory and one LDAP directory.
      I only want to be able to write to SQL and not to LDAP so I set the widgets as view only (see ldap-ui-contrib.xml).
      The problem is that the MultiDirectory creates a new document for each schema of the subdirectories and passes the new document to each session to update the entry.
      When the document is created, it has all fields dirty by default so the LDAPSession is trying to update all fields, even if they were not dirty on the original user object. So we get an error from LDAP because we are trying to write to it.

      Please find attached the contributions that should reproduce this.

        Attachments

        1. ldap.xml
          4 kB
          Narcis Paslaru
        2. ldap-ui-contrib.xml
          7 kB
          Narcis Paslaru
        3. ldapUser.xsd
          0.9 kB
          Narcis Paslaru
        4. multiUser.xsd
          1 kB
          Narcis Paslaru
        5. schema-contrib.xml
          0.4 kB
          Narcis Paslaru
        6. sqlUser.xsd
          0.4 kB
          Narcis Paslaru

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified