Bug 1080247

Summary: Wrong parameter is passed to GetDomainsList query during adding a group
Product: [Retired] oVirt Reporter: Yair Zaslavsky <yzaslavs>
Component: ovirt-engine-apiAssignee: Yair Zaslavsky <yzaslavs>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Stehlik <pstehlik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.4CC: acathrow, gklein, iheim, juan.hernandez, oourfali, yeylon
Target Milestone: ---   
Target Release: 3.4.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-08 13:36:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yair Zaslavsky 2014-03-25 02:58:20 UTC
Description of problem:

When trying to add an ldap group to the system, the following error is obtained at engine.log -

2014-03-25 04:50:32,398 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (http--0.0.0.0-8080-4) Operation Failed: java.lang.RuntimeException: could not find matching constructor for Command class class org.ovirt.engine.core.bll.GetDomainListQuery: java.lang.RuntimeException: java.lang.RuntimeException: could not find matching constructor for Command class class org.ovirt.engine.core.bll.GetDomainListQuery
        at org.ovirt.engine.core.bll.CommandsFactory.createQueryCommand(CommandsFactory.java:103) [bll.jar:]
        at org.ovirt.engine.core.bll.Backend.createQueryCommand(Backend.java:661) [bll.jar:]
        at org.ovirt.engine.core.bll.Backend.runQueryImpl(Backend.java:478) [bll.jar:]
        at org.ovirt.engine.core.bll.Backend.runQuery(Backend.java:457) [bll.jar:]
        at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source) [:1.7.0_25]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_25]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25]
        at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar:1.1.1.Final]
        at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374) [jboss-invocation.jar:1.1.1.Final]
        at org.ovirt.engine.core.bll.interceptors.ThreadLocalSessionCleanerInterceptor.injectWebContextTo


BackendGroupsResource passes a wrong parameter to the query.
it should pass DomainsListParameters and not  VdcQueryParametersBase()


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Select a group from an ldap domain - /api/domains/xxxx/groups 
2. try to add the group (POST of the group to /api/groups)
3.

Actual results:

exception in engine.log


Expected results:

the group should be added.


Additional info:

Comment 1 Sandro Bonazzola 2014-05-08 13:36:47 UTC
This is an automated message

oVirt 3.4.1 has been released:
 * should fix your issue
 * should be available at your local mirror within two days.

If problems still persist, please make note of it in this bug report.