Skip to content

[stable31] fix: ensure organizationalUnit is converted before engine initialization#6132

Merged
vitormattos merged 1 commit intostable31from
backport/6127/stable31
Dec 11, 2025
Merged

[stable31] fix: ensure organizationalUnit is converted before engine initialization#6132
vitormattos merged 1 commit intostable31from
backport/6127/stable31

Conversation

@backportbot-libresign
Copy link
Copy Markdown

Backport of PR #6127

The migration was failing during upgrade to stable32 because it tried to
set organizationalUnit as a string when the property expects an array.

The issue occurred because addConfigPathToOpenSsl() (which calls getEngine()
and triggers populateInstance()) was executed before convertRootCertOuStringToArray().

This fix reorders the method calls in preSchemaChange() to convert the OU
value to an array before initializing the engine, preventing the TypeError.

Fixes the error:
TypeError: Cannot assign string to property
OCA\Libresign\Handler\CertificateEngine\AEngineHandler::$organizationalUnit
of type array

Signed-off-by: Vitor Mattos <[email protected]>
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Dec 11, 2025
@backportbot-libresign backportbot-libresign Bot added this to the Next Patch (31) milestone Dec 11, 2025
@vitormattos vitormattos merged commit b60fad6 into stable31 Dec 11, 2025
53 checks passed
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Dec 11, 2025
@vitormattos vitormattos deleted the backport/6127/stable31 branch December 11, 2025 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant