Uploaded image for project: 'ZZZ-WSO2 API Manager'
  1. ZZZ-WSO2 API Manager
  2. APIMANAGER-3335

[Publisher API] Issue creating API without visibility

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 1.7.0, 1.8.0
    • Fix Version/s: 1.9.0, 1.9.0 M3
    • Component/s: None
    • Labels:
    • Severity:
      Major
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Yes

      Description

      1. Create an API without visibility=Public parameter.
      2. Go to the publisher ---> Edit --------> update API
      3. Now you will end up with Null pointer exception.

      The reason for the issue is when we create without visibility, api manager database going to update with visibility "Public" (default value). But registry going to be update with visibility as empty.

      Fix


      If the visibility is not present in the REST call , we should set the default value as public.

        Attachments

          Activity

            People

            • Assignee:
              lakmali@wso2.com Lakmali Erandi Baminiwatta
              Reporter:
              ajithn@wso2.com Ajith Vitharana
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: