[IMPLEMENTED] App transfer to team via API (using default admin credentials)

I’m submitting a…

  • [ x ] Bug report

Current behavior

On trying to transfer one app to a team, i have the next response:

{
“message”: “Validation error”,
“traceId”: “00-d36ada4b4dc2bf7980d8c40d62a46bd4-d39fd94926ce1329-01”,
“type”: “https://www.rfc-editor.org/rfc/rfc7231#section-6.5.1”,
“details”: [
“The team does not exist.”
],
“statusCode”: 400
}

PS: Im using a default admin credentials, created from appsettings.json configuration: (IDENTITY__ADMINCLIENTID and IDENTITY__ADMINCLIENTSECRET)

Checking the source code, I found something about current identifier linked with the team (maybe my credentials doesnt have a linked contributor):

        if (team == null || !team.Contributors.ContainsKey(command.Actor.Identifier))
        {
            e(T.Get("apps.transfer.teamNotFound"));
        }

Expected behavior

My docker configuration (with additional CLIENTID and CLIENTSECRET):

squidex_squidex:
image: “squidex/squidex:7”
environment:
- URLS__BASEURL=https://${SQUIDEX_DOMAIN}:5000
- EVENTSTORE__TYPE=MongoDB
- EVENTSTORE__MONGODB__CONFIGURATION=mongodb://squidex_mongo
- STORE__MONGODB__CONFIGURATION=mongodb://squidex_mongo
- IDENTITY__ADMINEMAIL=${SQUIDEX_ADMINEMAIL}
- IDENTITY__ADMINPASSWORD=${SQUIDEX_ADMINPASSWORD}
- IDENTITY__ADMINCLIENTID=${SQUIDEX_ADMINCLIENTID}
- IDENTITY__ADMINCLIENTSECRET=${SQUIDEX_ADMINCLIENTSECRET}
- IDENTITY__GOOGLECLIENT=${SQUIDEX_GOOGLECLIENT}
- IDENTITY__GOOGLESECRET=${SQUIDEX_GOOGLESECRET}
- IDENTITY__GITHUBCLIENT=${SQUIDEX_GITHUBCLIENT}
- IDENTITY__GITHUBSECRET=${SQUIDEX_GITHUBSECRET}
- IDENTITY__MICROSOFTCLIENT=${SQUIDEX_MICROSOFTCLIENT}
- IDENTITY__MICROSOFTSECRET=${SQUIDEX_MICROSOFTSECRET}
- ASPNETCORE_URLS=http://+:5000

Minimal reproduction of the problem

  • Configure application with default admin Client ID and Client Secret (from configurations)
  • Create an App
  • Create a Team
  • Try to transfer the App to the Team:
    [PUT] {{baseUrl}}/api/apps/:app/team
    [BODY]:
    {
    “teamId”: “40fd370f-2c68-4892-b3da-28e4bc5ce2d6”
    }

Environment

  • [ x ] Self hosted with docker

Version: 7.3.0

Browser:

  • [ x ] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Yes, right now there is no special casing for admins. I can add that I think.

This topic was automatically closed after 2 days. New replies are no longer allowed.