View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0007934 | OXID eShop (all versions) | 7. --- Other tools -------------- | public | 2026-04-28 14:28 | 2026-04-28 14:28 |
| Reporter | dennisnau | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | new | Resolution | open | ||
| Product Version | 7.5.0 | ||||
| Target Version | 7.5.0 | ||||
| Summary | 0007934: Console Tools: oe-console commands incorrectly return exit code 0 on failure | ||||
| Description | Four 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 Reproduce | Reproduction 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 Information | Since OXID eShop 7.0 | ||||
| Tags | No tags attached. | ||||
| Theme | Not defined | ||||
| Browser | Not defined | ||||
| PHP Version | Not defined | ||||
| Database Version | Not defined | ||||