Directory Studio
  1. Directory Studio
  2. DIRSTUDIO-710

SearchResultEntryDsml not setting attribute name correctly

    Details

      Description

      When the DSML repsone creation is converting the LDAP request to a DSML response the attribute names are not set correctly. Attribute name should be Camel case for the name field. Below is an example of what is being returned:

      			<dsml:attr name="postalcode">
      				<dsml:value>23337</dsml:value>
      			</dsml:attr>
      

      However, according to the DSML specification when I request postalCode it should return Camel backed result. So the valid result should be:

      			<dsml:attr name="postalCode">
      				<dsml:value>23337</dsml:value>
      			</dsml:attr>
      

      The issue is cause by using the getID operation instead of the getUpId in SearchResultEntryDsml.toDsml.
      the following line will need to change from

                 attributeElement.addAttribute( "name", attribute.getId() );
      

      to

                 attributeElement.addAttribute( "name", attribute.getUpId() );
      

        Issue Links

          Activity

          Hide
          Henri van den bulk added a comment -

          This is in package org.apache.directory.shared.dsmlv2.reponse; shared-dsml-parser-0.9.19.jar

          Show
          Henri van den bulk added a comment - This is in package org.apache.directory.shared.dsmlv2.reponse; shared-dsml-parser-0.9.19.jar
          Hide
          Pierre-Arnaud Marcelot added a comment -

          Hi Henri,

          Thanks for reporting the issue and taking the time to propose a fix.

          I opened a separate issue on the specific JIRA project for 'Shared', where the DSML code is located.

          Show
          Pierre-Arnaud Marcelot added a comment - Hi Henri, Thanks for reporting the issue and taking the time to propose a fix. I opened a separate issue on the specific JIRA project for 'Shared', where the DSML code is located.
          Hide
          Pierre-Arnaud Marcelot added a comment -
          Show
          Pierre-Arnaud Marcelot added a comment - Fixed at revision 1036104. http://svn.apache.org/viewvc?rev=1036104&view=rev
          Hide
          Pierre-Arnaud Marcelot added a comment -

          Version 2.0.0 M1 has been released.

          Closing the issue.

          Show
          Pierre-Arnaud Marcelot added a comment - Version 2.0.0 M1 has been released. Closing the issue.

            People

            • Assignee:
              Pierre-Arnaud Marcelot
              Reporter:
              Henri van den bulk
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development