Skip to content

Issue 6507 - changelog modifiers operation not displayed in dbscan #6511

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

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

progier389
Copy link
Contributor

@progier389 progier389 commented Jan 17, 2025

Problem: when dbscan dumps the changelog, it does not display modify operation modifier sub operation
(i.e: add/delete/replace) on the specified attribute

Solution:
Use a format similar to the ldif one:

    suboperation: type
    type: value
    ...
    -

but only when dumpoing a modify operation : add and modrdn still use the

   type:value
   ...

format

Issue: #6507

Reviewd by: @mreynolds389, @tbordaz (Thanks!)

@progier389 progier389 linked an issue Jan 17, 2025 that may be closed by this pull request
Copy link
Contributor

@tbordaz tbordaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as well

@@ -516,6 +521,10 @@ _cl5ReadMod(char **buff)
val_count = ntohl(val_count);
pos += sizeof(uint32_t);

op &= LDAP_MOD_OP;
if (print_op && op < PR_ARRAY_SIZE(ops)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be the case but just for safety you may check that op>0

@progier389 progier389 merged commit 3f1c3c3 into 389ds:main Jan 20, 2025
199 checks passed
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.

changelog modifiers operation not displayed in dbscan
3 participants