Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-2596

Correctly handle empty/null directory attribute values when using Oracle

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Confluence had a bug where editing a directory would cause a data integrity violation exception on Oracle. This was because the value would get pulled in as a null (since ""==null in Oracle) and when it tried to update the value to "", it would treat it as a new row and try to do an insert again, which would fail. As a quick fix, I added code the the Embedded Crowd Hibernate 2 layer that removed all null and blank string directory attributes.

      However, in a code review, Matt R pointed out that the EMBCWD code was making assumptions about the DirectoryImpl implementation (such as attributes being a mutable map) and suggested I instead move the code down to DirectoryImpl in CWD.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nbhawnani Niraj Bhawnani
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: