Skip to content

PLAT-26004: drm key management policy set from drop folder xml upload… - #14089

Merged
noahsol30 merged 3 commits into
West-23.5.0from
West-23.4.0-PLAT-26004
Aug 3, 2026
Merged

PLAT-26004: drm key management policy set from drop folder xml upload…#14089
noahsol30 merged 3 commits into
West-23.5.0from
West-23.4.0-PLAT-26004

Conversation

@noahsol30

Copy link
Copy Markdown
Contributor

… flow and distribution

Pull Request Checklist

Please complete the following before submitting:

General notes -

  • I have tested the changes locally.
  • I have written unit tests where applicable.
  • I have updated documentation where needed.
  • I have added comments to complex code.
  • This PR follows the coding style guidelines.
  • I have updated release notes with new feature

New Kaltura Types

  • I have created new clients
  • I have notified related apps - KMCNG / KMS / EP .... about new clients

New Kaltura Services / Actions

  • I have added a deployment script

Questions

  1. What is the purpose of this PR?

    • Enter your answer here
  2. Does this change affect production code or infrastructure?

    • Yes
    • No
  3. If yes, what is the rollback plan?

    • Enter your answer here

@github-actions

Copy link
Copy Markdown

@github-copilot suggest

<xs:appinfo>
<example>
<drmConfiguration>
<keyManagementPolicy>3</keyManagementPolicy>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why 3?

if ($objectType == KeyManagementPolicyObjectType::PARTNER)
{
$partner = $this->getValidatedPartner($objectId);
$partner->setDrmKeyManagementPolicy($keyManagementPolicy->keyManagementPolicy);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on this branch case, you still need to validate the propert they are trying to set as the partner policy is not null (0 explicitly should be allowed)

protected function setDrmKeyManagementPolicyForEntry(entry $entry, KalturaKeyManagementPolicy $keyManagementPolicy)
{
$partner = $entry->getPartner();
$partnerDrmKeyManagementPolicy = $partner->getDrmKeyManagementPolicy();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add null check before refferencing the partner

@noahsol30
noahsol30 changed the base branch from West-23.4.0 to West-23.5.0 August 3, 2026 07:29
@noahsol30
noahsol30 merged commit b9ccec0 into West-23.5.0 Aug 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants