Bug 118438
Summary: | APLAWS: OQL Error creating 'Content Directory' | ||
---|---|---|---|
Product: | [Retired] Red Hat Web Application Framework | Reporter: | Jon Orris <jorris> |
Component: | persistence | Assignee: | Archit Shah <archit.shah> |
Status: | CLOSED WONTFIX | QA Contact: | Jon Orris <jorris> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | nightly | CC: | berrange |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-12-11 15:50:06 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jon Orris
2004-03-16 18:41:21 UTC
P4 Client is jorris-goodeats-aplaws. project.xml is: <ccm:build> <ccm:application name="core"/> <ccm:application name="cms"/> <ccm:application name="article"/> <ccm:application name="mparticle"/> <ccm:application name="agenda" /> <ccm:application name="event" /> <ccm:application name="job"/> <ccm:application name="legalnotice" /> <ccm:application name="minutes" /> <ccm:application name="newsitem" /> <ccm:application name="pressrelease" /> <ccm:application name="service" /> <ccm:application name="formitem" /> <ccm:application name="formsectionitem" /> <ccm:application name="cms-populate" /> <ccm:application name="cms-internal" /> <ccm:application name="relatedlink" /> <ccm:application name="fileattachment" /> <ccm:application name="util" prettyName="util"/> <ccm:application name="simplesurvey" prettyName="simplesurvey"/> <ccm:application name="rss" prettyName="rss"/> <ccm:application name="portal" prettyName="portal"/> <ccm:application name="freeform" prettyName="freeform"/> <ccm:application name="dublin" prettyName="Content Asset Dublin Core"/> <ccm:application name="search" prettyName="search"/> <ccm:application name="shortcuts" prettyName="shortcuts"/> <ccm:application name="navigation" prettyName="navigation"/> <ccm:application name="subsite" prettyName="subsite"/> <ccm:application name="xmlfeed" prettyName="xmlfeed"/> <ccm:application name="atoz" prettyName="A to Z"/> <ccm:application name="aplaws" prettyName="APLAWS Custom"/> <ccm:application name="terms" prettyName="Terms"/> <ccm:appliication name="forum" prettyName="Forum"/> </ccm:build> Same error occurs when attempting to create a Content Item List. Also 'Object List'. The code in question is thus: DomainCollection cats = new DomainCollection( SessionManager.getSession().retrieve(Category.BASE_DATA_OBJECT_TYPE) ); cats.addFilter("defaultAncestors like :ancestors"); cats.setParameter("ancestors", ((String)DomainServiceInterfaceExposer .get(root, "defaultAncestors")) + "%"); So it looks like a persistence problem, although I suspect it'll go away if I call 'set' on the Filter object returned by addFilter. that last comment is correct. The documentation suggests that setParameter on Domain/DataQuery is limited to setting parameters used in named queries and not in the filter. In the 6.0.x implementation, the filter bindings would internally get converted to calls to setParameter. In 5.2.x, I think the above code would not work because filter parameters had a prefix so they were in a different namespace. I think a reasonable plan is to fix the util.Categorization code as suggested and make this bug into a non-blocking request for backwards compatibility between 6.1.x and 6.0.x c.a.london.util.Categorization has been fixed, however, we may encounter others instances of this bug, because, (I for one) remember writing code like this in quite a few other places. There are 350 uses of setParameter in APLAWS codetree, some of which may be broken. dan@camden$ find */src -name '*.java' | xargs grep setParameter | wc -l 349 dan@camden$ I can't think of an easy way to narrow down this list to something its feasible to examine by hand.... fixed as part of oql/qgen work QA_READY has been deprecated in favor of ON_QA. Please use ON_QA in the future. Moving to ON_QA. |