Skip to content

[Bug in SDK]: PortalLicenseFamily enum does not support "demo" license type — 500 on install #371

@ch3rr1e

Description

@ch3rr1e

version(s) affected

dev-dev (hash c402fdd)

Description

When installing an application on a Bitrix24 portal with a demo license, the app.info REST API returns "LICENSE_FAMILY": "demo".

The PortalLicenseFamily enum in b24phpsdk does not include demo as a valid backing value, which causes a fatal error during installation:

"demo" is not a valid backing value for enum Bitrix24\SDK\Application\PortalLicenseFamily

How to reproduce

  1. Create a demo portal at bitrix24.ru (license type: demo)
  2. Register a local application
  3. Install the application - the serverSide step calls app.info
    SDK tries to parse LICENSE_FAMILY via PortalLicenseFamily::from('demo') → throws ValueError

Possible Solution

Add "demo" case to the PortalLicenseFamily enum.

Additional Context

Using in https://github.com/bitrix-tools/b24-ai-starter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug in SDKSomething isn't working in SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions