Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-9631

updateVMAffinityGroup must require one of the list parameter

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: API
    • Security Level: Public (Anyone can view this level - this is the default.)
    • Labels:
      None

      Description

      The command updateVMAffinityGroup does not check that one of the parameter is provided, therefore if both are null a NPE is raised later on in AffinityGroupServiceImpl (https://github.com/apache/cloudstack/blob/master/server/src/org/apache/cloudstack/affinity/AffinityGroupServiceImpl.java#L429).

      The command should check both cases: both list are not given, and one is given.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                marcaurele Marc-Aurèle Brothier
                Reporter:
                marcaurele Marc-Aurèle Brothier
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: