Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat NULL values in mapped tables as undefined #202

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pavelhoral
Copy link
Member

This changes the way how NULL values in mapped table columns are handled - all NULL values are being treated as undefined JSON values.

This change makes sense as it aligns generic table behavior with the explicitly mapped behavior. However this also makes it impossible to actually save null values, but supporting undefined is definitely a more reasonable default. This needs to be properly tested before merging (i.e. no phantom changes when working with Admin UI and during synchronization).

@pavelhoral
Copy link
Member Author

Played with this change a bit and there are quite a lot of corner cases that needs to be properly addressed (mainly in relation to phantom changes). For example right now there is no easy way to unset a property during synchronization process from within the mapping file. Also we probably need to make sure there is a way how to make the JDBC repo behave in a legacy compatible way to not break existing deployments.

@pavelhoral
Copy link
Member Author

Just to add what was the LEGACY behavior even before the recent JDBC repo refactor... NULLs were alway nulls - https:/WrenSecurity/wrenidm/blob/6.1.x/openidm-repo-jdbc/src/main/java/org/forgerock/openidm/repo/jdbc/impl/ExplicitResultSetMapper.java#L116 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant