View Issue Details

IDProjectCategoryView StatusLast Update
0007934OXID eShop (all versions)7. --- Other tools --------------public2026-04-28 14:28
Reporterdennisnau Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version7.5.0 
Target Version7.5.0 
Summary0007934: Console Tools: oe-console commands incorrectly return exit code 0 on failure
DescriptionFour console commands in the OXID eShop CLI (vendor/bin/oe-console) do not signal failure via the exit code. They terminate with exit code 0 (success) even though the operation failed. The error is printed to STDOUT as <error>...</error>, but the exit code remains 0.
                                                                                                                                                                     
  This is problematic for:
  - CI/CD pipelines: Build scripts cannot detect failures and continue executing even when, for example, a license was not installed.
  - Shell scripts: Constructs like command && next-step or set -e do not work reliably.
  - Automation: Provisioning tools (Ansible, Docker setup scripts, Make targets) cannot handle failures correctly.

Affected commands and code locations
- oe:license:add
- oe:module:activate
- oe:module:deactivate
- oe:setup:demodata
Steps To ReproduceReproduction 1 - oe:license:add:
vendor/bin/oe-console oe:license:add invalid-key-test-xxx
echo "Exit Code: $?"
Expected: Exit code not 0
Actual:
Adding new license
License key wasn't applied. An exception occurred: Invalid license key
Exit Code: 0


Reproduction 2 - oe:module:activate:
vendor/bin/oe-console oe:module:activate non-existent-module-xyz
echo "Exit Code: $?"
Expected: Exit code not 0
Actual:
Module - "non-existent-module-xyz" not found.
Exit Code: 0

Reproduction 3 - oe:module:deactivate:
vendor/bin/oe-console oe:module:deactivate non-existent-module-xyz
echo "Exit Code: $?"
Expected: Exit code not 0
Actual:
Module - "non-existent-module-xyz" not found.
Exit Code: 0

Reproduction 4 - oe:setup:demodata
On a shop installation where the demodata preconditions are not met (e.g. a production database with existing data):
vendor/bin/oe-console oe:setup:demodata
echo "Exit Code: $?"
Expected: Exit code not 0
Actual:
Running precondition checks...
We found problems which prevent the execution of the command, please fix them:
- <error message>
Exit Code: 0
Additional InformationSince OXID eShop 7.0
TagsNo tags attached.
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined

Activities

There are no notes attached to this issue.