Skip to content

Schema lib389 object is not keeping custom schema data upon editing #6276

Description

@droideck

Description of problem:
While editing a custom schema attribute, lib389 and Web UI is not keeping some defined data:

  1. if the "Description" is updated, the "OID" is reverted to "<ATTRIBUTE_NAME>-oid"

  2. if the "OID" is updated, then the "Description" field shows "No description".

How reproducible:
Always.

Steps to Reproduce:

  1. Create a custom attribute ( Schema tab / Attributes tab / "Add Attribute" button )
  2. Edit the newly created attribute and change either the description or the OID
  3. Save
  4. Only the updated field is kept. The non-updated field is reverted to its default value.

Actual results:
Custom datum is lost.

Expected results:
Keep all custom values.

Additional info:

  1. A workaround is to update both fields at the same time:

Set the two fields ( Description and OID ) to dummy values and save.
Edit the attribute again
Set the two fields to the correct values and save
2) JS Console:

CMD: cmdOperationAttribute: Do the replace operation on Attribute ==> dsconf -j ldapi://%2fvar%2frun%2fslapd-localhost.socket schema attributetypes replace customAttr --syntax 1.3.6.1.4.1.1466.115.121.1.15 --single-value --user-mod --oid 1.2.3.4

CMD: cmdOperationAttribute: Do the replace operation on Attribute ==> dsconf -j ldapi://%2fvar%2frun%2fslapd-localhost.socket schema attributetypes replace customAttr --syntax 1.3.6.1.4.1.1466.115.121.1.15 --single-value --user-mod --desc customAttr_Desc

Metadata

Metadata

Assignees

Labels

needs triageThe issue will be triaged during scrum

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions