Bug 1496954 - Can't add system permission
Summary: Can't add system permission
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine-sdk-java
Classification: oVirt
Component: Core
Version: 4.1.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.1.7
: 4.1.5
Assignee: Juan Hernández
QA Contact: Radim Hrazdil
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-28 19:40 UTC by Juan Hernández
Modified: 2017-11-13 12:28 UTC (History)
5 users (show)

Fixed In Version: java-ovirt-engine-sdk4-4.1.5
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-13 12:28:40 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.1+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 82354 0 master MERGED Fix service inheritance 2020-02-20 04:44:59 UTC
oVirt gerrit 82358 0 sdk_4.1 MERGED Fix service inheritance 2020-02-20 04:44:59 UTC

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.


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