You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "Steve Viens (JIRA)" <ju...@ws.apache.org> on 2005/02/02 04:06:25 UTC

[jira] Resolved: (JUDDI-50) Pb with appendOrderBy() method of juddi/datastore/jdbc/FindServiceByNameQuery?

     [ http://issues.apache.org/jira/browse/JUDDI-50?page=history ]
     
Steve Viens resolved JUDDI-50:
------------------------------

     Resolution: Fixed
    Fix Version: 0.9

As indicated in this issue, when only the "sortByNameAsc" find qualifier is specified, BusinessList, ServiceList and TModelList were not being returned in the correctly sorted order (ascending by name). 

I've applied the attached patch to FindServiceByName and made (very) similar fixes to FindBusinessByName and FindTModelByNAme.

Thanks to Mathieu Peltier for identifying this issue and supplying a patch. 

> Pb with appendOrderBy() method of juddi/datastore/jdbc/FindServiceByNameQuery?
> ------------------------------------------------------------------------------
>
>          Key: JUDDI-50
>          URL: http://issues.apache.org/jira/browse/JUDDI-50
>      Project: jUDDI
>         Type: Bug
>  Environment: Latest jUDDI CVS version (2005-01-21) deployed in JOnAS
>     Reporter: Mathieu Peltier
>     Assignee: Steve Viens
>      Fix For: 0.9
>  Attachments: FindServiceByNameQuery_patch.txt
>
> It seems that there is a bug in ws-juddi/src/java/org/apache/juddi/datastore/jdbc/FindServiceByNameQuery.java#appendOrderBy(DynamicQuery,FindQualifiers) method.
> If:
> qualifiers.sortByNameAsc=true
> qualifiers.sortByNameDesc=false
> qualifiers.sortByDateAsc=false
> qualifiers.sortByDateDesc=false
> -> the generated ORDER BY clause is not ORDER BY N.NAME ASC

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira