-
Suggestion
-
Resolution: Unresolved
-
None
-
None
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.
- is related to
-
CWD-3216 Crowd creates NULL DB values for any blank text box in a directory configuration
-
- Closed
-
- relates to
-
CONFSERVER-22469 Editing "User Directories" configuration is not possible for ORACLE DB user due to DataIntegrityViolationException
-
- Closed
-
[CWD-2596] Correctly handle empty/null directory attribute values when using Oracle
Workflow | Original: JAC Suggestion Workflow [ 3388528 ] | New: JAC Suggestion Workflow 3 [ 3630591 ] |
Workflow | Original: Simplified Crowd Development Workflow v2 [ 1390348 ] | New: JAC Suggestion Workflow [ 3388528 ] |
Issue Type | Original: Improvement [ 4 ] | New: Suggestion [ 10000 ] |
Status | Original: Verified [ 10005 ] | New: Under Consideration [ 11774 ] |
Link | New: This issue relates to CONFCLOUD-22469 [ CONFCLOUD-22469 ] |
Workflow | Original: Crowd Development Workflow v2 [ 338680 ] | New: Simplified Crowd Development Workflow v2 [ 1390348 ] |
Assignee | Original: Niraj Bhawnani [ nbhawnani ] |
Attachment | New: CWD-2596 - CR-CWD-373 Crowd Oracle Directory Editing.patch [ 50533 ] |
Status | Original: Needs Verification [ 10004 ] | New: Verified [ 10005 ] |
Issue Type | Original: Bug [ 1 ] | New: Improvement [ 4 ] |
Summary | Original: Don't store blank strings and null directory attribute values | New: Correctly handle empty/null directory attribute values when using Oracle |
Link |
New:
This issue relates to |