You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "Kurt T Stam (JIRA)" <ju...@ws.apache.org> on 2010/12/14 17:33:09 UTC

[jira] Closed: (JUDDI-438) find_tModel by CategoryBag only returns deleted tModel

     [ https://issues.apache.org/jira/browse/JUDDI-438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kurt T Stam closed JUDDI-438.
-----------------------------

    Resolution: Fixed

Thank you Lyudmill, the code on the trunk has been patched, and I've added unit tests for it.

Cheers,

--Kurt

> find_tModel by CategoryBag only returns deleted tModel
> ------------------------------------------------------
>
>                 Key: JUDDI-438
>                 URL: https://issues.apache.org/jira/browse/JUDDI-438
>             Project: jUDDI
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.0.4
>            Reporter: Lyudmil Latinov
>            Assignee: Kurt T Stam
>             Fix For: 3.0.5
>
>
> 1. Save tModel with some KeyedReferences in CategoryBag.
> 2. Delete tModel.
> 3. Find tModel by Name + CategoryBag -> tModel is not listed in the results -> this is OK.
> 4. Find tModel by CategoryBag only -> tModel is listed in the results -> this is issue as specification states: "Any tModels hidden in this way are still accessible, via the get_registeredInfo and get_tModelDetail APIs, but are omitted from any results returned by calls to find_tModel."
> Deleted tModels are not return in find_tModel if FindTModelByCategoryQuery.java is modified from:
> public static List<?> select(EntityManager em, FindQualifiers fq, CategoryBag categoryBag, List<?> keysIn) {
> 		return findQuery.select(em, fq, categoryBag, keysIn);
> 	}
> to: 
> public static List<?> select(EntityManager em, FindQualifiers fq, CategoryBag categoryBag, List<?> keysIn) {
> 		return findQuery.select(em, fq, categoryBag, keysIn, new DynamicQuery.Parameter(TModelQuery.ENTITY_ALIAS + ".deleted", new Boolean(false), DynamicQuery.PREDICATE_EQUALS));
> 	}
> I would suggest same fix should be applied to FindTModelByCategoryGroupQuery.java

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