owncloud / core

:cloud: ownCloud web server core (Files, DAV, etc.)
https://owncloud.com
GNU Affero General Public License v3.0
8.36k stars 2.06k forks source link

occ upgrade should fetch apps if DB version is higher than local info.xml version #34892

Open individual-it opened 5 years ago

individual-it commented 5 years ago
### Steps to reproduce 1. install owncloud-enterprise-complete-10.1.0.tar.bz2 (contains firewall app 2.7.0) 1. add license key 1. add market API key 1. check apps/firewall/appinfo/info.xml -> 2.7.0 1. check firewall version in DB `select * from oc_appconfig where configkey='installed_version' and appid='firewall'` -> 2.7.0 1. `occ market:upgrade firewall` 1. check apps/firewall/appinfo/info.xml -> 2.8.0 1. check firewall version in DB `select * from oc_appconfig where configkey='installed_version' and appid='firewall'` -> 2.8.0 1. `sudo -u www-data ./occ maintenance:mode --on` 1. `sudo rm -r apps AUTHORS CHANGELOG.md console.php COPYING core cron.php db_structure.xml index.html index.php lib occ ocm-provider ocs ocs-provider public.php remote.php resources robots.txt settings status.php updater version.php` 1. `sudo -u www-data tar -xjf owncloud-enterprise-complete-10.1.1RC1.tar.bz2` (contains firewall app 2.7.0) 1. `sudo -u www-data ./occ upgrade` 1. ` sudo -u www-data ./occ maintenance:mode --off` ### Expected behaviour firewall app should have been upgraded to 2.8.0 ### Actual behaviour firewall app is 2.7.0 but the database reports 2.8.0 `sudo -u www-data ./occ market:upgrade firewall` solves the problem funny is that the market app was upgraded to 0.4.0 (the app was not upgraded before oC upgrade)
PVince81 commented 5 years ago