Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-127135

Unable to create Organizations via Headless APIs

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 7.3.X, Master
    • Fix Version/s: None
    • Labels:

      Description

      Users are unable to create a new organization via the Headless Admin User API.

      Step to Reproduce
      1. Log in as an admin.
      2. Access API (http://localhost:8080/o/api?endpoint=http://localhost:8080/o/headless-admin-user/v1.0/openapi.json).
      3. Under path /v1.0/organizations of Organizations, use the following JSON content for the Request Body:

      {
        "comment": "TEST",
        "id": "1",
        "name": "John O'Brien",
        "organizationContactInformation": {
          "emailAddresses": [
            {
              "emailAddress": "[email protected]"
            }
          ]
        }
      }
      

      4. Execute the API call.

      Actual result:
      Produces a 404 response with the following error:

      {
        "status": "NOT_FOUND",
        "title": "No Organization exists with the primary key 0"
      }
      

      Expected result:
      Produces a 200 response and a new organization is created.

      Reproduced on

      • 7.3.x: 41779df65f7c4e3da40bc2d1dc223ed43683176c
      • master: 995e9f721d6fa4913353b4f3e39037838065dd3a

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kevin.lee Kevin Lee
              Reporter:
              kevin.lee Kevin Lee
              Participants of an Issue:
              Recent user:
              Danielle Andrade (Inactive)
              Engineering Assignee:
              Javier de Arcos Velilla
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                32 weeks, 2 days ago

                  Packages

                  Version Package