Bug 1496954

Summary: Can't add system permission
Product: [oVirt] ovirt-engine-sdk-java Reporter: Juan Hernández <juan.hernandez>
Component: CoreAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Radim Hrazdil <rhrazdil>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.1.3CC: bugs, juan.hernandez, lsvaty, lveyde, omachace
Target Milestone: ovirt-4.1.7Flags: rule-engine: ovirt-4.1+
Target Release: 4.1.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: java-ovirt-engine-sdk4-4.1.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-13 12:28:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Juan Hernández 2017-09-28 19:40:55 UTC
Description of problem:

The "SystemPermissionsService" class doesn't have an "add" method, as described in the specification of the API.

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

4.1.3

How reproducible:

Always.

Steps to Reproduce:

Try to compile a program containing this code:

---8<---
permissionsService.add()
    .permission(
        permission()
        .role(   
            role()   
            .name("SuperUser")
        )
        .user(
            user()
            .id("123")
        )
    )
    .send();
--->8---

Actual results:

The compilation fail because the "SystemPermissionsService" interface doesn't have the "add" method.

Expected results:

The compilation should succeed.


Additional info:

Comment 1 Radim Hrazdil 2017-10-19 16:28:03 UTC
Verified that java sdk versiom 4.1.5 compiles without any errors using command javac -cp .:sdk-4.1.5.jar AddSystemPermission.java, where AddSystemPermissions.java is taken from sdk examples and uses code suggested by Juan.