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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]