Bug 1080247 - Wrong parameter is passed to GetDomainsList query during adding a group
Summary: Wrong parameter is passed to GetDomainsList query during adding a group
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-api
Version: 3.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.4.1
Assignee: Yair Zaslavsky
QA Contact: Pavel Stehlik
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-25 02:58 UTC by Yair Zaslavsky
Modified: 2015-03-05 00:19 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-08 13:36:47 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 26054 0 None MERGED api: Wrong parameter is passed to GetDomainsListQuery Never

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.


Note You need to log in before you can comment on or make changes to this bug.