Bug 1129213

Summary: Unable to add group via RESTAPI - ClassCastException
Product: [Retired] oVirt Reporter: Ondra Machacek <omachace>
Component: ovirt-engine-coreAssignee: Yair Zaslavsky <yzaslavs>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5CC: bugs, ecohen, gklein, iheim, oourfali, rbalakri, yeylon
Target Milestone: ---Keywords: Regression
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-17 12:40:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 1127623    
Bug Blocks:    
Description Flags
engine.log none

Description Ondra Machacek 2014-08-12 10:29:22 UTC
Created attachment 926019 [details]

Description of problem:

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

How reproducible:

Steps to Reproduce:
1. add domain to engine
curl -k -X POST -H "Accept: application/xml" -H "Content-Type: application/xml" \$
    -u $U -d '<group><name>brq-openldap.rhev.lab.eng.brq.redhat.com/Groups/groupOfUser2</name></group>'  https://$URL:443/api/groups

Actual results:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reason>Operation Failed</reason>
    <detail>org.ovirt.engine.core.common.queries.searchparameters cannot be cast to org.ovirt.engine.core.common.queries.directorysearchparameters</detail>

Expected results:

Additional info:

Comment 1 Sandro Bonazzola 2014-10-17 12:40:18 UTC
oVirt 3.5 has been released and should include the fix for this issue.