Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0055531
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2024-05-20 17:412024-05-22 09:14
ReportershuehnerView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0055531: After doing obx/MMC update of backoffice (org.openbravo.client.kernel module) "npm ci" fails with Permission denied (missing +x)

DescriptionIn 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 ReproduceInstall 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 SolutionIdeally 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
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- 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 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
Powered by Mantis Bugtracker