Skip to content

Fix Video Processor when TmpStore is missing#95

Merged
solverat merged 1 commit into1.xfrom
fix_94
Feb 25, 2026
Merged

Fix Video Processor when TmpStore is missing#95
solverat merged 1 commit into1.xfrom
fix_94

Conversation

@solverat
Copy link
Contributor

See #94

…saveWithoutVersion` helper, and enhance error handling logic.
@solverat solverat self-assigned this Feb 23, 2026
@github-actions
Copy link

Review Checklist

  • Target branch (1.0 for bug fixes, others 1.x)
  • Tests (if it's testable code, there should be a test for it - get help)
  • Docs (every functionality needs to be documented, see here)
  • Migration incl. install.sql (e.g. if the database schema changes, ...)
  • Upgrade notes (deprecations, important information, migration hints, ...)
  • Label
  • Milestone

@solverat solverat requested a review from benwalch February 24, 2026 11:16
@solverat solverat merged commit e3c5961 into 1.x Feb 25, 2026
13 checks passed
@solverat solverat deleted the fix_94 branch February 25, 2026 07:41
Comment on lines +330 to +339
$versioningEnabled = Model\Version::isEnabled();
if ($versioningEnabled) {
Model\Version::disable();
}

$asset->save();

if ($versioningEnabled) {
Model\Version::enable();
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
$versioningEnabled = Model\Version::isEnabled();
if ($versioningEnabled) {
Model\Version::disable();
}
$asset->save();
if ($versioningEnabled) {
Model\Version::enable();
}
$versioningEnabled = Model\Version::isEnabled();
try {
if ($versioningEnabled) {
Model\Version::disable();
}
$asset->save();
} finally {
if ($versioningEnabled) {
Model\Version::enable();
}
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@blankse Oh no, that was too close! Your proposal makes perfect sense. Could you please submit another PR for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@blankse wait, i just have seen this:

https://github.com/search?q=repo%3Aopen-dxp%2Fopendxp%20version%3A%3Aenable()&type=code

maybe we should change this globally...

@github-actions github-actions bot locked and limited conversation to collaborators Feb 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants