Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected boolean in XMLRPC one.vmpool.calculateshowback method response #3174

Closed
7 tasks
atodorov-storpool opened this issue Apr 3, 2019 · 1 comment
Closed
7 tasks

Comments

@atodorov-storpool
Copy link
Contributor

atodorov-storpool commented Apr 3, 2019

Description
Following the XMLRPC API documentation the method one.vmpool.calculateshowback should have "empty" or the error string as its second argument but boolean is returned:

<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
  <params>
    <param>
    <value>
      <array>
        <data>
          <value>
            <boolean>1</boolean>
          </value>
          <value>
            <boolean>1</boolean>
          </value>
          <value>
            <i4>0</i4>
          </value>
        </data>
      </array>
    </value>
    </param>
  </params>
</methodResponse>

To Reproduce
Do XMLRPC call for one.vmpool.calculateshowback

<?xml version="1.0"?>
<methodCall>
  <methodName>one.vmpool.calculateshowback</methodName>
  <params>
    <param>
    <value>
      <string>oneadmin:a3bb9df47c0c5e12b9f4073ef0a791098ad88c36</string>
    </value>
    </param>
    <param>
    <value>
      <i4>-1</i4>
    </value>
    </param>
    <param>
    <value>
      <i4>-1</i4>
    </value>
    </param>
    <param>
    <value>
      <i4>-1</i4>
    </value>
    </param>
    <param>
    <value>
      <i4>-1</i4>
    </value>
    </param>
  </params>
</methodCall>

And look at the method response.

Expected behavior
Expecting a string

Details

  • Affected Component: [api]
  • Hypervisor: [n/a]
  • Version: [5.8.0]

Additional context
If could be a documentation issue, though.

Progress Status

  • Branch created
  • Code committed to development branch
  • Testing - QA
  • Documentation
  • Release notes - resolved issues, compatibility, known issues
  • Code committed to upstream release/hotfix branches
  • Documentation committed to upstream release/hotfix branches
@paczerny
Copy link
Member

rsmontero pushed a commit that referenced this issue Sep 17, 2019
rsmontero pushed a commit to OpenNebula/docs that referenced this issue Sep 17, 2019
rsmontero pushed a commit that referenced this issue Aug 2, 2024
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants