Uploaded image for project: 'aaa'
  1. aaa
  2. AAA-128

domainid should not be accepted as input when creating a domain

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 8382

    Description

      email thread here:

      https://lists.opendaylight.org/pipermail/aaa-dev/2017-May/001352.html

      the create is allowing us to pass domainid when creating a domain, but
      that id would not be used anyway as it appears to be the same as the
      name.

      example:

      curl -u "admin:admin" -X POST -d '

      {"description":"karaf4 was not easy","name":"carbon_is_late","domainid":"ThisWillNotBeUsed","enabled":"true"}

      ' -H "Content-Type:application/json" http://$ODL:8181/auth/v1/domains

      {"domainid":"carbon_is_late","name":"carbon_is_late","description":"karaf4 was not easy","enabled":true}

      curl -u "admin:admin" http://$ODL:8181/auth/v1/domains | python -m json.tool

      {
      "domains": [

      { "description": "default odl sdn domain", "domainid": "sdn", "enabled": true, "name": "sdn" }

      ,

      { "description": "karaf4 was not easy", "domainid": "carbon_is_late", "enabled": true, "name": "carbon_is_late" }

      ]
      }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rgoulding Ryan Goulding
            jluhrsen Jamo Luhrsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: