Directory ApacheDS
  1. Directory ApacheDS
  2. DIRSERVER-1717

Non existing AT errors ('x-read-only' and 'x-enabled') show up in the logs when adding new schema elements

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M6
    • Fix Version/s: 2.0.0-M9
    • Component/s: None
    • Labels:
      None

      Description

      When adding new schema elements to ApacheDS, two ERROR messages show up in the logs for each added schema element.

      In the case of 2 attribute types, here are the logs:
      [17:14:31] ERROR [org.apache.directory.shared.ldap.model.entry.DefaultEntry] - ERR_04269 ATTRIBUTE_TYPE for OID x-read-only does not exist!
      [17:14:31] ERROR [org.apache.directory.shared.ldap.model.entry.DefaultEntry] - ERR_04269 ATTRIBUTE_TYPE for OID x-enabled does not exist!
      [17:14:31] ERROR [org.apache.directory.shared.ldap.model.entry.DefaultEntry] - ERR_04269 ATTRIBUTE_TYPE for OID x-read-only does not exist!
      [17:14:31] ERROR [org.apache.directory.shared.ldap.model.entry.DefaultEntry] - ERR_04269 ATTRIBUTE_TYPE for OID x-enabled does not exist!

      These messages should not be logged as ERROR but rather as WARNING

      1. test.ldif
        2 kB
        Pierre-Arnaud Marcelot

        Activity

        Hide
        Emmanuel Lecharny added a comment -

        A sample demonstrating the issue could help here.

        Show
        Emmanuel Lecharny added a comment - A sample demonstrating the issue could help here.
        Hide
        Pierre-Arnaud Marcelot added a comment -

        Simply run an ApacheDS server and import the following attached test schema containing a single dumb attribute type.

        The LDIF import log is successful and the entries are inserted in the schema partition, but the server logs the following:
        [18:27:13] ERROR [org.apache.directory.shared.ldap.model.entry.DefaultEntry] - ERR_04269 ATTRIBUTE_TYPE for OID x-read-only does not exist!
        [18:27:13] ERROR [org.apache.directory.shared.ldap.model.entry.DefaultEntry] - ERR_04269 ATTRIBUTE_TYPE for OID x-enabled does not exist!

        Show
        Pierre-Arnaud Marcelot added a comment - Simply run an ApacheDS server and import the following attached test schema containing a single dumb attribute type. The LDIF import log is successful and the entries are inserted in the schema partition, but the server logs the following: [18:27:13] ERROR [org.apache.directory.shared.ldap.model.entry.DefaultEntry] - ERR_04269 ATTRIBUTE_TYPE for OID x-read-only does not exist! [18:27:13] ERROR [org.apache.directory.shared.ldap.model.entry.DefaultEntry] - ERR_04269 ATTRIBUTE_TYPE for OID x-enabled does not exist!
        Hide
        Emmanuel Lecharny added a comment -

        Th x-read-only and x-enabled AttributeType are not declared in the schemas.

        We probably don't need the x-enabled, as we already have the m-enabled attributeType.
        The x-read-only can be added easily.

        Show
        Emmanuel Lecharny added a comment - Th x-read-only and x-enabled AttributeType are not declared in the schemas. We probably don't need the x-enabled, as we already have the m-enabled attributeType. The x-read-only can be added easily.
        Show
        Emmanuel Lecharny added a comment - Fixed with http://svn.apache.org/viewvc?rev=1397640&view=rev

          People

          • Assignee:
            Unassigned
            Reporter:
            Pierre-Arnaud Marcelot
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development