Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
| ID | ||||||||||||
| 0055531 | ||||||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
| defect | [Openbravo ERP] A. Platform | minor | have not tried | 2024-05-20 17:41 | 2024-05-22 09:14 | |||||||
| Reporter | shuehner | View Status | public | |||||||||
| Assigned To | Triage Platform Base | |||||||||||
| Priority | normal | Resolution | open | Fixed in Version | ||||||||
| Status | new | Fix in branch | Fixed in SCM revision | |||||||||
| Projection | none | ETA | none | Target Version | ||||||||
| OS | Any | Database | Any | Java version | ||||||||
| OS Version | Database version | Ant version | ||||||||||
| Product Version | SCM revision | |||||||||||
| Merge Request Status | ||||||||||||
| Review Assigned To | ||||||||||||
| OBNetwork customer | No | |||||||||||
| Web browser | ||||||||||||
| Modules | Core | |||||||||||
| Support ticket | ||||||||||||
| Regression level | ||||||||||||
| Regression date | ||||||||||||
| Regression introduced in release | ||||||||||||
| Regression introduced by commit | ||||||||||||
| Triggers an Emergency Pack | No | |||||||||||
| Summary | 0055531: After doing obx/MMC update of backoffice (org.openbravo.client.kernel module) "npm ci" fails with Permission denied (missing +x) | |||||||||||
| Description | In backoffice repositories there are several files which intentionally have execution permissions on linux system (chmod +x) After having update backoffice modules using obx/MMC those execution permissions are lost. At least "npm ci" command fails as it seems to rely on the script being marked as executable. Example error message: > preinstall > $npm_package_config_preinstall sh: 1: modules/org.openbravo.client.kernel/build-scripts/pre-install: Permission denied Note that loosing +x permissions can also be triggered via 2nd workflow which is: - restoring a backup using the appliance openbravo-restore command. As that commands also resets/fixes all file permissions by resetting them to standard values. That conflicts by design. Note that we need to validate if zip file-format (which is what is used for obx files) is able to store those permissions (unclear) | |||||||||||
| Steps To Reproduce | Install openbravo context (i.e. 23Q4.3) Update via MMC (scan for updates to get i.e. 24Q1.x) and install those updates Prep instance having installed nodejs/npm in correct versions (i.e. NodeJS20 right now) Try running: "npm ci" on commandline | |||||||||||
| Proposed Solution | Ideally we try to remove need for the executable bit at least for the non-developer workflows (i.e. npm ci) which are used for building (i.e. pos2) That would avoid having the problem after both triggers (obx/mmc update as well as openbravo-restore) If that should not be possible alternative would be to check how to manage the 'some files have executable permissions' for both: - obx/mmc update - openbravo-restore script | |||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files | ||||||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
|
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2024-05-20 17:41 | shuehner | New Issue | |
| 2024-05-20 17:41 | shuehner | Assigned To | => Triage Platform Base |
| 2024-05-20 17:41 | shuehner | OBNetwork customer | => No |
| 2024-05-20 17:41 | shuehner | Modules | => Core |
| 2024-05-20 17:41 | shuehner | Triggers an Emergency Pack | => No |
| 2024-05-22 09:14 | rafademiguel | Issue Monitored: rafademiguel | |
| Copyright © 2000 - 2009 MantisBT Group |