Open
Description
Steps
- Install an app, for example activity-2.4.1 from tarball:
occ market:install -l activity-2.4.1.tar.gz
- Go to Github releases and download the wrong tarball, not the release one but the github sources: https://github.com/owncloud/activity/archive/v2.4.2.tar.gz
occ market:upgrade -l activity-2.4.2.tar.gz
<= the wrong tarball
Expected result
Upgrade fails with proper error message.
Actual result
Original app is deleted but the new app isn't there.
This basically deletes the app...
Version
stable10 / 10.1.0
Note: the "wrong" tarball doesn't have "activity" as root path but "activity-2.4.2".
We should extend the update code to verify that the tarball contains an "activity" folder just like the install process does.