Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-205

unrecognized attributes during normalization should not throw exceptions

Watch issueLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • pre-1.0
    • pre-1.0
    • ldap
    • None

    Description

      During the normalization process of a DN sometimes its best to not freak out and blow a stack trace when an attribute is not recognized. In this case a best guess is OK. Let's let the schema handling catch the problem which is at a higher level. For now normalized Dn parsers should just leave the value as is if the attribute is unrecognized.

      Why is this ok? Again the task of spotting undefined attributes is not the job of the DnParser. It should perform a best guess normalization if it can using schema info. If this info does not exist the parse should not be prevented. This may change in the future when we separate parsing from normalization.

      This means we need to check if a NameComponentNormalizer sees an attribute as defined or not. If not then we bypass normalization for the value. If so we normalize. We need to add an isDefined method to NCN and modify the DnParser to adapt to this situation.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            akarasulu Alex Karasulu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment