You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "jzwang (JIRA)" <ju...@ws.apache.org> on 2007/02/12 11:02:05 UTC

[jira] Created: (JUDDI-98) Result of sort by date is in reversed order in searching function.

Result of sort by date is in reversed order in searching function.
------------------------------------------------------------------

                 Key: JUDDI-98
                 URL: https://issues.apache.org/jira/browse/JUDDI-98
             Project: jUDDI
          Issue Type: Bug
          Components: Apache Scout Requests
    Affects Versions: 0.9rc4
         Environment: OS: Generic
jdk15 
 juddi-0.9rc4-src
            Reporter: jzwang
         Assigned To: Steve Viens


1. Start Sybase EAServer with jdk15
2. Open a new browser and visit console with url http://hostname:portnumber/consle. 
3. Login with admin username with password.
4. Select any one of the default Web Service Registries, for e.g. UDDI on localhost.
5. Connect it and add published business test1 and test2 and test3 one by one.
6. Select Search and Click on the Search by Business Tab on the Property Sheet
Enter the search criteria to be "test%"
Check "Sort by Date" and select Descending order
See the results list all the newly added published business but in ascending order. 
It should display as test3, test2 and test1 but it displays from top to bottom as test1, test2 and test3. 

The issue is in three code file.
org/apache/juddi/datastore/jdbc/FindServiceByNameQuery.java
org/apache/juddi/datastore/jdbc/FindTModelByNameQuery
org/apache/juddi/datastore/jdbc/FindBusinessByNameQuery

Fix is here.
-----[deleted/moved 253 after 252 (now at 255)]-----
<         sql.append("S.LAST_UPDATE ASC,N.NAME ASC");
-----[deleted/moved 254 after 252 (now at 254)]-----
<       else
-----[after 255 inserted/moved 254 (was at 254)]-----
>       else
-----[after 255 inserted/moved 255 (was at 253)]-----
>         sql.append("S.LAST_UPDATE ASC,N.NAME ASC");

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-dev-help@ws.apache.org


[jira] Closed: (JUDDI-98) Result of sort by date is in reversed order in searching function.

Posted by "Kurt Stam (JIRA)" <ju...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/JUDDI-98?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kurt Stam closed JUDDI-98.
--------------------------

       Resolution: Fixed
    Fix Version/s: 0.9

Thank you jzwang, I've applied the patch

> Result of sort by date is in reversed order in searching function.
> ------------------------------------------------------------------
>
>                 Key: JUDDI-98
>                 URL: https://issues.apache.org/jira/browse/JUDDI-98
>             Project: jUDDI
>          Issue Type: Bug
>          Components: Apache Scout Requests
>    Affects Versions: 0.9rc4
>         Environment: OS: Generic
> jdk15 
>  juddi-0.9rc4-src
>            Reporter: jzwang
>            Assignee: Steve Viens
>             Fix For: 0.9
>
>
> 1. Start Sybase EAServer with jdk15
> 2. Open a new browser and visit console with url http://hostname:portnumber/consle. 
> 3. Login with admin username with password.
> 4. Select any one of the default Web Service Registries, for e.g. UDDI on localhost.
> 5. Connect it and add published business test1 and test2 and test3 one by one.
> 6. Select Search and Click on the Search by Business Tab on the Property Sheet
> Enter the search criteria to be "test%"
> Check "Sort by Date" and select Descending order
> See the results list all the newly added published business but in ascending order. 
> It should display as test3, test2 and test1 but it displays from top to bottom as test1, test2 and test3. 
> The issue is in three code file.
> org/apache/juddi/datastore/jdbc/FindServiceByNameQuery.java
> org/apache/juddi/datastore/jdbc/FindTModelByNameQuery
> org/apache/juddi/datastore/jdbc/FindBusinessByNameQuery
> Fix is here.
> -----[deleted/moved 253 after 252 (now at 255)]-----
> <         sql.append("S.LAST_UPDATE ASC,N.NAME ASC");
> -----[deleted/moved 254 after 252 (now at 254)]-----
> <       else
> -----[after 255 inserted/moved 254 (was at 254)]-----
> >       else
> -----[after 255 inserted/moved 255 (was at 253)]-----
> >         sql.append("S.LAST_UPDATE ASC,N.NAME ASC");

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-dev-help@ws.apache.org