CloudStack
  1. CloudStack
  2. CLOUDSTACK-274

Two error codes mapped to same value in API

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: pre-4.0.0
    • Fix Version/s: 4.1.0
    • Component/s: API
    • Security Level: Public (Anyone can view this level - this is the default.)
    • Labels:
      None

      Description

      In BaseCmd.java, these error codes are defined:

      public static final int INTERNAL_ERROR = 530;
      public static final int ACCOUNT_ERROR = 531;
      public static final int ACCOUNT_RESOURCE_LIMIT_ERROR = 532;
      public static final int INSUFFICIENT_CAPACITY_ERROR = 533;
      public static final int RESOURCE_UNAVAILABLE_ERROR = 534;
      public static final int RESOURCE_ALLOCATION_ERROR = 534;
      public static final int RESOURCE_IN_USE_ERROR = 536;
      public static final int NETWORK_RULE_CONFLICT_ERROR = 537;

      Note there are two values for 534, and none for 535 - looks like a copy & paste error.

        Activity

        Hide
        Min Chen added a comment -

        Fixed in commit 4ad38f8afb51ed54a22e5ccdbd72589c6681c273

        Show
        Min Chen added a comment - Fixed in commit 4ad38f8afb51ed54a22e5ccdbd72589c6681c273
        Hide
        Chip Childers added a comment -

        closing since 4.1.0 is now released

        Show
        Chip Childers added a comment - closing since 4.1.0 is now released

          People

          • Assignee:
            Min Chen
            Reporter:
            Kenneth Bell
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development