Issue Details (XML | Word | Printable)

Key: DIRSTUDIO-15
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Pierre-Arnaud Marcelot
Reporter: Pierre-Arnaud Marcelot
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory Studio

In a DSML Response, the DSML writer should encode values in Base64 when needed

Created: 08/Dec/06 01:32 PM   Updated: 12/Dec/06 09:52 AM
Return to search
Component/s: studio-dsml-parser
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 12/Dec/06 09:52 AM


 Description  « Hide
In a DSML Response, the DSML writer should encode values in Base64 when needed.

For example, this generated DSML is wrong, since it contains "é". The whole value of the attribute should have been encoded as Base64.
<?xml version="1.0" encoding="UTF-8"?>
<batchResponse>
   <searchResponse>
      <searchResultEntry dn="cn=elecharny,dc=example,dc=com">
         <attr name="objectclass">
            <value>person</value>
            <value>organizationalPerson</value>
            <value>top</value>
         </attr>
         <attr name="sn">
            <value>Lécharny</value>
         </attr>
         <attr name="cn">
            <value>elecharny</value>
         </attr>
      </searchResultEntry>
      <searchResultDone>
         <resultCode code="0" descr="success"/>
      </searchResultDone>
   </searchResponse>
</batchResponse>

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Pierre-Arnaud Marcelot added a comment - 11/Dec/06 03:57 PM
Referring to the DSMLv2 specifications, Base64 values can only be found in :
    o a <response> tag in an ExtendedResponse,
    o a <value> tag in a SearchResultEntry.

Repository Revision Date User Message
ASF #486074 Tue Dec 12 09:48:40 UTC 2006 pamarcelot Resolving DIRSTUDIO-15 (In a DSML Response, the DSML Writer should encode values in Base64 when needed).
Files Changed
MODIFY /directory/sandbox/pamarcelot/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/ExtendedResponseDsml.java
MODIFY /directory/sandbox/pamarcelot/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/ParserUtils.java
MODIFY /directory/sandbox/pamarcelot/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/LdapResultDsml.java
MODIFY /directory/sandbox/pamarcelot/ldapstudio/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/reponse/SearchResultEntryDsml.java

Pierre-Arnaud Marcelot added a comment - 12/Dec/06 09:52 AM
Resolved at SVN commit r486074.

Pierre-Arnaud Marcelot made changes - 12/Dec/06 09:52 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Pierre-Arnaud Marcelot added a comment - 12/Dec/06 09:52 AM
Closed

Pierre-Arnaud Marcelot made changes - 12/Dec/06 09:52 AM
Status Resolved [ 5 ] Closed [ 6 ]