You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Henri van den bulk (JIRA)" <ji...@apache.org> on 2010/11/17 17:19:13 UTC
[jira] Created: (DIRSTUDIO-710) SearchResultEntryDsml not setting
attribute name correctly
SearchResultEntryDsml not setting attribute name correctly
----------------------------------------------------------
Key: DIRSTUDIO-710
URL: https://issues.apache.org/jira/browse/DIRSTUDIO-710
Project: Directory Studio
Issue Type: Bug
Components: studio-dsml-parser
Affects Versions: 1.5.3
Reporter: Henri van den bulk
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:
{code:xml}
<dsml:attr name="postalcode">
<dsml:value>23337</dsml:value>
</dsml:attr>
{code}
However, according to the DSML specification when I request *postalCode* it should return Camel backed result. So the valid result should be:
{code:xml}
<dsml:attr name="postalCode">
<dsml:value>23337</dsml:value>
</dsml:attr>
{code}
The issue is cause by using the getID operation instead of the getUpId in SearchResultEntryDsml.toDsml.
the following line will need to change from
{code:java}
attributeElement.addAttribute( "name", attribute.getId() );
{code}
to
{code:java}
attributeElement.addAttribute( "name", attribute.getUpId() );
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (DIRSTUDIO-710) SearchResultEntryDsml not setting
attribute name correctly
Posted by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSTUDIO-710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre-Arnaud Marcelot resolved DIRSTUDIO-710.
----------------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
Assignee: Pierre-Arnaud Marcelot
Fixed at revision 1036104.
http://svn.apache.org/viewvc?rev=1036104&view=rev
> SearchResultEntryDsml not setting attribute name correctly
> ----------------------------------------------------------
>
> Key: DIRSTUDIO-710
> URL: https://issues.apache.org/jira/browse/DIRSTUDIO-710
> Project: Directory Studio
> Issue Type: Bug
> Components: studio-dsml-parser
> Affects Versions: 1.5.3
> Reporter: Henri van den bulk
> Assignee: Pierre-Arnaud Marcelot
> Fix For: 2.0.0
>
>
> 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:
> {code:xml}
> <dsml:attr name="postalcode">
> <dsml:value>23337</dsml:value>
> </dsml:attr>
> {code}
> However, according to the DSML specification when I request *postalCode* it should return Camel backed result. So the valid result should be:
> {code:xml}
> <dsml:attr name="postalCode">
> <dsml:value>23337</dsml:value>
> </dsml:attr>
> {code}
> The issue is cause by using the getID operation instead of the getUpId in SearchResultEntryDsml.toDsml.
> the following line will need to change from
> {code:java}
> attributeElement.addAttribute( "name", attribute.getId() );
> {code}
> to
> {code:java}
> attributeElement.addAttribute( "name", attribute.getUpId() );
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRSTUDIO-710) SearchResultEntryDsml not setting
attribute name correctly
Posted by "Henri van den bulk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSTUDIO-710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933010#action_12933010 ]
Henri van den bulk commented on DIRSTUDIO-710:
----------------------------------------------
This is in package org.apache.directory.shared.dsmlv2.reponse; shared-dsml-parser-0.9.19.jar
> SearchResultEntryDsml not setting attribute name correctly
> ----------------------------------------------------------
>
> Key: DIRSTUDIO-710
> URL: https://issues.apache.org/jira/browse/DIRSTUDIO-710
> Project: Directory Studio
> Issue Type: Bug
> Components: studio-dsml-parser
> Affects Versions: 1.5.3
> Reporter: Henri van den bulk
>
> 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:
> {code:xml}
> <dsml:attr name="postalcode">
> <dsml:value>23337</dsml:value>
> </dsml:attr>
> {code}
> However, according to the DSML specification when I request *postalCode* it should return Camel backed result. So the valid result should be:
> {code:xml}
> <dsml:attr name="postalCode">
> <dsml:value>23337</dsml:value>
> </dsml:attr>
> {code}
> The issue is cause by using the getID operation instead of the getUpId in SearchResultEntryDsml.toDsml.
> the following line will need to change from
> {code:java}
> attributeElement.addAttribute( "name", attribute.getId() );
> {code}
> to
> {code:java}
> attributeElement.addAttribute( "name", attribute.getUpId() );
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] [Updated] (DIRSTUDIO-710) SearchResultEntryDsml not setting
attribute name correctly
Posted by "Pierre-Arnaud Marcelot (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSTUDIO-710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre-Arnaud Marcelot updated DIRSTUDIO-710:
---------------------------------------------
Fix Version/s: 2.0.0-M1
> SearchResultEntryDsml not setting attribute name correctly
> ----------------------------------------------------------
>
> Key: DIRSTUDIO-710
> URL: https://issues.apache.org/jira/browse/DIRSTUDIO-710
> Project: Directory Studio
> Issue Type: Bug
> Components: studio-dsml-parser
> Affects Versions: 1.5.3
> Reporter: Henri van den bulk
> Assignee: Pierre-Arnaud Marcelot
> Fix For: 2.0.0-M1, 2.0.0
>
>
> 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:
> {code:xml}
> <dsml:attr name="postalcode">
> <dsml:value>23337</dsml:value>
> </dsml:attr>
> {code}
> However, according to the DSML specification when I request *postalCode* it should return Camel backed result. So the valid result should be:
> {code:xml}
> <dsml:attr name="postalCode">
> <dsml:value>23337</dsml:value>
> </dsml:attr>
> {code}
> The issue is cause by using the getID operation instead of the getUpId in SearchResultEntryDsml.toDsml.
> the following line will need to change from
> {code:java}
> attributeElement.addAttribute( "name", attribute.getId() );
> {code}
> to
> {code:java}
> attributeElement.addAttribute( "name", attribute.getUpId() );
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira