You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Application update does not clean up old files #7058
When an application update is applied, files and directories from the previous application image are not removed. This bug was discovered in an app pre-release version, but it affects any NS8 application.
Old files that remain can cause unexpected issues in all applications.
Steps to reproduce
Install ghcr.io/nethserver/nextcloud:0.0.8
Update to ghcr.io/nethserver/nextcloud:1.1.8 (latest)
Expected behavior
The file located at AGENT_INSTALL_DIR/actions/configure-module/50migrate should not exist, as version 1.1.8 does not include it.
Actual behavior
The file remains present. Below is a file listing after the update:
The file ./actions/configure-module/70ldap must be removed by 2nd update.
removed './actions/configure-module/70ldap'
Files (symlinks) from 0.0.7 ./actions/restore-module/30traefik and ./actions/restore-module/40systemd are NOT removed because they were installed without this bug fix.
Test case 2
Run extract-image concurrently, only one instance will complete successfully.
Activity
DavidePrincipi commentedon Oct 10, 2024
List of repositories that may need a fix
Merge pull request #787 from NethServer/bug-7058
DavidePrincipi commentedon Jan 23, 2025
The merged code resolves the bug for future module updates. It is effective starting from the 2nd update after the fixed core has been installed.
Test case 1
Simulate the image extraction for some application on a stable core release, e.g. 3.4.2 (latest). During development I tested Nextcloud.
From Nextcloud's history I found that at some point a file was removed. E.g.
Enter the app environment
Update core to 3.4.3-dev.2, then simulate the image extraction
Expectations:
The file
./actions/configure-module/70ldapmust be removed by 2nd update.Files (symlinks) from 0.0.7
./actions/restore-module/30traefikand./actions/restore-module/40systemdare NOT removed because they were installed without this bug fix.Test case 2
Run extract-image concurrently, only one instance will complete successfully.
17 remaining items
fix: extract-image regression (#791)
DavidePrincipi commentedon Jan 24, 2025
Released in https://github.com/NethServer/ns8-core/releases/tag/3.4.4
fix(delete-certificate): output validator
fix(delete-certificate): output validator (#94)
fix(delete-certificate): return JSON output
code-review
feat: certificate-changed event handler (#63)
Remove placeholder files related to bug NethServer/dev#7058
Remove placeholder files related to bug NethServer/dev#7058 (#11)
fix: repair the learning dashboard, restore and TURN, and tidy the se…